Write to SD card on USB writer aborts after 2-3 Mb
I'm running Xandros 3.0, kernel 2.6.11, a Lexar MMC/SD reader (USB 1.1) plugged into a USB 2.0 port. 1GB card.
I'm trying to write a 6MB file, which aborts after 2-3 MB with the following on dmesg: usb 2-2: new full speed USB device using uhci_hcd and address 7 scsi6 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 7 usb-storage: waiting for device to settle before scanning Vendor: General Model: Flash Disk Drive Rev: 2.05 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdc: 1999872 512-byte hdwr sectors (1024 MB) sdc: Write Protect is off sdc: Mode Sense: 37 00 00 08 sdc: assuming drive cache: write through SCSI device sdc: 1999872 512-byte hdwr sectors (1024 MB) sdc: Write Protect is off sdc: Mode Sense: 37 00 00 08 sdc: assuming drive cache: write through sdc: sdc1 < sdc5 > Attached scsi removable disk sdc at scsi6, channel 0, id 0, lun 0 Attached scsi generic sg2 at scsi6, channel 0, id 0, lun 0, type 0 usb-storage: device scan complete Device sdc not ready. end_request: I/O error, dev sdc, sector 1939507 Buffer I/O error on device sdc5, logical block 1939505 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939506 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939507 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939508 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939509 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939510 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939511 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939512 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939513 lost page write due to I/O error on sdc5 Buffer I/O error on device sdc5, logical block 1939514 lost page write due to I/O error on sdc5 It seems to crash at a different point every time. Any ideas? Thanks! |
Depending on the quality of the flash card. The amount of writes ranges from 100000 to 1000000. If you use FAT as the filesystem, it gets close to these numbers over time because FAT writes multiple times per file. Try running badblocks.
|
Thanks for the reply Electro,
The card is new, and writes/reads fine in M$ Windows, or through the PocketPC I use it in. So I think the card is fine, could it be a problem that the Lexmark writer is USB 1.1 plugged into a 2.0 port? It seems to be detected properly however, usbview shows it as a 1.1 device. |
USB version 2.0 is backwards compatible to version 1.1. What makes a USB version 1.1 or USB version 2 is done by hardware. Windows is different than Linux. Saying that it works in Windows is irrelevant. Usually, card readers that works in Linux are Mac OS X compatible.
I suggest upgrading the kernel to 2.6.13 or 2.6.16. Also you try mount it it as async or sync. |
All times are GMT -5. The time now is 09:54 AM. |