PDA

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



ArcaneRaven
21st January 2008, 05:32 AM
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
21st January 2008, 11:21 AM
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.

tun4545
17th November 2012, 04:31 AM
Hi, I realize this is an old post, but I have a similar problem and couldn't find help anywhere else. I have an external 2 TB USB drive which I use for backup. I start backing up with rsync and after some time USB drive is disconnected by itself. Then, not only my backup is not finished, but also the drive can't remount and I get an error message which suggests running chkdsk on a Windows machine. Is there a way to prevent the USB drive being disconnected automatically?

I am on Fedora 17, kernel 3.5.6 Here is some output from /var/log/messages. After what I have posted below follow lots of i/o error messages with file names, but I did not post them.

Nov 16 17:48:12 bosphorus kernel: [3119088.331722] usb 9-2: >USB disconnect, device number 41
Nov 16 17:48:12 bosphorus kernel: [3119088.331728] usb 9-2.3: >USB disconnect, device number 43
Nov 16 17:48:12 bosphorus kernel: [3119088.332110] hub 9-2:1.0: >cannot reset port 3 (err = -71)
Nov 16 17:48:12 bosphorus kernel: [3119088.332115] hub 9-2:1.0: >cannot reset port 3 (err = -19)
Nov 16 17:48:12 bosphorus kernel: [3119088.332119] hub 9-2:1.0: >cannot disable port 3 (err = -19)
Nov 16 17:48:12 bosphorus kernel: [3119088.332122] hub 9-2:1.0: >cannot disable port 3 (err = -19)
Nov 16 17:48:12 bosphorus kernel: [3119088.337537] sd 29:0:0:0: >[sdc] Unhandled error code
Nov 16 17:48:12 bosphorus kernel: [3119088.337541] sd 29:0:0:0: >[sdc]
Nov 16 17:48:12 bosphorus kernel: [3119088.337542] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
Nov 16 17:48:12 bosphorus kernel: [3119088.337544] sd 29:0:0:0: >[sdc] CDB:
Nov 16 17:48:12 bosphorus kernel: [3119088.337544] Read(10): 28 00 bc db 15 80 00 00 f0 00
Nov 16 17:48:12 bosphorus kernel: [3119088.337549] end_request: I/O error, dev sdc, sector 3168474496
Nov 16 17:48:12 bosphorus kernel: [3119088.337551] quiet_error: 128 callbacks suppressed
Nov 16 17:48:12 bosphorus kernel: [3119088.337553] Buffer I/O error on device sdc1, logical block 396059056
Nov 16 17:48:12 bosphorus kernel: [3119088.337554] Buffer I/O error on device sdc1, logical block 396059057
Nov 16 17:48:12 bosphorus kernel: [3119088.337555] Buffer I/O error on device sdc1, logical block 396059058
Nov 16 17:48:12 bosphorus kernel: [3119088.337557] Buffer I/O error on device sdc1, logical block 396059059
Nov 16 17:48:12 bosphorus kernel: [3119088.337558] Buffer I/O error on device sdc1, logical block 396059060
Nov 16 17:48:12 bosphorus kernel: [3119088.337559] Buffer I/O error on device sdc1, logical block 396059061
Nov 16 17:48:12 bosphorus kernel: [3119088.337560] Buffer I/O error on device sdc1, logical block 396059062
Nov 16 17:48:12 bosphorus kernel: [3119088.337561] Buffer I/O error on device sdc1, logical block 396059063
Nov 16 17:48:12 bosphorus kernel: [3119088.337562] Buffer I/O error on device sdc1, logical block 396059064
Nov 16 17:48:12 bosphorus kernel: [3119088.337563] Buffer I/O error on device sdc1, logical block 396059065
Nov 16 17:48:12 bosphorus kernel: [3119088.337580] sd 29:0:0:0: >[sdc] Unhandled error code
Nov 16 17:48:12 bosphorus kernel: [3119088.337582] sd 29:0:0:0: >[sdc]
Nov 16 17:48:12 bosphorus kernel: [3119088.337582] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
Nov 16 17:48:12 bosphorus kernel: [3119088.337584] sd 29:0:0:0: >[sdc] CDB:
Nov 16 17:48:12 bosphorus kernel: [3119088.337584] Read(10): 28 00 bc db 16 70 00 00 28 00
Nov 16 17:48:12 bosphorus kernel: [3119088.337588] end_request: I/O error, dev sdc, sector 3168474736
Nov 16 17:48:12 bosphorus ntfs-3g[28638]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Nov 16 17:48:12 bosphorus ntfs-3g[28638]: Failed to read index block: Input/output error