From owner-freebsd-questions@FreeBSD.ORG Wed Jul 6 16:33:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30F2016A41C for ; Wed, 6 Jul 2005 16:33:24 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD64D43D49 for ; Wed, 6 Jul 2005 16:33:22 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out5.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 6 Jul 2005 17:34:04 +0100 Message-ID: <42CC07D1.7040706@dial.pipex.com> Date: Wed, 06 Jul 2005 17:33:21 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: Bob Willcox References: <20050706152750.GA85937@luke.immure.com> <20050706153223.GA18171@beatrix.daedalusnetworks.priv> In-Reply-To: <20050706153223.GA18171@beatrix.daedalusnetworks.priv> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Jul 2005 16:34:04.0882 (UTC) FILETIME=[8616BB20:01C58248] Cc: Giorgos Keramidas , freebsd-questions@freebsd.org Subject: Re: How do I reinstall the FreeBSD bootmanager? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 16:33:24 -0000 Giorgos Keramidas wrote: >On 2005-07-06 10:27, Bob Willcox wrote: > > >>I need to reinstall the FreeBSD bootmanager on one of my systems and >>was hoping someone can point me in the right direction on doing this. >>I tried running /sbin/sysinstall but decided that I wasn't confident >>enough of what I was doing to risk trashing my install. >> >> > >Its easy. Just run boot0cfg with the right options :-) > > # boot0cfg -B -v /dev/ad0 > > Depending on the disk and the bootable partitions you might also want "-o packet" packet Use the disk packet (BIOS INT 0x13 extensions) interface, as opposed to the legacy (CHS) interface, when doing disk I/O. This allows booting above cylinder 1023, but requires specific BIOS support. The default is `nopacket'. I believe sysinstall may do this (whether always, or just under specific conditions, I cannot say, but when I used boot0cfg without -o packet, I couldn't boot partitions which I could boot after a sysinstall). You can also use sysinstall (as you suggested). I posted instructions a few weeks back so a search should turn them up, if you need them. --Alex