Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SanDisk Sansa and Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tcalbrecht
n00b
n00b


Joined: 23 Dec 2005
Posts: 6

PostPosted: Wed Dec 28, 2005 5:01 am    Post subject: SanDisk Sansa and Linux Reply with quote

I just received a SanDisk Sansa m230 MP3 player (part of the m200 series) and I'm having problems getting it to work with gentoo. It supports USB 2.0. I got udev to recognize the device and I can mount it, but the directory/file layouts I see under Linux and Windows are different.

When I plug the device into my Windows XP box, it does not assign a drive letter like other thumb drives. Instead it tells me it is a "Portable Media Device". I can drag audio files onto the device and they get recognized OK.

When I plug the device into gentoo, I see a different directory structure from what I saw under Windows. And none of the MP3 files are visible, although running "df -h" I see that space has been used on the device. cfdisk tells me it is a fat16 device.

Has anyone had any experience with this critter and Linux?

I looked for Linux drivers on the SanDisk web site but none could be found.

I'm running gentoo 2.6.12-r10 on a Dell Inspiron 9100.

Also, can someone tell me how to keep the usb/scsi addresses from incrementing every time I plug the same device into the USB port? Is there some clean up that needs to be done when I unplug the device?

Code:

usb 1-6: new high speed USB device using ehci_hcd and address 13
scsi11 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 13
usb-storage: waiting for device to settle before scanning
  Vendor: SanDisk   Model: Sansa m230        Rev: 1.30
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 1009664 512-byte hdwr sectors (517 MB)
sda: Write Protect is off
sda: Mode Sense: 37 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 1009664 512-byte hdwr sectors (517 MB)
sda: Write Protect is off
sda: Mode Sense: 37 00 00 08
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi11, channel 0, id 0, lun 0
usb-storage: device scan complete
SMB connection re-established (-5)
usb 1-6: USB disconnect, address 13
usb 1-6: new high speed USB device using ehci_hcd and address 14
scsi12 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 14
usb-storage: waiting for device to settle before scanning
  Vendor: SanDisk   Model: Sansa m230        Rev: 1.30
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sdb: 1009664 512-byte hdwr sectors (517 MB)
sdb: Write Protect is off
sdb: Mode Sense: 37 00 00 08
sdb: assuming drive cache: write through
SCSI device sdb: 1009664 512-byte hdwr sectors (517 MB)
sdb: Write Protect is off
sdb: Mode Sense: 37 00 00 08
sdb: assuming drive cache: write through
 sdb: sdb1
Attached scsi removable disk sdb at scsi12, channel 0, id 0, lun 0
usb-storage: device scan complete
usb 1-6: USB disconnect, address 14


Thanks.

--
TC
Back to top
View user's profile Send private message
badchien
Guru
Guru


Joined: 16 Feb 2004
Posts: 415
Location: doghouse

PostPosted: Wed Dec 28, 2005 3:36 pm    Post subject: Re: SanDisk Sansa and Linux Reply with quote

tcalbrecht wrote:
Also, can someone tell me how to keep the usb/scsi addresses from incrementing every time I plug the same device into the USB port? Is there some clean up that needs to be done when I unplug the device?
I wouldn't worry about that. Just make a udev rule to use a consistant symlink to sdX.

Something like this will probably do what you want. You'll have to use udevinfo to fill in the rest.
Code:
BUS="usb", SYSFS{manufacturer}="!!!GET FROM udevinfo", SYSFS{product}="!!!GET FROM udevinfo",       KERNEL="sd?1", NAME="%k" SYMLINK+="sansam230"


I don't have any answers about your other problem. sorry :(
Back to top
View user's profile Send private message
|Spiller|
n00b
n00b


Joined: 15 May 2003
Posts: 20
Location: Macedonia, Europe

PostPosted: Wed Dec 28, 2005 8:13 pm    Post subject: Reply with quote

I ran into your post after having the same problem for a while. Although I didn't use windows to upload any files, the ones I did in gnome would vanish all of a sudden after deletion but the available space would stay the same. It turned out that gnome moved the files to .Thrash-user in /mnt/usb (the mount point for the player) even though I wanted to delete them permanently. This dir wouldn't show up in nautilus (with show hidden files on). Hope this helped. Cheers
Back to top
View user's profile Send private message
tcalbrecht
n00b
n00b


Joined: 23 Dec 2005
Posts: 6

PostPosted: Wed Dec 28, 2005 11:24 pm    Post subject: Re: SanDisk Sansa and Linux Reply with quote

badchien wrote:
tcalbrecht wrote:
Also, can someone tell me how to keep the usb/scsi addresses from incrementing every time I plug the same device into the USB port? Is there some clean up that needs to be done when I unplug the device?
I wouldn't worry about that. Just make a udev rule to use a consistant symlink to sdX.

Something like this will probably do what you want. You'll have to use udevinfo to fill in the rest.
Code:
BUS="usb", SYSFS{manufacturer}="!!!GET FROM udevinfo", SYSFS{product}="!!!GET FROM udevinfo",       KERNEL="sd?1", NAME="%k" SYMLINK+="sansam230"


I don't have any answers about your other problem. sorry :(


Thanks. It's just annoying.
_________________
TC
Back to top
View user's profile Send private message
tcalbrecht
n00b
n00b


Joined: 23 Dec 2005
Posts: 6

PostPosted: Fri Dec 30, 2005 4:42 am    Post subject: Reply with quote

|Spiller| wrote:
I ran into your post after having the same problem for a while. Although I didn't use windows to upload any files, the ones I did in gnome would vanish all of a sudden after deletion but the available space would stay the same. It turned out that gnome moved the files to .Thrash-user in /mnt/usb (the mount point for the player) even though I wanted to delete them permanently. This dir wouldn't show up in nautilus (with show hidden files on). Hope this helped. Cheers


Nope. Not the same problem. It appears to me that this is some sort of special device that Windows knows about but not Linux.

When I plug the device into Linux and do "ls -lR" I see
Code:

/mnt/sansa/:
total 64
drwxr--r--  2 tom users 16384 Jan  1  1980 audible
drwxr--r--  2 tom users 16384 Jan  1  1980 config
drwxr--r--  2 tom users 16384 Jan  1  1980 record
-r-xr--r--  1 tom users     6 Jan  1  1980 sys_conf.dnc

/mnt/sansa/audible:
total 0

/mnt/sansa/config:
total 16
-rwxr--r--  1 tom users 5120 Jan  1  1980 config.tcc

/mnt/sansa/record:
total 16
-rwxr--r--  1 tom users 602 Jan  1  1980 vorc001.wav


"df -h" gives:

Code:

/dev/sansam230        493M   67M  427M  14% /mnt/sansa


When I plug it into Windows XP, I see:

Data (folder)
Media (folder)

"Data" is empty. "Media" contains:

Record (folder)
file1.mp3
file2.mp3
... etc.


I cannot move any of the files under Windows. I.e., CTRL-X and CTRL-V do nothing.
_________________
TC
Back to top
View user's profile Send private message
pbardet
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2003
Posts: 143
Location: wpg, mb

PostPosted: Sun Mar 05, 2006 4:37 pm    Post subject: Reply with quote

I just bought a Sansa e140 1Gb. Great device, for CAD 120, especially with the SD upgrade capability.
I don't see that directory structure you're talking about.
All the files are in the root directory and the only files that were there originally are
Code:
-rwxr-xr-x  1 pbardet pbardet      512 Dec 27  2002 afeast.dev
-rwxr-xr-x  1 pbardet pbardet  2097152 Jul  7  2000 music.lib
-rwxr-xr-x  1 pbardet pbardet    25600 Jul  7  2000 music.sec
-r-xr-xr-x  1 pbardet pbardet      777 Dec 27  2002 settings.dat


I manually mount and unmount the device (kde icon) and yet haven't seen a change in the letter assigned (/dev/sda1 all the time). I know it may change if I plug other usb devices, but it's fairly quick to manually change the kde icon to adjust the letter and modify fstab as well. One day, I'll try the udev way, to get a fixed dev and stop playing with my config files.

As for Windows, unfortunately, I refuse to install XP for the exact reason you're mentionning: it hides everything to make it "easier" for the user to find what he needs to find.
Back to top
View user's profile Send private message
tcalbrecht
n00b
n00b


Joined: 23 Dec 2005
Posts: 6

PostPosted: Sun Mar 05, 2006 6:32 pm    Post subject: Reply with quote

Looks like the m series and e series may be different. There's a setting in the m series to make it behaved properly. Thanks.
_________________
TC
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum