I'm seeing a consistent behavior I can't explain when trying to partition a 4GB SD card using either fdisk (version 2.13.1) or parted (1.7.1) (using Ubuntu 8.04 amd64).<br><br>What I want is three (primary) partitions of ~725MB each; the remainder is an extended partition with a single 1GB logical partition. fdisk and parted each appear to do the right thing, but when I later try to make filesystems on the partitions, the partition table is trash--fdisk and parted each says the disklabel is corrupt.<br>
<br>===== Paraphrased transcript =====<br>So, fdisk on a clean msdos-style disklabel:<br><br>Disk /dev/sdd: 4241 MB, 4241489920 bytes<br>131 heads, 62 sectors/track, 1019 cylinders<br>Units = cylinders of 8122 * 512 = 4158464 bytes<br>
Disk identifier: 0xbe7cee25<br><br>[n]ew, [p]rimary, number [1], first cylinder=[1], size=[+725M].<br clear="all">[n]ew, [p]rimary, number [2], first cylinder=[176], size=[+725M].<br clear="all">[n]ew, [p]rimary, number [3], first cylinder=[351], size=[+725M].<br clear="all">
[n]ew, [e]xtended, first cylinder=[526], last cylinder=[1019]<br clear="all">
[n]ew, first cylinder=[526], size=[+1024M]<br><br>All done. [p] shows a happy partition table:<br><br>Disk /dev/sdd: 4241 MB, 4241489920 bytes<br>131 heads, 62 sectors/track, 1019 cylinders<br>Units = cylinders of 8122 * 512 = 4158464 bytes<br>
Disk identifier: 0xbe7cee25<br><br> Device Boot Start End Blocks Id System<br>/dev/sdd1 1 175 710644 83 Linux<br>/dev/sdd2 176 350 710675 83 Linux<br>
/dev/sdd3 351 525 710675 83 Linux<br>/dev/sdd4 526 1019 2006134 5 Extended<br>/dev/sdd5 526 772 1003036 83 Linux<br><br>[w]rite, then run fdisk again:<br>
<br>Warning: ignoring extra data in partition table 5<br>Warning: ignoring extra data in partition table 5<br>Warning: ignoring extra data in partition table 5<br>Warning: invalid flag 0xffff of partition table 5 will be corrected by w(rite)<br>
<br>Command (m for help): p<br><br>Disk /dev/sdd: 4241 MB, 4241489920 bytes<br>131 heads, 62 sectors/track, 1019 cylinders<br>Units = cylinders of 8122 * 512 = 4158464 bytes<br>Disk identifier: 0xbe7cee25<br><br> Device Boot Start End Blocks Id System<br>
/dev/sdd1 1 175 710644 83 Linux<br>/dev/sdd2 176 350 710675 83 Linux<br>/dev/sdd3 351 525 710675 83 Linux<br>/dev/sdd4 526 1019 2006134 5 Extended<br>
/dev/sdd5 ? 529332 1058139 2147483647+ ff BBT<br><br>=== End paraphrased transcript ===<br><br>Any ideas what could be happening to the partition table?<br>-- <br>Tim Lesher <<a href="mailto:tlesher@gmail.com">tlesher@gmail.com</a>>