Re: 2.6.38: XFS/USB/HW issue, or failing USB stick?

From: Alan Stern
Date: Fri Mar 18 2011 - 11:39:36 EST


On Fri, 18 Mar 2011, Justin Piszcz wrote:

> Hi,
>
> I can write to just about the entire USB stick, with no errors:
>
> atom:~# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda2 5.8G 1.5G 4.3G 26% /
> tmpfs 2.0G 0 2.0G 0% /lib/init/rw
> udev 10M 140K 9.9M 2% /dev
> tmpfs 2.0G 0 2.0G 0% /dev/shm
> atom:~# cd /
> atom:/# ls
> bin cdrom etc lib media nfs proc sbin srv tmp var
> boot dev home lib64 mnt opt root selinux sys usr
> atom:/# dd if=/dev/zero of=bigfile bs=1M count=4000
> 4000+0 records in
> 4000+0 records out
> 4194304000 bytes (4.2 GB) copied, 135.536 s, 30.9 MB/s
> atom:/# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda2 5.8G 5.4G 350M 95% /
> tmpfs 2.0G 0 2.0G 0% /lib/init/rw
> udev 10M 140K 9.9M 2% /dev
> tmpfs 2.0G 0 2.0G 0% /dev/shm
> atom:/# rm bigfile
>
> However, after some amount of time, the errors occur below, is this USB
> stick failing? Since it has no SMART, is there any other way to verify
> the 'health' of a USB stick?

None that I know of.

> Mar 18 07:55:12 atom [ 10.034310] e1000e 0000:03:00.0: eth1: 10/100 speed: disabling TSO
>
> [ .. no errors .. ]
>
> Mar 18 08:32:44 atom [ 2261.883848] usb 1-1: USB disconnect, address 2
> Mar 18 08:32:44 atom [ 2261.884465] Buffer I/O error on device sda2, logical block 1317256

The stick didn't "fail" in any obvious way, but for some reason it was
disconnected from the USB bus. (If it initiated that disconnect by
itself, I guess you could consider that a failure.) Maybe it was
something as simple as overheating causing a loss of electrical contact
between the connector and the pins in the USB port.

...
> Mar 18 08:33:06 atom [ 2283.963059] usb 1-1: new high speed USB device using ehci_hcd and address 4
> Mar 18 08:33:06 atom [ 2284.080647] usb 1-1: New USB device found, idVendor=0325, idProduct=ac02
> Mar 18 08:33:06 atom [ 2284.080707] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> Mar 18 08:33:06 atom [ 2284.080752] usb 1-1: Product: R2_TURBO
> Mar 18 08:33:06 atom [ 2284.080794] usb 1-1: Manufacturer: OCZ Technology
> Mar 18 08:33:06 atom [ 2284.080831] usb 1-1: SerialNumber: (removed)

And then 22 seconds later it reconnected.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/