Fixing USB hard disk timeouts

Monday, March 07, 2016 » hardware linux usb harddisk

I’m using an USB HDD docking station for quick backups from hard disks without the need to install them into a computer. The docking station is an Inateck FD1004 USB 3.0 with UASP (Amazon.de). Unfortunately my Linux system is sometimes too fast to detect the hard disk. Especially when the disk is an 3.5in disk with 7200rpm or more.

In that case the kernel log shows something like this when powering the docking station.

[  601.002010] xhci_hcd 0000:00:10.0: Command completion event does not match command
[  601.002065] xhci_hcd 0000:00:10.0: Timeout while waiting for setup device command
[  606.218731] xhci_hcd 0000:00:10.0: Timeout while waiting for setup device command
[  606.422780] usb 4-1: device not accepting address 4, error -62

This error derives from the high power drawn by the usb device while spinning up the hard disk. Fortunately the docking station is powered. Therefore the simple workaround is, to unplug the docking station from your computers USB port and turn it on with your disk plugged in. Then wait a few seconds for your hard disk to spin up and plug the docking station back into your computer.

The result is as expected:

[  633.222310] usb 4-1: new SuperSpeed USB device number 6 using xhci_hcd
[  633.242789] usb 4-1: New USB device found, idVendor=067b, idProduct=2773
[  633.242796] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  633.242801] usb 4-1: Product: USB-SATA Bridge
[  633.242805] usb 4-1: Manufacturer: Prolific Technology Inc.
[  633.242808] usb 4-1: SerialNumber: PROLIFICMP000000002
[  633.243728] usb-storage 4-1:1.0: USB Mass Storage device detected
[  633.244197] scsi host8: usb-storage 4-1:1.0
[  635.247226] scsi 8:0:0:0: Direct-Access     ST2000DM 001-1CH164       CC27 PQ: 0 ANSI: 4
[  635.247853] sd 8:0:0:0: Attached scsi generic sg3 type 0
[  635.248018] sd 8:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[  635.248483] sd 8:0:0:0: [sdc] Write Protect is off
[  635.248489] sd 8:0:0:0: [sdc] Mode Sense: 22 00 00 00
[  635.248985] sd 8:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  635.298885]  sdc: sdc1 sdc2 sdc3
[  635.300901] sd 8:0:0:0: [sdc] Attached SCSI disk