Created attachment 21111 [details] dmesg after plugging in the USB hard drive [Summary] Copying a specific file from USB hard drive results in the copy hanging and repeating "No Sense" messages in the log. [Steps to reproduce] Two alternatives: 1) There is one specific file on the drive causing this to happen. Copy that file from the USB hard drive to the PC hard drive. 2) e2fsck -c -k -v /dev/sdb1 [Expected result] Operation finishes. No "No Sense" messages. [Result] The operation hangs and "No Sense" log messages start to appear when the copy is almost finished or when e2fsck -c has completed about 30%. The "No Sense" log messages repeat until I unplug the USB hard drive. [dmesg after copy] <...> [ 1103.775525] sd 2:0:0:0: [sdb] Sense Key : No Sense [current] [ 1103.775536] sd 2:0:0:0: [sdb] Add. Sense: No additional sense information [ 1103.783648] sd 2:0:0:0: [sdb] Sense Key : No Sense [current] [ 1103.783659] sd 2:0:0:0: [sdb] Add. Sense: No additional sense information [ 1103.791896] sd 2:0:0:0: [sdb] Sense Key : No Sense [current] [ 1103.791908] sd 2:0:0:0: [sdb] Add. Sense: No additional sense information <...> [Kernel versions] This report is based on a test on a fresh install of Ubuntu 9.04 with mainline kernel 2.6.30-020630rc3 installed from the Ubuntu Kernel Team's mainline kernel archive (http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30-rc3/), described at https://wiki.ubuntu.com/KernelMainlineBuilds. The same behaviour has been observed on Ubuntu 8.10 with mainline kernel 2.6.29-020629 from the Ubuntu Kernel Team's mainline kernel archive, on Ubuntu 8.10 with Ubuntu kernel 2.6.27-11 and on Ubuntu 9.04 beta with kernel Ubuntu 2.6.29. [Regression] On Ubuntu 8.10 with Ubuntu kernel 2.6.24-21 originally supplied with an older Ubuntu, the behaviour was different: The same "No Sense" log message appeared, but only once, and the file copy and e2fsck -c operations finishes without errors, although I have not been able to verify that the file was copied without errors. [/proc/version] Linux version 2.6.30-020630rc3-generic (root@zinc) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #020630rc3 SMP Wed Apr 22 14:14:13 UTC 2009 [usbmon] I have usbmon output of the copy, but it is not attached since the copied file is quite large so the usbmon output is large. Please let me know if you want it. [More information] See attachements for more information. Please let me know how I can assist you with more information. The issue was originally reported as an Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/360397 [Debugging to check if FIX_CAPACITY quirk fixes the problem] From http://www.kernel.org/doc/Documentation/kernel-parameters.txt document: usb-storage.quirks= c = FIX_CAPACITY (decrease the reported device capacity by one sector) modprobe -r usb-storage modprobe usb-storage quirks=1058:0901:c cat /proc/scsi/usb-storage/4 Host scsi4: usb-storage Vendor: Western Digital Product: External HDD Serial Number: 57442D574341505731373532373531 Protocol: Transparent SCSI Transport: Bulk Quirks: FIX_CAPACITY The problem was still present.
Created attachment 21112 [details] ver_linux, lspci -vvv, lsusb -v, /proc/cpuinfo, /proc/modules, /proc/scsi/scsi More information about the system attached. After a reboot, but with the USB hard drive plugged in.
I have same problems with bare 2.6.32-rc3. When I start to fill disk with data and about 107GB is free then next writes fail with sd 5:0:0:0: [sdb] Sense Key : No Sense [current] sd 5:0:0:0: [sdb] Add. Sense: No additional sense information errors. I will attach my configuration.
Created attachment 23299 [details] lsusb output
Created attachment 23300 [details] stripped dmesg output
All USB bugs should be sent to the linux-usb@vger.kernel.org mailing list, and not entered into bugzilla. Please bring this issue up there, if it is still a problem in the latest kernel release.