USB mass storage issues

Davyd McColl davydm at gmail.com
Tue Jul 7 18:26:26 UTC 2009


Good day

Just throwing this out there to see if anyone has an idea how to sort this
out or at least can perhaps help me make up my mind which package to file a
bug against:

I'm running Jaunty 64-bit, all packages up to date. I've seen this a couple
of times now and it's getting a little pesky, mainly because I don't believe
in rebooting to sort out a problem. That's the generic solution for another
OS.

Anyway, the story:
I have 3 external hard drives which are powered off of the USB bus.
Occasionally, when I plug one in, I see the following (as an example) from
dmesg:


[421240.804825] sd 21:0:0:0: [sdg] Attached SCSI disk
[421240.804963] sd 21:0:0:0: Attached scsi generic sg6 type 0
[421338.669617] usb 2-2: USB disconnect, address 21
[421340.546572] usb 1-2: USB disconnect, address 6
[421388.180051] usb 2-2: new high speed USB device using ehci_hcd and
address 22
[421388.314168] usb 2-2: configuration #1 chosen from 1 choice
[421388.315292] scsi22 : SCSI emulation for USB Mass Storage devices
[421388.315580] usb-storage: device found at 22
[421388.315586] usb-storage: waiting for device to settle before scanning
[421393.312348] usb-storage: device scan complete
[421393.354402] scsi 22:0:0:0: Direct-Access     ST925082 7AS
PQ: 0 ANSI: 2 CCS
[421393.356322] sd 22:0:0:0: [sdg] 488397168 512-byte hardware sectors: (250
GB/
232 GiB)
[421393.357240] sd 22:0:0:0: [sdg] Write Protect is off
[421393.357244] sd 22:0:0:0: [sdg] Mode Sense: 34 00 00 00
[421393.357249] sd 22:0:0:0: [sdg] Assuming drive cache: write through
[421393.357984] sd 22:0:0:0: [sdg] 488397168 512-byte hardware sectors: (250
GB/
232 GiB)
[421393.358731] sd 22:0:0:0: [sdg] Write Protect is off
[421393.358735] sd 22:0:0:0: [sdg] Mode Sense: 34 00 00 00
[421393.358738] sd 22:0:0:0: [sdg] Assuming drive cache: write through
[421393.358744]  sdg: sdg1
[421393.389504] sd 22:0:0:0: [sdg] Attached SCSI disk
[421393.389652] sd 22:0:0:0: Attached scsi generic sg6 type 0


Note the third line from the bottom: the kernel seems to recognise that
there is one partition on the disk. Performing parted on the disk confirms
the situation:
Number  Start   End    Size   Type     File system  Flags
 1      32.3kB  250GB  250GB  primary  ntfs

(I use ntfs because it's the easiest way to get a journal and large-file
support across Linux and Windows. I have to work on Windows...)

Strangely enough though, whilst there is a device /dev/sdg; there is no
partition /dev/sdg1. Understandably, Nautilus doesn't recognise a new
mountable volume and I can't seem to see this drive unless I reboot and
re-plug.

I've tried restarting (not necessarily in this order):

hal (ended up with no mouse and keyboard in X)
dbus
udev

Nothing has helped. Any ideas? At the very least, should I be logging this
as a bug against the kernel package or something like hal/udev? Note that
things work well for a while after a boot (current uptime about 4 days), and
I plug these drives in and out on a regular basis. It's just that after some
time, the partitions on the devices don't get device nodes made for them.

-d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20090707/2f225caf/attachment.html>


More information about the Ubuntu-devel-discuss mailing list