On Sat, 24 Nov 2007, Stefan Richter wrote:

> I haven't done this yet, but someone reminded me to switch
> CONFIG_SCSI_MULTI_LUN on.  Now the following happens under 2.6.22 as
> well as 2.6.24-rc3:
> 
> The built-in 4GB flash is recognized as LUN 0 and gets an sd device, but
> no valid partition table is found on it.
> 
> An 8GB SDHC card, if inserted into the iAudio D2, is recognized as LUN 1
> and gets an sd device.  Its partition table is recognized and the
> filesystem on the card can be mounted.  A lot of "attempt to access
> beyond end of device" errors are logged though, something which does not
> happen if I read this card in a separate card reader.
> 
> So, CONFIG_SCSI_MULTI_LUN is what I missed when I wrote the initial
> posting.  The partition table problem on the built-in flash and the size
> problem of the extension card happened without that option too.  When I
> had a way older firmware on the iAudio D2, I was able to access the
> built-in flash and mount its 4GB partition though.

Different card readers don't always agree on the total number of
sectors available on a flash card.  Have you compared the values
reported by the kernel for the total number of sectors with the two
different card readers?  Repartitioning the device to use the smaller
number of sectors ought to fix the "beyond end of device" problem.

As for LUN 0 missing a partition table -- you can find out what's in
the partition sector by doing:

        dd if=/dev/sdb count=1 | hexdump -C

Maybe for some reason it just needs to be repartitioned.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to