Re: [BUG] MMC/SD: SDHC card capacity not correct

From: yi li
Date: Sun Jan 11 2009 - 23:59:25 EST


On Mon, Jan 12, 2009 at 4:48 AM, Nifty niftylinkern Mitch
<niftylinkern@xxxxxxxxxxxx> wrote:
>
> Check the partition map. I see one partition smaller than the SD card.
> Compare /dev/mmcblk0 and /dev/mmcblk0p1.
> If this is the answer post a follow up to the kernel list that it was solved.
>

Thanks for the response, but what do you mean?
There is only one partition in the partition table, i.e.,
/dev/mmcblk0p1, isn't it?

fdisk /dev/mmcblk0

Command (m for help): p

Disk /dev/mmcblk0: 8068 MB, 8068268032 bytes
249 heads, 62 sectors/track, 1020 cylinders
Units = cylinders of 15438 * 512 = 7904256 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 1020 7873349 83 Linux

Command (m for help): x
Expert command (m for help): p
Disk /dev/mmcblk0: 249 heads, 62 sectors, 1020 cylinders

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 248 62 1019 62 15746698 83
2 00 0 0 0 0 0 0 0 0 00
3 00 0 0 0 0 0 0 0 0 00
4 00 0 0 0 0 0 0 0 0 00

-Yi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/