[arch-general] portable player, usb plugging/mounting problems
Hello dear Arch users, I have a Sansa e200 portable media player and I'm having problems mounting it. It used to work, but I can't recall when (I have been listening to the same stuff for over 4 months now). I'm using arch i686 with core, extra, community, kdemod-core and kdemod-extragear and updated system. The player has two modes, MSC and MTP. I always use it in Mass Storage Class mode. Thing is, when I plug the device with HAL running I get the following: $ dmesg: usb 1-6: new high speed USB device using ehci_hcd and address 13 usb 1-6: configuration #128 chosen from 1 choice scsi24 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 13 usb-storage: waiting for device to settle before scanning usb 1-6: reset high speed USB device using ehci_hcd and address 13 scsi25 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 13 usb-storage: waiting for device to settle before scanning If I stop HAL deamon, I get this: $ dmesg usb 1-6: new high speed USB device using ehci_hcd and address 4 usb 1-6: configuration #128 chosen from 1 choice scsi14 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 4 usb-storage: waiting for device to settle before scanning scsi 14:0:0:0: Direct-Access SanDisk Sansa e270 PQ: 0 ANSI: 0 sd 14:0:0:0: [sdb] 11780096 512-byte hardware sectors: (6.03 GB/5.61 GiB) sd 14:0:0:0: [sdb] Write Protect is off sd 14:0:0:0: [sdb] Mode Sense: 45 00 00 00 sd 14:0:0:0: [sdb] Assuming drive cache: write through sd 14:0:0:0: [sdb] 11780096 512-byte hardware sectors: (6.03 GB/5.61 GiB) sd 14:0:0:0: [sdb] Write Protect is off sd 14:0:0:0: [sdb] Mode Sense: 45 00 00 00 sd 14:0:0:0: [sdb] Assuming drive cache: write through sdb: sdb1 sdb2 sd 14:0:0:0: [sdb] Attached SCSI removable disk sd 14:0:0:0: Attached scsi generic sg2 type 0 scsi 14:0:0:1: Direct-Access SanDisk Sansa e270 PQ: 0 ANSI: 0 sd 14:0:0:1: [sdc] 246016 512-byte hardware sectors: (125 MB/120 MiB) sd 14:0:0:1: [sdc] Write Protect is off sd 14:0:0:1: [sdc] Mode Sense: 45 00 00 00 sd 14:0:0:1: [sdc] Assuming drive cache: write through sd 14:0:0:1: [sdc] 246016 512-byte hardware sectors: (125 MB/120 MiB) sd 14:0:0:1: [sdc] Write Protect is off sd 14:0:0:1: [sdc] Mode Sense: 45 00 00 00 sd 14:0:0:1: [sdc] Assuming drive cache: write through sdc: sdc1 sd 14:0:0:1: [sdc] Attached SCSI removable disk sd 14:0:0:1: Attached scsi generic sg3 type 0 usb-storage: device scan complete The output of lsusb is: $ lsusb Bus 001 Device 013: ID 0781:7421 SanDisk Corp. Sansa E200 series I don't really understand why is this, since I read that HAL just gets notified of the new device and provides the interface for other apps, but the kernel and udev are the ones that really do the recognizing and mounting. Since in my mind udev is the one that does the job, I tried following a tip I read in the mainling list archive and created a new udev rule in /etc/udev/rules.d/sansa.rules with: UBSYSTEMS=="usb", KERNEL=="sd*", ATTRS{idProduct}=="7421",ATTRS{idVendor}=="0781", SYMLINK+="sansa", GROUP="storage" I ask for you help to understand what is going on here. Thank you very much, Guilherme. -- Malformed message exception
On Mon, 22 Jun 2009 19:58:28 -0300 "Guilherme M. Nogueira" <g.maionogueira@gmail.com> wrote: .....
I have a Sansa e200 portable media player and I'm having problems mounting it. It used to work, but I can't recall when (I have been listening to the same stuff for over 4 months now). I'm using arch i686 with core, extra, community, kdemod-core and kdemod-extragear and updated system.
The player has two modes, MSC and MTP. I always use it in Mass Storage Class mode. .....
Hi Guilherme, A friend of mine has such a player, and he has problems mounting it in Windows, but never in Linux :) Thunar volman easily recognizes it, even if it in MTP mode. You may want to turn on the "Hold" switch and hold the "Left" button when inserting it in USB plug - just to check if there is a difference. Tomorrow I will check the dmesg output with my friend's player and let you know. Cheers, Sergey
On Mon, Jun 22, 2009 at 11:47 PM, Sergey Manucharian <sergeym@rmico.com>wrote:
A friend of mine has such a player, and he has problems mounting it in Windows, but never in Linux :)
Well.. I don't use windows, so I can't tell anything about that =P
Thunar volman easily recognizes it, even if it in MTP mode. You may want to turn on the "Hold" switch and hold the "Left" button when inserting it in USB plug - just to check if there is a difference.
No difference. I'm still looking for the awnswer. Thanks for the reply, Sergey! -- Malformed message exception => Guilherme M. Nogueira => http://nirev.org/
On Tue, Jun 23, 2009 at 7:14 PM, Guilherme M. Nogueira<g.maionogueira@gmail.com> wrote:
I'm still looking for the awnswer.
It shows it as being assigned to /dev/sdc. What's the output if you try to mount it manually? Does fdisk -l /dev/sdc show the partitions? Are you using rockbox? It's a pretty nice open source replacement software for that player (http://www.rockbox.org/ http://aur.archlinux.org/packages.php?ID=26864) :)
Solved! Well, after searching for a while and reading HAL Specification I decided to create a fdi file in /etc/hal/fdi/policy containing: #Sansa e200 Series <match key="usb_device.vendor_id" int="0x0781"> <match key="usb_device.product_id" int="0x7421"> <merge key="volume.ignore" type="bool">false</merge> </match> </match> And it worked! But I still don't understand why! In HAL Specs it says: "This is a hint to software higher in the stack that this volume should be ignored. If TRUE, the volume should be invisible in the UI and mount wrappers should refuse to mount it on behalf on an unprivileged user. " Also I read somewhere (forgot where,now) that HAL sets this to true for fixed drives. Is it possible that Sansa was being recognized as a fixed drive? I don't think so. Well, continuing... After restarting hal with this fdi file, sansa was recognized fine. I decided to remove that file and restart hal, just to see if the problem still occurred. No, it didn't. My guess is that once hal had all the information about the device the initial problem of "assuming" something disappeared. I still need to reboot and check if everything is fine now. Anyway, thanks for your help guys! On Tue, Jun 23, 2009 at 9:44 PM, Slash <demodevil@gmail.com> wrote:
It shows it as being assigned to /dev/sdc. What's the output if you try to mount it manually? Does fdisk -l /dev/sdc show the partitions?
Actually, I have a microSD card in it, so /dev/sdb is the internal flash storage and /dev/sdc is the card.
Are you using rockbox? It's a pretty nice open source replacement software for that player (http://www.rockbox.org/ http://aur.archlinux.org/packages.php?ID=26864) :)
Yes, I'm using it =] That's one of the reason I bought sansa, and the reason I was plugging the player in the first place was to update rockbox. -- Malformed message exception => Guilherme M. Nogueira => http://nirev.org/
participants (3)
-
Guilherme M. Nogueira
-
Sergey Manucharian
-
Slash