I&#39;m seeing a consistent behavior I can&#39;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>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp; System<br>/dev/sdd1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 710644&nbsp;&nbsp; 83&nbsp; Linux<br>/dev/sdd2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 350&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 710675&nbsp;&nbsp; 83&nbsp; Linux<br>
/dev/sdd3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 351&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 525&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 710675&nbsp;&nbsp; 83&nbsp; Linux<br>/dev/sdd4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 526&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1019&nbsp;&nbsp;&nbsp;&nbsp; 2006134&nbsp;&nbsp;&nbsp; 5&nbsp; Extended<br>/dev/sdd5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 526&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 772&nbsp;&nbsp;&nbsp;&nbsp; 1003036&nbsp;&nbsp; 83&nbsp; 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>&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp; System<br>
/dev/sdd1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 710644&nbsp;&nbsp; 83&nbsp; Linux<br>/dev/sdd2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 350&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 710675&nbsp;&nbsp; 83&nbsp; Linux<br>/dev/sdd3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 351&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 525&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 710675&nbsp;&nbsp; 83&nbsp; Linux<br>/dev/sdd4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 526&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1019&nbsp;&nbsp;&nbsp;&nbsp; 2006134&nbsp;&nbsp;&nbsp; 5&nbsp; Extended<br>
/dev/sdd5&nbsp;&nbsp; ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 529332&nbsp;&nbsp;&nbsp;&nbsp; 1058139&nbsp; 2147483647+&nbsp; ff&nbsp; BBT<br><br>=== End paraphrased transcript ===<br><br>Any ideas what could be happening to the partition table?<br>-- <br>Tim Lesher &lt;<a href="mailto:tlesher@gmail.com">tlesher@gmail.com</a>&gt;