Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2000 19:51:33 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.ORG>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        questions@FreeBSD.ORG, Shawn Ramsey <shawn@megadeth.org>
Subject:   Re: reinstalling boot blocks...
Message-ID:  <200006180251.TAA04361@john.baldwin.cx>
In-Reply-To: <20000618041447.A631@hades.hell.gr>

next in thread | previous in thread | raw e-mail | index | archive | help

On 18-Jun-00 Giorgos Keramidas wrote:
> On Fri, Jun 16, 2000 at 05:41:16PM -0700, Shawn Ramsey wrote:
>> What is the easiest/safest way to re install the boot blocks on a 
>> 3.4-RELEASE machine? Can I just use the boot disks, and write out the 
>> changes in fdisk? (being sure the newfs flag is N! ) ?
> 
> What you want is boot0cfg.  Just run on the disks you want to install
> the boot loader the command 'boot0cfg -B' and according to the manpage
> of boot0cfg the MBR will be replaced by a new boot block, without
> affecting the existing slice table.

That just updates the MBR.  FreeBSD's actual boot blocks are boot1,
boot2, and the loader.  The loader is loaded from /boot/loader, so
a simple make world updates it.  The other boot blocks (boot1 and boot2)
have to be installed using 'disklabel -B'.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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