On Mon, 31 Dec 2007, Bruce Schultz wrote:

> Hi,
> 
> I have a USB SD card reader which has never worked properly and finally got me
> annoyed enough to try to do something about it.  Using a 2.6.22 kernel
> (gentoo), I get the following output in dmesg when I plug it in (with a 128MB
> SD card inserted):
> 
> sd 8:0:0:0: [sdb] 248320 512-byte hardware sectors (127 MB)
> sd 8:0:0:0: [sdb] Write Protect is off
> sd 8:0:0:0: [sdb] Mode Sense: 03 00 00 00
> sd 8:0:0:0: [sdb] Assuming drive cache: write through
> sd 8:0:0:0: [sdb] 248320 512-byte hardware sectors (127 MB)
> sd 8:0:0:0: [sdb] Write Protect is off
> sd 8:0:0:0: [sdb] Mode Sense: 03 00 00 00
> sd 8:0:0:0: [sdb] Assuming drive cache: write through
>  sdb: sdb1
> end_request: I/O error, dev sdb, sector 248313
...
> After a bit of googling, I tried patching unusual_devs.h, which got me far
> enough to be able to mount /dev/sdb1 and I seem to be able to read/write to
> the SD card, but with errors in the dmesg output still.  So I guess I'm on the
> right track, but maybe there's something else I'm missing?  Any pointers out
> there?

You need to do a low-level format of the card.  Delete and then 
recreate the first partition.  And then of course you'll have to 
recreate the VFAT filesystem on it.

Alan Stern

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

Reply via email to