Problem mounting Motorola USB device
Initializing USB Mass Storage driver...
scsi6 : SCSI emulation for USB Mass Storage devices
I have a Motorola phone that mounts as USB storage. The phone used to mount under 2.6.24 on Fedora 8. Under the latest kernels, however, it does not want to mount. The device gives an odd media error at towards the end of the device. It gave that before, but would still mount.
Does anyone have an idea what is going wrong?
How can I mount the device anyway? (The /dev/sdb does not get created by usb-storage in this case.) I know I probably need a new memory card. I would like to recover this one first.
Here are the /var/log/messages...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 6:0:0:0: Direct-Access Motorola Phone PQ: 0 ANSI: 4
sd 6:0:0:0: [sdb] 1987584 512-byte hardware sectors (1018 MB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 10 00 00 00
sd 6:0:0:0: [sdb] Assuming drive cache: write through
sd 6:0:0:0: [sdb] 1987584 512-byte hardware sectors (1018 MB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 10 00 00 00
sd 6:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 6:0:0:0: [sdb] Attached SCSI disk
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK sd 6:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 6:0:0:0: [sdb] Add. Sense: No additional sense informationend_request: I/O error, dev sdb, sector 1987576
Quoted 8 lines
Initializing USB Mass Storage driver...
scsi6 : SCSI emulation for USB Mass Storage devices
I have a Motorola phone that mounts as USB storage. The phone used to mount under 2.6.24 on Fedora 8. Under the latest kernels, however, it does not want to mount. The device gives an odd media error at towards the end of the device. It gave that before, but would still mount.Does anyone have an idea what is going wrong?
Forgot the kernel version.
Fedora 9 2.6.25.10-86.fc9_x86_64
I am wondering if this is a kernel problem or a udev problem. Should I diff the udev rules between f8 and f9?
It appears to be a maze of twisty configs, all alike.
(cc linux-usb-devel)
Quoted 28 lines · On Wed, 16 Jul 2008 10:32:31 -0700 (PDT) "Alan" <[email protected]> wrote:
Initializing USB Mass Storage driver...
scsi6 : SCSI emulation for USB Mass Storage devices
I have a Motorola phone that mounts as USB storage. The phone used to mount under 2.6.24 on Fedora 8. Under the latest kernels, however, it does not want to mount. The device gives an odd media error at towards the end of the device. It gave that before, but would still mount.Does anyone have an idea what is going wrong?
How can I mount the device anyway? (The
/dev/sdbdoes not get created by usb-storage in this case.) I know I probably need a new memory card. I would like to recover this one first.Here are the
/var/log/messages...usbcore: registered new interface driver usb-storage USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 6:0:0:0: Direct-Access Motorola Phone PQ: 0 ANSI: 4
sd 6:0:0:0: [sdb] 1987584 512-byte hardware sectors (1018 MB) sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 10 00 00 00
sd 6:0:0:0: [sdb] Assuming drive cache: write through sd 6:0:0:0: [sdb] 1987584 512-byte hardware sectors (1018 MB) sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 10 00 00 00
Quoted 8 lines
sd 6:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 6:0:0:0: [sdb] Attached SCSI disk
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK sd 6:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 6:0:0:0: [sdb] Add. Sense: No additional sense informationend_request: I/O error, dev sdb, sector 1987576
It's a 2.6.24 -> 2.6.25 regression.
Quoted 6 lines · Andrew Morton
(cc linux-usb-devel)
Quoted 2 lines · On Wed, 16 Jul 2008 10:32:31 -0700 (PDT) "Alan" <[email protected]> wrote:
[...] The device gives an odd media error at towards
the end of the device. It gave that before, but would still mount.
Weird. Actually, I would rather blame the partitioning code than the usb-storage as such.
Quoted 2 lines
Quoted 2 lines
[...] I know I probably need a new memory card. I would like to recover this one first.
Want a practical suggestion? Try to stick the card into a common many-in-one reader, a SanDisk SDDR-somenumber would usually work. Save the data.
Quoted 4 lines
Quoted 4 lines
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK sd 6:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 6:0:0:0: [sdb] Add. Sense: No additional sense information
Well, duh.
BTW Andrew added:
Quoted 1 line
It's a 2.6.24 -> 2.6.25 regression.
Maybe in FAT... See the sector number (1987576).
BTW, all Fedora kernels have usbmon enabled. May I see the trace? Best of all, take the one from the working 2.6.24 (if such install is still available). It would become obvious if usb-storage began to do something different.
Obligatory notice: I don't think ub would fix this.
-- Pete
Quoted 12 lines · Pete Zaitcev
Quoted 6 lines · Andrew Morton
(cc linux-usb-devel)
Quoted 2 lines · On Wed, 16 Jul 2008 10:32:31 -0700 (PDT) "Alan" <[email protected]> wrote:
[...] The device gives an odd media error at towards
the end of the device. It gave that before, but would still mount.Weird. Actually, I would rather blame the partitioning code than the usb-storage as such.
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
[...] I know I probably need a new memory card. I would like to recover this one first.
Want a practical suggestion? Try to stick the card into a common many-in-one reader, a SanDisk SDDR-somenumber would usually work. Save the data.
This actually causes a kernel oops. I will post debug info soon.
Quoted 12 lines
Quoted 5 lines
Quoted 5 lines
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK sd 6:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 6:0:0:0: [sdb] Add. Sense: No additional sense informationWell, duh.
BTW Andrew added:
Quoted 1 line
It's a 2.6.24 -> 2.6.25 regression.
Quoted 8 lines
Maybe in FAT... See the sector number (1987576).
BTW, all Fedora kernels have usbmon enabled. May I see the trace? Best of all, take the one from the working 2.6.24 (if such install is still available). It would become obvious if usb-storage began to do something different.
Obligatory notice: I don't think ub would fix this.
I will get more info now that OSCON is over.
Quoted 5 lines · Alan
Quoted 3 lines
Want a practical suggestion? Try to stick the card into a common many-in-one reader, a SanDisk SDDR-somenumber would usually work. Save the data.
This actually causes a kernel oops. I will post debug info soon.
Probably unrelated, but must be fixed.
Quoted 1 line
I will get more info now that OSCON is over.
Thanks.
One question: can you switch to self-built kernels instead of supplied by Fedora, just for this bug? It would be easier for me to look at (I'm speaking in the USB hacker capacity here rather than as one of Chuck's underlings).
-- Pete
Quoted 4 lines · Pete Zaitcev
One question: can you switch to self-built kernels instead of supplied by Fedora, just for this bug? It would be easier for me to look at (I'm speaking in the USB hacker capacity here rather than as one of Chuck's underlings).
Which tree do you want me to build from?
Quoted 8 lines · Alan
Quoted 4 lines · Pete Zaitcev
One question: can you switch to self-built kernels instead of supplied by Fedora, just for this bug? It would be easier for me to look at (I'm speaking in the USB hacker capacity here rather than as one of Chuck's underlings).
Which tree do you want me to build from?
I think 2.6.26 would be a good place to start. Also I think the best would be to populate the .config from /boot/config* that Fedora supplies. It takes longer to build, but makes it more likely that we reproduce one or both of the failures you saw (phone not mounted and the oops). You will need to run mkinitrd /boot/initrd-2.6.26-alan.img 2.6.26-alan or something like it, Fedora's userland and .config pretty much require it.
-- Pete