From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3b6b534b900a9865da8e66a37584fba4@swtch.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Installing and partitioning for plan9 From: "Russ Cox" Date: Thu, 4 May 2006 23:00:33 -0500 In-Reply-To: <445A84BA.7040805@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 4cf811c0-ead1-11e9-9d60-3106f5b1d025 > Is that the expected behaviour of plan9 fdisk? Not quite the expected behavior, but it's certainly believable. Fdisk assumes that it can pick up the partition table into its internal representation and then rewrite it from that internal representation without breaking anything. It never occurred to me that partitions might not be listed in order (in prep, which fdisk is based on, partition order is irrelevant and therefore always sorted!). I'm also not too surprised about changing the type of extended partition. That shouldn't matter, of course. Changing one of the partition sizes *is* surprising, since I tried very hard not to do that. PC disk partitioning is a giant mess. I've given up. If you think you can fix the bugs without introducing other problems, the source is in /sys/src/cmd/disk/prep/fdisk.c and I'd gladly accept a patch (see patch(1)). Thanks for the report. Russ