From: Don Q. de la M. <qu...@du...> - 2011-10-06 05:24:49
|
On Tue, Oct 4, 2011 at 7:28 PM, Ash Charles <ash...@gm...> wrote: > Hmm---I also see sfdisk allocating any leftover bits to a third > partition. I can't figure out how to prevent this behaviour from the > sfdisk command line. In a script, I get the correct behaviour if I > just specify two partitions. Any one have an idea? I'm pretty sure Master Boot Record partition tables always have a total of four primary and extended partitions. That's because there is a fixed-sized array in the boot sector that is four slots long. I think you could remove the unwanted sector by zeroing out the contents of the third partition slot. It might not be hard to patch the sfdisk source to do that, or you could do it with a hex editor if you look up the byte offset of the partition table in the MBR. -- Don Quixote de la Mancha Dulcinea Technologies Corporation Software of Elegance and Beauty http://www.dulcineatech.com qu...@du... |