Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 1996 09:48:32 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Subject:   Re: 2.2-ALPHA install failure
Message-ID:  <199611240848.JAA09794@uriah.heep.sax.de>
In-Reply-To: <199611232328.KAA07967@godzilla.zeta.org.au> from Bruce Evans at "Nov 24, 96 10:28:02 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As Bruce Evans wrote:

>   Disklabel now does extra work to
> preserve the existing partition table if there is a nonzero entry in it.

BUGS
...
     For the i386 architecture, the primary bootstrap sector contains an em-
     bedded fdisk table.  Disklabel takes care to not clobber it when in-
     stalling a bootstrap only (-B), or when editing an existing label (-e),
     but it unconditionally writes the primary bootstrap program onto the disk
     for -w or -R, thus replacing the fdisk table by the dummy one in the
     bootstrap program.  This is only of concern if the disk is fully dedicat-
     ed, so that the BSD disklabel starts at absolute block 0 on the disk.


Hence,

	disklabel sd0 > /tmp/protofile
	disklabel -B -R sd0 /tmp/protofile

should ``properly'' clobber the fdisk table.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611240848.JAA09794>