LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-27-2006, 11:55 AM   #1
rhauff
LQ Newbie
 
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25

Rep: Reputation: 15
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!
 
Old 06-28-2006, 05:02 AM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 06-28-2006, 09:20 AM   #3
rhauff
LQ Newbie
 
Registered: Nov 2003
Location: Minnesota, USA
Distribution: VectorLinux, Xubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
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.
 
Old 06-28-2006, 01:30 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB card reader/writer troubles triona Linux - Hardware 8 12-21-2004 05:46 AM
Writing files to MultiMedia Card (MMC) using USB reader/writer sebyte Linux - General 6 12-02-2004 05:23 PM
External USB CD/DVD writer is detected, but can't write banerji Linux - Hardware 3 11-21-2004 07:02 PM
XcdRoast + external DVD writer Sony DRU-700A on USB - write problem Ambrosia Linux - Hardware 2 09-01-2004 12:53 AM
PQI USB flash card (SM) reader/writer freezes Knoppix linux dead! stukennedyuk Linux - Hardware 4 03-19-2004 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration