Problem with USB Mass Storage

Bug #40561 reported by marduk
24
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Medium
Jim Lieb
linux-source-2.6.15 (Ubuntu)
Won't Fix
Medium
Unassigned
linux-source-2.6.17 (Ubuntu)
Won't Fix
Undecided
Chuck Short

Bug Description

I have this problem with 2 PC's running Dapper Drake Beta (Last Upgrade today).
The USB-Device gets connected and is also mounted automatically. But syslog already writes down some errors:

[4295161.475000] cdc_acm 2-2:1.1: ttyACM0: USB ACM device
[4295161.478000] cdc_acm 2-2:1.3: ttyACM1: USB ACM device
[4295161.480000] usbcore: registered new driver cdc_acm
[4295161.480000] drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters
[4295174.463000] usb 2-2: USB disconnect, address 2
[4295177.919000] usb 2-2: new full speed USB device using uhci_hcd and address 3
[4295178.210000] SCSI subsystem initialized
[4295178.223000] Initializing USB Mass Storage driver...
[4295178.223000] scsi0 : SCSI emulation for USB Mass Storage devices
[4295178.224000] usb-storage: device found at 3
[4295178.224000] usb-storage: waiting for device to settle before scanning
[4295178.224000] scsi1 : SCSI emulation for USB Mass Storage devices
[4295178.224000] usb-storage: device found at 3
[4295178.224000] usb-storage: waiting for device to settle before scanning
[4295178.225000] usbcore: registered new driver usb-storage
[4295178.225000] USB Mass Storage support registered.
[4295183.228000] Vendor: SEMC Model: Int.Memory Rev: 0000
[4295183.228000] Type: Direct-Access ANSI SCSI revision: 00
[4295183.228000] Vendor: SEMC Model: Mem-Stick Rev: 0000
[4295183.228000] Type: Direct-Access ANSI SCSI revision: 00
[4295183.233000] usb-storage: device scan complete
[4295183.233000] usb-storage: device scan complete
[4295183.333000] SCSI device sda: 53996 512-byte hdwr sectors (28 MB)
[4295183.339000] sda: Write Protect is off
[4295183.339000] sda: Mode Sense: 00 6a 00 00
[4295183.339000] sda: assuming drive cache: write through
[4295183.352000] SCSI device sda: 53996 512-byte hdwr sectors (28 MB)
[4295183.357000] sda: Write Protect is off
[4295183.357000] sda: Mode Sense: 00 6a 00 00
[4295183.357000] sda: assuming drive cache: write through
[4295183.357000] sda: sda1
[4295183.371000] sd 0:0:0:0: Attached scsi removable disk sda
[4295183.381000] SCSI device sdb: 960481 512-byte hdwr sectors (492 MB)
[4295183.386000] sdb: Write Protect is off
[4295183.386000] sdb: Mode Sense: 00 6a 00 00
[4295183.386000] sdb: assuming drive cache: write through
[4295183.399000] SCSI device sdb: 960481 512-byte hdwr sectors (492 MB)
[4295183.405000] sdb: Write Protect is off
[4295183.405000] sdb: Mode Sense: 00 6a 00 00
[4295183.405000] sdb: assuming drive cache: write through
[4295183.405000] sdb: sdb1
[4295183.426000] sd 1:0:0:0: Attached scsi removable disk sdb
[4295183.459000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[4295183.459000] sd 1:0:0:0: Attached scsi generic sg1 type 0
[4295183.727000] Buffer I/O error on device sdb1, logical block 960472
[4295183.727000] Buffer I/O error on device sdb1, logical block 960473
[4295183.727000] Buffer I/O error on device sdb1, logical block 960474
[4295183.727000] Buffer I/O error on device sdb1, logical block 960475
[4295183.727000] Buffer I/O error on device sdb1, logical block 960476
[4295183.728000] Buffer I/O error on device sdb1, logical block 960477
[4295183.728000] Buffer I/O error on device sdb1, logical block 960478
[4295183.728000] Buffer I/O error on device sdb1, logical block 960479
[4295183.728000] Buffer I/O error on device sdb1, logical block 960472
[4295183.728000] Buffer I/O error on device sdb1, logical block 960473
[4295185.052000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[4295185.462000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

Then i write some files on the Device. Sometimes the copy job "hangs" for a few seconds.

[4295245.559000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.559000] end_request: I/O error, dev sdb, sector 241504
[4295245.559000] printk: 94 messages suppressed.
[4295245.559000] Buffer I/O error on device sdb1, logical block 241473
[4295245.559000] lost page write due to I/O error on sdb1
[4295245.569000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.569000] end_request: I/O error, dev sdb, sector 241505
[4295245.569000] Buffer I/O error on device sdb1, logical block 241474
[4295245.569000] lost page write due to I/O error on sdb1
[4295245.580000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.580000] end_request: I/O error, dev sdb, sector 241506
[4295245.580000] Buffer I/O error on device sdb1, logical block 241475
[4295245.580000] lost page write due to I/O error on sdb1
[4295245.590000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.590000] end_request: I/O error, dev sdb, sector 241507
[4295245.590000] Buffer I/O error on device sdb1, logical block 241476
[4295245.590000] lost page write due to I/O error on sdb1
[4295245.600000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.600000] end_request: I/O error, dev sdb, sector 241508
[4295245.600000] Buffer I/O error on device sdb1, logical block 241477
[4295245.600000] lost page write due to I/O error on sdb1
[4295245.610000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.610000] end_request: I/O error, dev sdb, sector 241509
[4295245.610000] Buffer I/O error on device sdb1, logical block 241478
[4295245.610000] lost page write due to I/O error on sdb1
[4295245.620000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.620000] end_request: I/O error, dev sdb, sector 241510
[4295245.620000] Buffer I/O error on device sdb1, logical block 241479
[4295245.620000] lost page write due to I/O error on sdb1
[4295245.629000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.629000] end_request: I/O error, dev sdb, sector 241511
[4295245.629000] Buffer I/O error on device sdb1, logical block 241480
[4295245.629000] lost page write due to I/O error on sdb1
[4295245.639000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.639000] end_request: I/O error, dev sdb, sector 241512
[4295245.639000] Buffer I/O error on device sdb1, logical block 241481
[4295245.639000] lost page write due to I/O error on sdb1
[4295245.649000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.649000] end_request: I/O error, dev sdb, sector 241513
[4295245.649000] Buffer I/O error on device sdb1, logical block 241482
[4295245.649000] lost page write due to I/O error on sdb1
[4295245.659000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.659000] end_request: I/O error, dev sdb, sector 241514
[4295245.669000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.669000] end_request: I/O error, dev sdb, sector 241515
[4295245.679000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.679000] end_request: I/O error, dev sdb, sector 241516
[4295245.689000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.689000] end_request: I/O error, dev sdb, sector 241517
[4295245.699000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.699000] end_request: I/O error, dev sdb, sector 241518
[4295245.709000] sd 1:0:0:0: SCSI error: return code = 0x70000
[4295245.709000] end_request: I/O error, dev sdb, sector 241519
[4295245.713000] usb 2-2: USB disconnect, address 3
[4295245.713000] sd 1:0:0:0: SCSI error: return code = 0x10000
[4295245.713000] end_request: I/O error, dev sdb, sector 241520

Then i want to eject the device but it doesn umount (manually umount also doesnt work). When i remove the cable from the PC i get this in my syslog:

[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed
[4295245.713000] sd 1:0:0:0: rejecting I/O to device being removed

The files that i have transferred to the device are corrupted (0 bytes). I can write to it with Windows XP / Vista without any problems, tried with Knoppix and had the same. The USB-Device is brand new (arrived today).

lsusb -v:

Bus 002 Device 007: ID 0fce:e042 Sony Ericsson Mobile Communications AB
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0fce Sony Ericsson Mobile Communications AB
idProduct 0xe042
bcdDevice 0.00
iManufacturer 1 Sony Ericsson
iProduct 2 Sony Ericsson W810
iSerial 3 359061003023867_0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 55
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 2 SFF-8020i, MMC-2 (ATAPI)
bInterfaceProtocol 80
iInterface 4 memory 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x07 EP 7 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 2 SFF-8020i, MMC-2 (ATAPI)
bInterfaceProtocol 80
iInterface 5 Sony Ericsson USB WMC Modem
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x08 EP 8 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)

Tags: cft-2.6.27
Revision history for this message
Joachim Beckers (jbeckers) wrote :

I have this problem too, with my 4th gen 40GB ipod though.

It usually works for some time while copying data, dut then suddenly it seems to give up. That's when the "Buffer I/O error on device sda2, logical block blabla" errors begin. Also, /dev/sd* disappear, which causes umount to not function at all.

Google told me to rmmod ehci_hcd, but that makes the kernel crash. A hard reset is needed.

Revision history for this message
Ben Collins (ben-collins) wrote :

Did you rmmod it before or after the disk failed? Please try doing it from a clean boot before even plugging in the ipod.

Revision history for this message
Joachim Beckers (jbeckers) wrote :

I tried both. steps to reproduce:

1) before it failed:
boot up, log in to gnome, rmmod ehci_hcd, plug in the ipod, system seems to work fine but freezes when I try to access the ipod (actually, it was enough to open nautilus with computer:/// as the location)

2) after it failed:
boot up, log into gnome, plug in the ipod, access it (this works fine for some time), see it fail (after a certain amount of read/write operations), system still works fine now, rmmod ehci_hcd, system freezes immediately.

Revision history for this message
mechko (mechko) wrote :

I have the same problem with the w810i as marduk above. I also tried to make a new vfat-filesystem on /dev/sda1 or to remove module ehci_hcd, both with no success.

Sometimes it helps to do a umount /dev/sda1 and using the eject-dialog of gnome only when this is done (takes a while, depends on the size of the copied files).

Thanks and best regards,
mechko

Revision history for this message
Joachim Beckers (jbeckers) wrote :

I'm not seeing the kernel crash any longer with the latest edgy kernel (2.6.17.1-10.34 generic). I have to rmmod ehci-hcd however to get usb working more or less. Otherwise it still fails after copying some data.

Revision history for this message
Jens Berke (jensberke) wrote :
Download full text (5.2 KiB)

I have the same or a similar problem with a brand new Verbatim Store'n'go 1 GB USB stick. When writing a lot of files (say 4000 files of 80MB) to the stick, I got an error message and it got unmounted. After that, all data and even the partition table was lost! Because of a possible manufacturing error I returned the stick and had it replaced with another one (same model). The first thing I did on the new one was
dd if=/dev/zero of=/dev/sdb
then I created a FAT32 partition. I still get lots of write errors on that one, but at least the partition table stays intact (maybe due to the "dd..."?).

I have the problem on Edgy (all updates installed) and tested with a live CD of Feisty Beta as well. Same error on both (on a IBM Thinkpad R52). Here's the log on Feisty Beta:

Mar 31 19:54:03 ubuntu kernel: [ 9.752000] scsi 2:0:0:0: Direct-Access VBTM Store'n'go Pro 6.50 PQ: 0 ANSI: 0 CCS
Mar 31 19:54:03 ubuntu kernel: [ 9.752000] SCSI device sdb: 1989631 512-byte hdwr sectors (1019 MB)
Mar 31 19:54:03 ubuntu kernel: [ 9.752000] sdb: Write Protect is off
Mar 31 19:54:03 ubuntu kernel: [ 9.752000] SCSI device sdb: 1989631 512-byte hdwr sectors (1019 MB)
Mar 31 19:54:03 ubuntu kernel: [ 9.756000] sdb: Write Protect is off
Mar 31 19:54:03 ubuntu kernel: [ 9.756000] sdb: sdb1
Mar 31 19:54:03 ubuntu kernel: [ 9.756000] sd 2:0:0:0: Attached scsi removable disk sdb
Mar 31 19:54:03 ubuntu kernel: [ 9.756000] sd 2:0:0:0: Attached scsi generic sg2 type 0

Here's where the error occurs (while copying files to the stick):

Mar 31 19:58:58 ubuntu kernel: [ 497.428000] usb 5-3.2: reset high speed USB device using ehci_hcd and address 3
Mar 31 19:59:17 ubuntu kernel: [ 515.852000] usb 5-3.2: reset high speed USB device using ehci_hcd and address 3
Mar 31 19:59:35 ubuntu kernel: [ 534.276000] usb 5-3.2: reset high speed USB device using ehci_hcd and address 3
Mar 31 19:59:45 ubuntu kernel: [ 544.592000] usb 5-3.2: reset high speed USB device using ehci_hcd and address 3
Mar 31 19:59:56 ubuntu kernel: [ 554.836000] sd 2:0:0:0: scsi: Device offlined - not ready after error recovery
Mar 31 19:59:56 ubuntu kernel: [ 554.836000] sd 2:0:0:0: SCSI error: return code = 0x00050000
Mar 31 19:59:56 ubuntu kernel: [ 554.836000] end_request: I/O error, dev sdb, sector 1854531
Mar 31 19:59:56 ubuntu kernel: [ 554.836000] lost page write due to I/O error on sdb1
Mar 31 19:59:56 ubuntu last message repeated 9 times
Mar 31 19:59:56 ubuntu kernel: [ 554.836000] sd 2:0:0:0: SCSI error: return code = 0x00010000
Mar 31 19:59:56 ubuntu kernel: [ 554.836000] end_request: I/O error, dev sdb, sector 1855891
Mar 31 19:59:56 ubuntu kernel: [ 555.268000] usb 5-3.2: USB disconnect, address 3
Mar 31 19:59:56 ubuntu kernel: [ 555.496000] usb 5-3.2: new high speed USB device using ehci_hcd and address 6

After that, the stick is not mounted anymore. The light on the stick is always on after the error occured (usually it's off or it's blinking when the stick is accessed).

lsusb -v of the stick:

Bus 005 Device 006: ID 08ec:0020 M-Systems Flash Disk Pioneers
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB ...

Read more...

Revision history for this message
Joachim Beckers (jbeckers) wrote :

Jens, are you on feisty?

I tested again yesterday, copying 300+ songs to my ipod, and the bug was gone. Maybe it's fixed for you too?

Revision history for this message
Jens Berke (jensberke) wrote :

The log I posted above is from Feisty Beta, which I started from CD as a LIVE system on my laptop in order to test the stick. However, I get the same behaviour on my installed Edgy (same machine and stick). What I haven't tried so far is testing it from an *installed* Feisty (I won't be able to do that before the end of April).

What I found out as well is that the error depends on a combination of the amount of files and the size of these files. Copying one big file of 200MB doesn't cause any problems, copying 6000 files of 80MB will produce the error, however, splitting these 6000 files into chunks and doing a "sync" after each chunk it works fine. Example:

~/Folder/Subfolder1 contains 2000 files of 20MB
~/Folder/Subfolder2 contains 2000 files of 20MB
~/Folder/Subfolder3 contains 1000 files of 20MB
~/Folder/Subfolder4 contains 1000 files of 20MB

Copying ~/Folder do the stick will cause the crash. Copying each subfolder separately with a "sync" after each subfolder runs fine.

Seems like there's a limit of the amount of files and/or file size which defines if the error occurs or not.

Revision history for this message
Joachim Beckers (jbeckers) wrote :

That might just be a hardware issue then. Weird but possible.

Revision history for this message
Jens Berke (jensberke) wrote :

Have upgraded from Edgy to Feisty about a week ago and just tested the problem I reported above. It's gone and so far it seems to work fine :-)

Revision history for this message
Chuck Short (zulcss) wrote :

For those who are still having this problem, can they please test to see if this problem is fixed in gutsy. If they are still having the problem can you please attach the output of cat /proc/usb/devices. Please attach it as device-name-output.txt.

Thanks
chuck

Changed in linux-source-2.6.17:
assignee: nobody → zulcss
Revision history for this message
etzemart (etzi) wrote :

i have an similar problem. when i try to copy larger files(>500mb) the device is removed unsafe etc...
i have attached my /proc/devices, i have no /proc/usb/device

i hope this bug gets fixed, i am now on gutsy an live with the bug until dapper...

Revision history for this message
etzemart (etzi) wrote :

my syslog

Revision history for this message
etzemart (etzi) wrote :

my syslog

Revision history for this message
Paul Taylor (paul-taylor-london) wrote : USB disk goes offline midtransfer

I have a new Freecom Classic SL 80GB USB hard drive connected to
Ubuntu 6.06 Dapper Drake Linux 2.6.15-29-386 on old (2001) hardware
also tried with Mac PowerBook G4 MacOS 10.3.9.

After playing with the VFAT filesystem on the disk as it came, using both computers,
I used GNU Parted 1.6.25.1 to put a single-partition EXT2 filesystem on it.
However, fdisk v2.12r thinks that it's still VFAT, whilst (after doing the copies below)
the Mac still sees the old VFAT files, but not the new EXT2 ones.

I started trying to copy the partitions of the 20GB disk on the Linux machine,
using GNU cpio v2.6. The two smallest ones (/=168MB and /var=316MB) were
copied corrrectly, as verified using md5sums.

When I tried the bigger ones (/usr=2168MB and /home=1754MB), the copy failed
after some time (after almost 1GB on one occasion) and the disk was disconnected.

STDERR said: cpio: write error: Input/output error

dmesg said: Buffer I/O error on device sda1, logical block 8587112
and (repeatedly) rejecting I/O to dead device

/var/log/messages contained lines like the following
usb 1-1: new full speed USB device using uhci_hcd and address 3
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: HDS72808 Model: 0PLAT20 Rev: 0 0
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 160836480 512-byte hdwr sectors (82348 MB)
sd 1:0:0:0: Attached scsi disk sdb
Driver 'sd' needs updating - please use bus_type methods
printk: 17347 messages suppressed.
lost page write due to I/O error on sda1

After this, /dev/sda1 no longer appeared in the output of "df",
and both mount and umount denied the existence of /dev/sda1.
However, usbview said that the usb device was still there.
After turning the disk power off/on, it appeared as /dev/sdb1.

A subsequent e2fsck found numerous errors with free block counts,
unattached inodes, inode ref counts, directory counts, etc.

This happened four times, including once using tar instead of cpio.

I tried using "e2fsck -c" to check for bad blocks. The first 3% of the disk
was ok, but took ages, so I went away to do something else. When I
came back, the disk had been disconnected as before, but I couldn't
see how far the bad block check had gone, as the screen saver wouldn't
restore the text of that terminal window. Subsequent e2fsck was clean.

I have no idea whether this is a Linux bug or faulty hardware. I am posting
this report here because the comments above were the closest that I could
find in a web search to the symptoms that I have.

Revision history for this message
jim brown (jimandsalbrown) wrote :

Hi, I've also had problems with the USB mass storage.

I'm running 7.10 with all latest updates.

~10:20 restarted machine
10:25:33 Plugged in LG Viewity (in USB mass storage mode)
~10:26 Nautilus browser appears and LG SD card drive mounted
10:28 select folder to navigate to on SD card using nautilus
~10:28:30 folder contents displayed
10:29:30 Start to copy file to local drive
10:29:45 Pop up displaying 'I/O error while copying message' - copy cancelled
10:30:45 unmounted LG drive

Like etezmart I don't have a /proc/usb/devices; I've enclosed an extract from my syslog

Additional note:
- After navigating to a folder using nautilus I have received a 'unsafe device removal' pop-up and the SD drive has been unmounted (nautilus crashes at this point) around this time I was getting following messages in syslog
Dec 27 09:53:12 brownie kernel: [ 408.970882] FAT: Directory bread(block 668) failed
Dec 27 09:53:12 brownie kernel: [ 408.970951] scsi 1:0:0:0: rejecting I/O to dead device

Revision history for this message
Paul Taylor (paul-taylor-london) wrote : USB disk goes offline - but not in Knoppix 5.1.1 (Linux 2.6.19)

I used gparted to repartition my 80Gb disk with several ext3 partitions (and one for the Mac), and gparted, fdisk, cfdisk and the Mac agreed on the new partition table.

Using cpio under Ubuntu Dapper / Linux 2.6.15, I then tried to copy the largest partition of my old disk (10Gb) on to it. This failed in the same way as before, but now after 3Gb. However, since I was now using the ext3 "journaling" filesystem, fsck now said that the disk was clean.

But whereas it had originally been mounted as /dev/sda, it was remounted after the failure as /dev/sdb.

Then I tried out Knoppix version 5.1.1 (www.knoppix.net), which is a year old; it includes the Linux kernel version 2.6.19.
This successfully copied all of my smaller partitions. Since I had already spent time on the partial copy of the big partition, I didn't scrub it and start again, but copied the rest in bits by listing the missing files. Maybe I wasn't doing a big enough transfer to provoke it, but the previous failure DID NOT happen.

So maybe this bug was fixed in Linux 2.6.19. However, it would be nice to hear from Chuck Short or anyone else with inside knowledge of the relevant code and its potential failure whether my report and the others pertain to something that is identifiable.

Revision history for this message
Caroline Ford (secretlondon) wrote :

The Hardy Heron Alpha series is currently under development and contains an updated version of the kernel. You can download and try the new Hardy Heron Alpha release from http://cdimage.ubuntu.com/releases/hardy/ . You should be able to test the new kernel using the LiveCD. If you can, please verify if this bug still exists or not and report back your results. General information regarding the release can also be found here: http://www.ubuntu.com/testing/ . Thanks.

Changed in linux-source-2.6.22:
status: New → Incomplete
Revision history for this message
george (george-talusan) wrote :

I'm having the same problem using Hardy Heron:

[411703.142574] end_request: I/O error, dev sdh, sector 749840
[411703.142616] usb 6-2.3: USB disconnect, address 22
[411703.168328] sd 19:0:0:0: [sdh] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
[411703.168341] end_request: I/O error, dev sdh, sector 750080
[411703.171615] sd 19:0:0:0: [sdh] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
[411703.171625] end_request: I/O error, dev sdh, sector 750320
[411703.172443] printk: 48 messages suppressed.
[411703.172450] Buffer I/O error on device sdh1, logical block 131
[411703.172457] lost page write due to I/O error on sdh1
[411703.172464] Buffer I/O error on device sdh1, logical block 132
[411703.172469] lost page write due to I/O error on sdh1

I'm using a Sony Ericsson W810i with a 4GB memory stick duo.

Linux dilemma 2.6.22-14-generic #1 SMP Tue Feb 12 02:46:46 UTC 2008 x86_64 GNU/Linux

Revision history for this message
Kjell Braden (afflux) wrote :

This was confirmed in hardy, setting to triaged, wontfixing the 2.6.15/2.6.17 bugs as described on https://wiki.ubuntu.com/UbuntuBugDay/20080425.

Changed in linux:
importance: Undecided → Medium
status: Incomplete → Triaged
Changed in linux-source-2.6.15:
status: Confirmed → Won't Fix
Changed in linux-source-2.6.17:
status: New → Won't Fix
Revision history for this message
Murray Scott (mjscott) wrote :

My USB disk problem is probably unrelated. I am new to Linux and installed Ubuntu 8.04 ( irritatingly called "hardy") on a Dell Inspiron 1100. As soon as it was working, with unreasonable optimism I launched straight into installing Windows XP in a VirtualBox. After considerable blundering it all now works except that....

My external USB hard drive operates fine from the Ubuntu file browser under my personal login but I cannot set its folders to share. The sharing dialog tells me I don't own those folders and have no business trying to share them. It then suggests:
       "Ask the administrator to add the line "usershare owner only = False"
 to the [global] section of the smb.conf to allow this."
I guess that means me, so eventually I found out how to get gksudo priviledges and change the file as suggested. No effect. Checked with gedit that the /usr/share/samba/smb.conf file is indeed changed. With all this priviledge going to my head I even tried commenting out the line: " invalid = root" just in case. Stalemate.

Meanwhile,another USB drive (a 1GB memory stick) works AND shares fine.
Any suggestions?

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Jeff Fortin Tam (kiddo) wrote :

This affects Ubuntu 8.10 (2.6.27-9-server), with an ext3 IDE Western Digital hard drive in an USB enclosure. The WD diagnostic tool (extended test) reported no errors at all, so not a hardware issue. I was scared real good, thinking the hard drive was dying. I guess this is the kernel doing stupid stuff with USB again.

I don't know how to mark this bug as affecting 2.6.27 too.

Revision history for this message
Brazilian Joe (tiago-freire) wrote :
Download full text (4.7 KiB)

Running Ubuntu desktop 8.04.2 (LTS), updated to latest packages.

I had a bad server crash, and picked up a backup from one of my virtual machines from the previous day (lucky me). I moved the vm (which happens to be a file server) to a USB drive, fresh-installed ubuntu and vmware server 2.0, and to my shock and horror, the USB disconnects after a random amount of time, crashing the VM in the process.

worse still, the directory where it was mounted previously (/media/disk) hangs with an IO error, I can't move it or otrhewise do anything with it. The device is remounted on a different directory (/media/disk-1).

VMWare does not like it at all, so I have to restart the whole system to bring back the VM.

----------
output of uname -a:
Linux fileserver 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11 UTC 2009 i686 GNU/Linux
---------
tail of dmesg:
[ 1164.424147] usb 4-1: USB disconnect, address 3
[ 1164.424363] sd 2:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_OK
[ 1164.424369] end_request: I/O error, dev sdb, sector 680117055
[ 1164.424375] Buffer I/O error on device sdb1, logical block 85014624
[ 1164.424379] lost page write due to I/O error on sdb1
[ 1164.424387] Buffer I/O error on device sdb1, logical block 85014625
[ 1164.424390] lost page write due to I/O error on sdb1
[ 1164.424393] Buffer I/O error on device sdb1, logical block 85014626
[ 1164.424396] lost page write due to I/O error on sdb1
[ 1164.424400] Buffer I/O error on device sdb1, logical block 85014627
[ 1164.424403] lost page write due to I/O error on sdb1
[ 1164.424406] Buffer I/O error on device sdb1, logical block 85014628
[ 1164.424409] lost page write due to I/O error on sdb1
[ 1164.424413] Buffer I/O error on device sdb1, logical block 85014629
[ 1164.424415] lost page write due to I/O error on sdb1
[ 1164.424419] Buffer I/O error on device sdb1, logical block 85014630
[ 1164.424422] lost page write due to I/O error on sdb1
[ 1164.424425] Buffer I/O error on device sdb1, logical block 85014631
[ 1164.424428] lost page write due to I/O error on sdb1
[ 1164.424431] Buffer I/O error on device sdb1, logical block 85014632
[ 1164.424434] lost page write due to I/O error on sdb1
[ 1164.424437] Buffer I/O error on device sdb1, logical block 85014633
[ 1164.424440] lost page write due to I/O error on sdb1
[ 1164.425094] sd 2:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
[ 1164.425099] end_request: I/O error, dev sdb, sector 680117295
[ 1164.426041] sd 2:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
[ 1164.426045] end_request: I/O error, dev sdb, sector 680117535
[ 1164.442854] Aborting journal on device sdb1.
[ 1164.442887] journal commit I/O error
[ 1164.442991] ext3_abort called.
[ 1164.442993] EXT3-fs error (device sdb1): ext3_journal_start_sb: Detected aborted journal
[ 1164.442997] Remounting filesystem read-only
[ 1864.510439] usb 4-1: new high speed USB device using ehci_hcd and address 4
[ 2331.229034] usb 4-1: configuration #1 chosen from 1 choice
[ 2331.240690] scsi3 : SCSI emulation for USB Mass Storage devices
[ 2331.242566] usb-storage: device found at 4
[ 2331.242574] usb-storage: w...

Read more...

Revision history for this message
Jeff Fortin Tam (kiddo) wrote :

Actually, ignore my previous comment about 8.10 being affected. It was just my hard drive enclosure's power cable being loose.

Revision history for this message
Jim Lieb (lieb) wrote :

There are a number of different USB storage devices listed in this bug. There have been a number of special
case (quirk) additions to the driver to handle some of these devices in kernels later than reported here. Please
test with the latest Jaunty kernel. Using a Live CD image should be sufficient to test the USB device so long as the CD/DVD device is not also a USB.

If your USB device still does not work with the Jaunty (9.04) kernel, file a new bug including the error log and
an 'lsusb' listing along with your symptoms.

Changed in linux (Ubuntu):
assignee: nobody → lieb
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.