Re: usb-storage write error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 8 Dec 2009, Jorge wrote:

> Hi,
> 
> This is my first message to the list. I would like to report an error
> I've having trying to use several pen drives that I have. They have FAT32
> partitions.
> 
> I'm using an Ubuntu 9.10 x64 with a kernel 2.6.31 recompiled in order to get the
> usb storage and usb message, nothing else. My workstation is an HP with AMD
> 64 bits.
> 
> My problem is that I can read the pen drive ok, but when I try to copy something
> big (like an avi) to the pen the write operation always fails. I've follow this
> to the dmesg entries in the kernel.log. This is an excerpt:

...

> [  638.112323] usb-storage: Command WRITE_10 (10 bytes)
> [  638.112326] usb-storage:  2a 00 00 24 32 a6 00 00 f0 00
> [  638.112341] usb-storage: Bulk Command S 0x43425355 T 0x262 L 122880 F 0 Trg 0
> LUN 0 CL 10
> [  638.112346] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
> [  638.112480] usb-storage: Status code 0; transferred 31/31
> [  638.112484] usb-storage: -- transfer complete
> [  638.112488] usb-storage: Bulk command transfer result=0
> [  638.112492] usb-storage: usb_stor_bulk_transfer_sglist: xfer 122880 bytes, 17
> entries
> [  638.126146] usb-storage: Status code -32; transferred 84992/122880
> [  638.126150] usb-storage: clearing endpoint halt for pipe 0xc0010200
> [  638.126156] usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000
> index=02 len=0
> [  641.120038] usb-storage: Timeout -- cancelling URB
> [  641.120140] usb-storage: usb_stor_clear_halt: result = -2
> [  641.120147] usb-storage: Bulk data transfer result 0x4
> [  641.120152] usb-storage: -- transport indicates error, resetting
> [  641.120160] usb-storage: usb_stor_pre_reset
> 
> And then the device is missing, but the write led on the pen drive is
> still blinking.

> Is it a known bug? Can I help with more info? I've the complete dmesg
> file (1.2MB) Any help is welcome!!

It's a bug in the device, not a bug in the system software.  It just
choked during an ordinary WRITE data transfer.  Obviously there's
nothing we can do to fix the device.

You might be able to work around the problem.  You can try loading 
usb-storage with a quirks parameter to reduce the amount of data 
transferred in a single command:

	modprobe usb-storage quirks=951:1603:m

That will cause each command to transfer no more than 32 KB, instead of 
the default maximum of 120 KB.

Alan Stern

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux