Device lockup issue with WD MyBook Essential external USB disks

I am experiencing USB device lockup with WD MyBook Essential external USB disks when tested with EHCI/Intel based Dell Desktop PC’s. Operating System installed in these PC’s is Linux Kernel 2.6.32 based Ubuntu 10.10 Linux distribution.

This issue is consistently reproducible with the test case I have devised which continuously writes huge data to the disk using open source sg_dd util from following shell script -

#!/bin/sh  

while true; do
   sg_dd if=/dev/zero of=/dev/sdb bs=1m count=1k oflag=direct sync=1 dio=1 time=1
done

I have tested following two My Book Essential USB disk and both report issue -

P/N: WDBAAF0010HBK-01 3210B
P/N: WDBAAF0010HBK-01 4210B

I have captured USB bus traffic between these devices and PC using Lecroy CATC USB Protocol Analyzer. The bus captures clearly indicate that USB device locked up after responding NYET during USB BULK OUT transfers, eventually causing USB EHCI host controller device driver to timeout and perform USB reset/re-initialization of the device in order to resume the data transfers.

I didn’t find any way to attach the CATC trace to this post. Please let me know if there’s any way to attach a zip file to the post.

Following is trace logs capture. Please look for this error message -
USB 1-8: reset high speed USB device using ehci_hcd and address 6

connect@connect-desktop:~$ tail -f /var/log/messages 
Apr 28 16:45:11 connect-desktop kernel: [70.921860] scsi5 : SCSI emulation for USB Mass Storage devices
Apr 28 16:45:16 connect-desktop kernel: [75.921503] scsi 5:0:0:0: Direct-Access WD My Book 1110 2003 PQ: 0 ANSI: 4
Apr 28 16:45:16 connect-desktop kernel: [75.922243] scsi 5:0:0:1: Enclosure WD SES Device 2003 PQ: 0 ANSI: 4
Apr 28 16:45:16 connect-desktop kernel: [75.923133] sd 5:0:0:0: Attached scsi generic sg2 type 0
Apr 28 16:45:16 connect-desktop kernel: [75.923240] ses 5:0:0:1: Attached Enclosure device
Apr 28 16:45:16 connect-desktop kernel: [75.923322] ses 5:0:0:1: Attached scsi generic sg3 type 13
Apr 28 16:45:16 connect-desktop kernel: [75.929977] sd 5:0:0:0: [sdb] 1952151552 512-byte logical blocks: (999 GB/930 GiB)
Apr 28 16:45:16 connect-desktop kernel: [75.932182] sd 5:0:0:0: [sdb] Write Protect is off
Apr 28 16:45:16 connect-desktop kernel: [75.934973] sdb: unknown partition table
Apr 28 16:45:16 connect-desktop kernel: [75.949863] sd 5:0:0:0: [sdb] Attached SCSI disk
Apr 28 16:45:51 connect-desktop kernel: [110.824962] USB 1-8: USB disconnect, address 5
Apr 28 16:46:10 connect-desktop kernel: [129.920021] USB 1-8: new high speed USB device using ehci_hcd and address 6
Apr 28 16:46:11 connect-desktop kernel: [130.053208] USB 1-8: configuration #1 chosen from 1 choice
Apr 28 16:46:11 connect-desktop kernel: [130.053889] scsi6 : SCSI emulation for USB Mass Storage devices
Apr 28 16:46:16 connect-desktop kernel: [135.053550] scsi 6:0:0:0: Direct-Access WD My Book 1110 2003 PQ: 0 ANSI: 4
Apr 28 16:46:16 connect-desktop kernel: [135.054406] scsi 6:0:0:1: Enclosure WD SES Device 2003 PQ: 0 ANSI: 4
Apr 28 16:46:16 connect-desktop kernel: [135.055375] sd 6:0:0:0: Attached scsi generic sg2 type 0
Apr 28 16:46:16 connect-desktop kernel: [135.055483] ses 6:0:0:1: Attached Enclosure device
Apr 28 16:46:16 connect-desktop kernel: [135.055552] ses 6:0:0:1: Attached scsi generic sg3 type 13
Apr 28 16:46:16 connect-desktop kernel: [135.062009] sd 6:0:0:0: [sdb] 1952151552 512-byte logical blocks: (999 GB/930 GiB)
Apr 28 16:46:16 connect-desktop kernel: [135.065585] sd 6:0:0:0: [sdb] Write Protect is off
Apr 28 16:46:16 connect-desktop kernel: [135.068037] sdb: unknown partition table
Apr 28 16:46:16 connect-desktop kernel: [135.082391] sd 6:0:0:0: [sdb] Attached SCSI disk


Apr 28 16:48:09 connect-desktop kernel: [248.928022] USB 1-8: reset high speed USB device using ehci_hcd and address 6
Apr 28 17:11:42 connect-desktop kernel: [1661.112025] USB 1-8: reset high speed USB device using ehci_hcd and address 6

I have also tried updating the firmware of these devices using WD Universal Firmware Updater for Windows ( http://www.wdc.com/wdproducts/wdsmartwareupdate/?id=wdfMB_Essential&os=win&fw=1). Issue still exists.

Any help in solving this issue is greatly appreciated because this issue renders all of our self powered WD Mybook USB drives completely unusable.

Thanks in advance.

For the self powered drives they make a power booster cable it’s Y shaped and used 2 USB ports. If it’s simply a power issue that might help.

Joe