On 2/24/06, Dmitry Artamonow <mad_soft_at_inbox.ru> wrote:
> On Thu, Feb 23, 2006 at 09:43:45PM -0800, Matt Reimer wrote:
> >
> > Did you try partitioning and formatting the card on your iPAQ, or with
> > the card reader? I wonder if it's the card reader that's messing up.
> > Or are you saying that fdisk is breaking things by assuming 512 byte
> > blocks?
> >
> > Matt
> >
>
> I partitioned and formatted card with card reader on my linux PC. Fdisk
> partitioned it with 512-byte sectors. I think fdisk gets sector size
> from block device. When i insert this card into iPAQ
> and run fdisk here (i booted from CF with help of Stanson's patches), it
> gives me a warning about sector size:
>
> / # fdisk /dev/mmcblk0
> Note: sector size is 1024 (not 512)
>
> Command (m for help):
>
>
> So, i don't know what's messing up - maybe it's MMC code, maybe it's
> faulty reader or even usb-storage code. As i said I tried with two USB
> readers - with both of them fdisk thinks that sector size is 512 (but with
> one of them linux sees only half of card's capacity - that's strange too).
> Here's the facts - what fdisk tells about card's geometry:
>
> Linux PC + cardreader 1 (my):
>
> Disk /dev/sda: 2045 MB, 2045771776 bytes
> 63 heads, 62 sectors/track, 1022 cylinders
> Units = cylinders of 3906 * 512 = 1999872 bytes
>
> Linux PC + cardreader 2 (my friend's):
>
> Disk /dev/sda: 1022 MB, 1022885888 bytes
> 63 heads, 62 sectors/track, 511 cylinders
> Units = cylinders of 3906 * 512 = 1999872 bytes
>
> Linux iPAQ without dirty hack:
>
> Disk /dev/mmcblk0: 2045 MB, 2045771776 bytes
> 63 heads, 62 sectors/track, 511 cylinders
> Units = cylinders of 3906 * 1024 = 3999744 bytes
>
>
> I didn't try with any other readers and Windows PCs, since i don't have
> access to them. By the way, Windows CE on iPAQ doesn't detect this card at
> all (that's funny, isn't it?).
Maybe your card reader is broken for large block sizes too. Can you
try using the MMC v4 patch but not the 9 bit/512-byte block patch, and
do the partitioning on your iPAQ instead of using the card reader?
Maybe linux is right and the card reader is wrong. The card reader
won't hit the drivers/mmc code path, so even though you may have linux
on both your iPAQ and your desktop, the behavior could be different.
Matt
Received on Fri Feb 24 2006 - 17:01:44 EST
This archive was generated by hypermail 2.2.0 : Fri Feb 24 2006 - 17:02:44 EST