Subject: Re: disklabel destroying MBR on NetBSD/i386 3.0
To: None <tech-userlevel@NetBSD.org>
From: David Laight <email@example.com>
Date: 08/14/2006 20:22:58
On Mon, Aug 14, 2006 at 04:34:26PM +0200, Klaus Heinz wrote:
> After "disklabel -er" and the (unknown to me) question
> "Write outside MBR partition?" the first block of the disk is destroyed
> and the disklabel resides in the second disk block instead of the logical
> NetBSD partition E0.
> I assume this is not intended behaviour?
It is what the code was written to do...
More specifically the code that tries to preserve the bootcode manages
(IIRC) to write the start of the partition over the start of the disk.
I think it can also manage to generate the disklabel in 8k of zeros.
The code on 'head' is all different, however the changes rely on
ripping out all the support for writing bootcode from disklabel(8),
and I'm not sure the relevant other changes are in 3.x
David Laight: firstname.lastname@example.org