Public bug reported:
[Summary]
Copying a specific file from the USB hard drive results in the copy hanging and
repeating "No Sense" messages in the log. Probably not a unusual_devs.h
FIX_CAPACITY issue. The installed system is Ubuntu 8.10, but problem also
present on Jaunty Beta live CD and 8.10 with kernel 2.6.29.
[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) sudo e2fsck -c -k -v /dev/sdb1
The operation hangs and log messages start to appear when the copy is almost
finished or when e2fsck -c has completed about 30%.
[/var/log/messages]
Apr 4 11:44:02 nakimhp kernel: [ 0.000000] Linux version 2.6.27-11-generic
(bui...@rothera) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Thu Jan
29 19:24:39 UTC 2009 (Ubuntu 2.6.27-11.27-generic)
<...>
Apr 4 12:24:55 nakimhp kernel: [ 2483.928157] usb 1-2: new high speed USB
device using ehci_hcd and address 2
Apr 4 12:24:55 nakimhp kernel: [ 2484.076064] usb 1-2: configuration #1 chosen
from 1 choice
Apr 4 12:24:55 nakimhp kernel: [ 2484.273465] usbcore: registered new
interface driver libusual
Apr 4 12:24:55 nakimhp kernel: [ 2484.289995] Initializing USB Mass Storage
driver...
Apr 4 12:24:55 nakimhp kernel: [ 2484.294119] scsi2 : SCSI emulation for USB
Mass Storage devices
Apr 4 12:24:55 nakimhp kernel: [ 2484.294762] usbcore: registered new
interface driver usb-storage
Apr 4 12:24:55 nakimhp kernel: [ 2484.295193] USB Mass Storage support
registered.
Apr 4 12:25:00 nakimhp kernel: [ 2489.327765] scsi 2:0:0:0: Direct-Access
WD 5000AAKB Externa l108 PQ: 0 ANSI: 0
Apr 4 12:25:00 nakimhp kernel: [ 2489.336342] sd 2:0:0:0: [sdb] 976773168
512-byte hardware sectors (500108 MB)
Apr 4 12:25:00 nakimhp kernel: [ 2489.337821] sd 2:0:0:0: [sdb] Write Protect
is off
Apr 4 12:25:00 nakimhp kernel: [ 2489.343446] sd 2:0:0:0: [sdb] 976773168
512-byte hardware sectors (500108 MB)
Apr 4 12:25:00 nakimhp kernel: [ 2489.345823] sd 2:0:0:0: [sdb] Write Protect
is off
Apr 4 12:25:00 nakimhp kernel: [ 2489.349273] sdb: sdb1
Apr 4 12:25:00 nakimhp kernel: [ 2489.358871] sd 2:0:0:0: [sdb] Attached SCSI
disk
Apr 4 12:25:00 nakimhp kernel: [ 2489.360253] sd 2:0:0:0: Attached scsi
generic sg2 type 0
Apr 4 12:25:01 nakimhp kernel: [ 2490.048518] kjournald starting. Commit
interval 5 seconds
Apr 4 12:25:01 nakimhp kernel: [ 2490.050204] EXT3 FS on sdb1, internal journal
Apr 4 12:25:01 nakimhp kernel: [ 2490.050214] EXT3-fs: recovery complete.
Apr 4 12:25:01 nakimhp kernel: [ 2490.051330] EXT3-fs: mounted filesystem with
ordered data mode.
<... copy file or do e2fsck -c ...>
Apr 4 12:29:14 nakimhp kernel: [ 2743.120143] sd 2:0:0:0: [sdb] Sense Key : No
Sense [current]
Apr 4 12:29:14 nakimhp kernel: [ 2743.120165] sd 2:0:0:0: [sdb] Add. Sense: No
additional sense information
Apr 4 12:29:14 nakimhp kernel: [ 2743.122511] sd 2:0:0:0: [sdb] Sense Key : No
Sense [current]
Apr 4 12:29:14 nakimhp kernel: [ 2743.122527] sd 2:0:0:0: [sdb] Add. Sense: No
additional sense information
Apr 4 12:29:14 nakimhp kernel: [ 2743.126252] sd 2:0:0:0: [sdb] Sense Key : No
Sense [current]
Apr 4 12:29:14 nakimhp kernel: [ 2743.126268] sd 2:0:0:0: [sdb] Add. Sense: No
additional sense information
Apr 4 12:29:14 nakimhp kernel: [ 2743.132886] sd 2:0:0:0: [sdb] Sense Key : No
Sense [current]
<...these repeat forever(?)...>
[lsusb -v]
Bus 001 Device 002: ID 1058:0901 Western Digital Technologies, Inc. MyBook
External HDD
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1058 Western Digital Technologies, Inc.
idProduct 0x0901 MyBook External HDD
bcdDevice 1.08
iManufacturer 1 Western Digital
iProduct 2 External HDD
iSerial 3 57442D574341505731373532373531
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered
[/proc/scsi/usb-storage/2]
Host scsi2: usb-storage
Vendor: Western Digital
Product: External HDD
Serial Number: 57442D574341505731373532373531
Protocol: Transparent SCSI
Transport: Bulk
Quirks:
[Test 1 - kernel 2.6.24-21]
Tried the same with kernel 2.6.24-21 and got the same log message, but now only
once, and the file copy and e2fsck -c operations finishes without errors.
Apr 5 19:22:40 nakimhp kernel: [ 0.000000] Linux version 2.6.24-21-generic
(bui...@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Tue Oct 21
23:43:45 UTC 2008 (Ubuntu 2.6.24-21.43-generic)
<...>
Apr 5 21:16:19 nakimhp kernel: [ 4237.789993] usb 4-2: new high speed USB
device using ehci_hcd and address 4
Apr 5 21:16:19 nakimhp kernel: [ 4237.927277] usb 4-2: configuration #1 chosen
from 1 choice
Apr 5 21:16:19 nakimhp kernel: [ 4237.995928] scsi4 : SCSI emulation for USB
Mass Storage devices
Apr 5 21:16:24 nakimhp kernel: [ 4239.491987] scsi 4:0:0:0: Direct-Access
WD 5000AAKB Externa l108 PQ: 0 ANSI: 0
Apr 5 21:16:24 nakimhp kernel: [ 4239.508329] sd 4:0:0:0: [sdb] 976773168
512-byte hardware sectors (500108 MB)
Apr 5 21:16:24 nakimhp kernel: [ 4239.520678] sd 4:0:0:0: [sdb] Write Protect
is off
Apr 5 21:16:24 nakimhp kernel: [ 4239.528533] sd 4:0:0:0: [sdb] 976773168
512-byte hardware sectors (500108 MB)
Apr 5 21:16:24 nakimhp kernel: [ 4239.532488] sd 4:0:0:0: [sdb] Write Protect
is off
Apr 5 21:16:24 nakimhp kernel: [ 4239.532550] sdb: sdb1
Apr 5 21:16:24 nakimhp kernel: [ 4239.535914] sd 4:0:0:0: [sdb] Attached SCSI
disk
Apr 5 21:16:24 nakimhp kernel: [ 4239.536137] sd 4:0:0:0: Attached scsi
generic sg2 type 0
Apr 5 21:16:25 nakimhp kernel: [ 1414.080401] kjournald starting. Commit
interval 5 seconds
Apr 5 21:16:25 nakimhp kernel: [ 4242.258068] EXT3 FS on sdb1, internal journal
Apr 5 21:16:25 nakimhp kernel: [ 4242.258098] EXT3-fs: mounted filesystem with
ordered data mode.
<... copy file or do e2fsck -c ...>
Apr 5 21:18:00 nakimhp kernel: [ 2618.995878] sd 4:0:0:0: [sdb] Sense Key : No
Sense [current]
Apr 5 21:18:01 nakimhp kernel: [ 2618.995908] sd 4:0:0:0: [sdb] Add. Sense: No
additional sense information
[Test 2 - kernel 2.6.29-020629]
I installed kernel 2.6.29 from http://kernel.ubuntu.com/~kernel-ppa/ because
this kernel has the ability to set some Quirks for the USB storage device.
>From http://www.kernel.org/doc/Documentation/kernel-parameters.txt documents:
usb-storage.quirks=
c = FIX_CAPACITY (decrease the reported device capacity by one sector)
sudo modprobe -r usb-storage
sudo modprobe usb-storage quirks=1058:0901:c
I checked that the FIX_CAPACITY quirk was present in /proc/scsi/usb-
storage/2.
The problem was still present.
[Possible duplicates]
I have found Bug #264789 and a lot of reports of "No Sense" messages, but most
of these seems to be related to problems mounting because of incorrect number
of sectors reported by the disk. The fix for these other issues seems to be to
add a FIX_CAPACITY flag to usb/storage/unusual_devs.h. Since adding the
FIX_CAPACITY quirk in kernel 2.6.29-020629-generic did not fix the problem, I
report this as a separate bug.
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
USB hard drive file copy hangs - "No Sense" in log
https://bugs.launchpad.net/bugs/360397
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs