On Mon, Dec 31, 2007 at 04:55:21PM -0500, Alan Stern wrote:
> 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.

That will work, but I don't think it's optimal.

Looking at the logs provided, I think this might be one of those devices
that doesn't like reading the last sector if it's part of a multi-sector
request.

Didn't we add a new flag type recently to cope with this condition?

Matt

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

God, root, what is difference?
                                        -- Pitr
User Friendly, 11/11/1999

Attachment: pgpiduyazyuZh.pgp
Description: PGP signature

Reply via email to