Bug 8551 - USB hard drive (iPod) I/O errors on read
Summary: USB hard drive (iPod) I/O errors on read
Status: REJECTED UNREPRODUCIBLE
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: io_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 13:24 UTC by pjman
Modified: 2008-09-23 11:21 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.20-16-generic
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description pjman 2007-05-29 13:24:06 UTC
Most recent kernel where this bug did *NOT* occur:?
Distribution:Ubuntu Feisty Fawn
Hardware Environment:Biostar M7VIT Pro V1.0
Software Environment:Gnome
Problem Description:

I'm getting I/O errors when trying to read from a USB drive (iPod, 4th gen, 20
GB) on a fresh Feisty install.

-The USB drive (iPod) works fine in Windows XP
-I have a second, identical, iPod that acts the same way

Kernel: 2.6.20-15-generic

/var/log/messages
[ 81.186626] usb 4-2: new high speed USB device using ehci_hcd and address 3
[ 81.319663] usb 4-2: configuration #1 chosen from 1 choice
[ 81.320018] scsi1 : SCSI emulation for USB Mass Storage devices
[ 86.323066] scsi 1:0:0:0: Direct-Access Apple iPod 1.62 PQ: 0 ANSI: 0
[ 86.326962] SCSI device sdb: 39063023 512-byte hdwr sectors (20000 MB)
[ 86.327854] sdb: Write Protect is off
[ 86.329474] SCSI device sdb: 39063023 512-byte hdwr sectors (20000 MB)
[ 86.330351] sdb: Write Protect is off
[ 86.330362] sdb: sdb1 sdb2
[ 86.401917] sd 1:0:0:0: Attached scsi removable disk sdb
[ 86.402002] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 102.963876] usb 4-2: reset high speed USB device using ehci_hcd and address 3
[ 133.204025] usb 4-2: reset high speed USB device using ehci_hcd and address 3
[ 143.446733] usb 4-2: reset high speed USB device using ehci_hcd and address 3
[ 159.792681] usb 4-2: reset high speed USB device using ehci_hcd and address 3
[ 160.040649] usb 4-2: reset high speed USB device using ehci_hcd and address 3
[ 170.283313] usb 4-2: reset high speed USB device using ehci_hcd and address 3
[ 170.416509] sd 1:0:0:0: scsi: Device offlined - not ready after error recovery
[ 170.416532] sd 1:0:0:0: SCSI error: return code = 0x00050000
[ 170.416536] end_request: I/O error, dev sdb, sector 11072029
[ 170.416595] lost page write due to I/O error on sdb2
[ 170.416610] lost page write due to I/O error on sdb2
[ 170.416625] lost page write due to I/O error on sdb2
[ 170.416633] lost page write due to I/O error on sdb2
[ 170.416646] lost page write due to I/O error on sdb2
[ 170.416654] lost page write due to I/O error on sdb2
[ 170.416661] lost page write due to I/O error on sdb2
[ 170.416668] lost page write due to I/O error on sdb2
[ 176.519551] lost page write due to I/O error on sdb2
[ 176.519567] lost page write due to I/O error on sdb2
[ 210.206268] usb 4-2: USB disconnect, address 3

/var/log/dmesg
[ 26.397583] usb 1-1: new full speed USB device using uhci_hcd and address 3
[ 26.567620] usb 1-1: configuration #1 chosen from 1 choice
[ 26.572573] hub 1-1:1.0: USB hub found
[ 26.574518] hub 1-1:1.0: 3 ports detected
[ 26.845607] hdc: LTN526D, ATAPI CD/DVD-ROM drive
[ 26.887371] usb 1-1.1: new full speed USB device using uhci_hcd and address 4
[ 27.031437] usb 1-1.1: configuration #1 chosen from 1 choice
[ 27.247224] usb 1-1.2: new full speed USB device using uhci_hcd and address 5
[ 27.392287] usb 1-1.2: configuration #1 chosen from 1 choice
[ 27.599068] usb 1-1.3: new full speed USB device using uhci_hcd and address 6
[ 27.629510] hdd: PLEXTOR CD-R PX-W1210A, ATAPI CD/DVD-ROM drive
[ 27.685829] ide1 at 0x170-0x177,0x376 on irq 15
[ 27.697154] SCSI subsystem initialized
[ 27.704343] libata version 2.20 loaded.
[ 27.716512] hda: max request size: 128KiB
[ 27.724969] hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63,
UDMA(100)
[ 27.724982] hda: cache flushes not supported
[ 27.725065] hda: hda1 hda2 <<6>usb 1-1.3: configuration #1 chosen from 1 choice
[ 27.768828] usbcore: registered new interface driver libusual
[ 27.775215] Initializing USB Mass Storage driver...
[ 27.779032] hda5 >
[ 27.779760] hdb: max request size: 128KiB
[ 27.785634] hdb: 8421840 sectors (4311 MB) w/256KiB Cache, CHS=8912/15/63, UDMA(66)
[ 27.785646] hdb: cache flushes not supported
[ 27.785710] hdb:<6>scsi0 : SCSI emulation for USB Mass Storage devices
[ 27.786890] usbcore: registered new interface driver usb-storage
[ 27.786896] USB Mass Storage support registered.
[ 27.787045] usb-storage: device found at 6
[ 27.787049] usb-storage: waiting for device to settle before scanning
[ 27.820845] hdb1
[ 27.832704] hdc: ATAPI 52X CD-ROM drive, 120kB Cache, UDMA(33)
[ 27.832717] Uniform CD-ROM driver Revision: 3.20
[ 27.872893] hdd: ATAPI 32X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
[ 28.354832] Attempting manual resume
[ 28.354838] swsusp: Resume From Partition 3:5
[ 28.354841] PM: Checking swsusp image.
[ 28.355024] PM: Resume from disk failed.
[ 28.390346] kjournald starting. Commit interval 5 seconds
[ 28.390365] EXT3-fs: mounted filesystem with ordered data mode.
[ 32.836978] usb-storage: device scan complete
[ 32.983904] scsi 0:0:0:0: Direct-Access OEI-USB CF/SM/SD/MS 2.4 PQ: 0 ANSI: 0


Related bug submission https://bugs.launchpad.net/bugs/116440
Comment 1 Alan Stern 2007-05-29 14:56:50 UTC
Problems like this are very difficult to handle without extra debugging
information.  In this case it would help to see either a log recorded with
CONFIG_USB_STORAGE_DEBUG turned on or a usbmon trace (see
Documentation/usb/usbmon.txt in the kernel source).  Can you provide one or the
other?
Comment 2 Joachim Beckers 2007-05-30 01:36:10 UTC
I'm having the same problem, with 2.6.20 and 2.6.22. I also had it in the past
with various 2.6.x kernels.

I'll see if I can provide the needed logs.
Comment 3 Joachim Beckers 2007-05-30 01:50:58 UTC
also see
https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/37163 for a
report of this bug hitting 2.6.15
Comment 4 pjman 2007-09-18 13:11:27 UTC
"it would help to see either a log recorded with
CONFIG_USB_STORAGE_DEBUG turned on or a usbmon trace (see
Documentation/usb/usbmon.txt in the kernel source).  Can you provide one or the
other?"

I tried rebuilding the kernel with CONFIG_USB_STORAGE_DEBUG turned on using a combination of these two guides:

https://wiki.ubuntu.com/KernelCustomBuild
http://ubuntuforums.org/showthread.php?t=311158

The new kernel would boot but no USB devices were recognized. Could anyone walk me through this?
Comment 5 Alan Stern 2007-09-19 08:27:03 UTC
Make sure you have all the necessary drivers built into the kernel or loaded as modules.  You'll need usbcore, ehci_hcd, usb_storage, scsi_mod, and sd_mod at a minimum.

Note You need to log in before you can comment on or make changes to this bug.