PDA

View Full Version : USB weirdness: external drives unmount by themselves?


ArcaneRaven
2008-01-20, 09:32 PM CST
Hey all,

I've been having this strange issue with USB external drives (hard disks/MP3 players etc.) for a while now. I couldn't find anything on the forum about it, so my apologies if this has been discussed before.

My USB external drives appear to be unmounting themselves after around an hour of two of inactivity. I've seen this both with Fedora 7 and 8, with the last few 2.6.23 kernels. Has anyone else run into this?

Some relevant snippets from /var/log/messages for a recent episode of this:

Jan 20 17:03:13 shrike kernel: usb 1-6: new high speed USB device using ehci_hcd and address 15
Jan 20 17:03:13 shrike kernel: usb 1-6: configuration #1 chosen from 1 choice
Jan 20 17:03:13 shrike kernel: scsi13 : SCSI emulation for USB Mass Storage devices
Jan 20 17:03:21 shrike kernel: scsi 13:0:0:0: Direct-Access TrekStor vibez 2 PQ: 0 ANSI: 4
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: [sdi] 23429729 512-byte hardware sectors (11996 MB)
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: [sdi] Write Protect is off
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: [sdi] Assuming drive cache: write through
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: [sdi] 23429729 512-byte hardware sectors (11996 MB)
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: [sdi] Write Protect is off
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: [sdi] Assuming drive cache: write through
Jan 20 17:03:21 shrike kernel: sdi:
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: [sdi] Attached SCSI removable disk
Jan 20 17:03:21 shrike kernel: sd 13:0:0:0: Attached scsi generic sg9 type 0
Jan 20 17:03:22 shrike hald: mounted /dev/sdi on behalf of uid 500
Jan 20 17:03:22 shrike gnome-keyring-daemon[2805]: adding removable location: volume_uuid_0000_0001 at /media/music
Jan 20 19:47:11 shrike hald: unmounted /dev/sdi from '/media/music' on behalf of uid 500
Jan 20 19:47:11 shrike gnome-keyring-daemon[2805]: removing removable location: volume_uuid_0000_0001
Jan 20 22:54:43 shrike kernel: usb 1-3: USB disconnect, address 4

As you can see, the MP3 player dropped off the bus and appeared to unmount cleanly all by itself after around 2 hours or so. Does anyone know what's going on here?

lazlow
2008-01-21, 03:21 AM CST
Best guess would be that the drives are powering down. I do not think that the usb hookup has a way for the drive to tell the computer that it has done this. The OS then sees that there is no longer a drive there and auto unmounts it.