From owner-freebsd-questions@FreeBSD.ORG Sat Jun 14 00:01:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A07E10656AE for ; Sat, 14 Jun 2008 00:01:14 +0000 (UTC) (envelope-from Fraser@mail.frase.id.au) Received: from mail.frase.id.au (203-219-142-174.static.tpgi.com.au [203.219.142.174]) by mx1.freebsd.org (Postfix) with ESMTP id B74BB8FC0A for ; Sat, 14 Jun 2008 00:01:13 +0000 (UTC) (envelope-from Fraser@mail.frase.id.au) Received: from mail.frase.id.au (localhost [127.0.0.1]) by mail.frase.id.au (8.14.2/8.14.2) with ESMTP id m5E01CP5077862; Sat, 14 Jun 2008 10:01:12 +1000 (EST) (envelope-from Fraser@mail.frase.id.au) Received: (from Fraser@localhost) by mail.frase.id.au (8.14.2/8.14.2/Submit) id m5E01Cjx077861; Sat, 14 Jun 2008 10:01:12 +1000 (EST) (envelope-from Fraser) Date: Sat, 14 Jun 2008 10:01:12 +1000 From: Fraser Tweedale To: freebsd-questions@freebsd.org Message-ID: <20080614000111.GB91339@bacardi> References: <86abhp6l25.fsf@simias.hd.free.fr> <20080613224612.GA2267@shepherd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <20080613224612.GA2267@shepherd> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Lionel Subject: Re: Restoring freeBSD boot loader 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: Sat, 14 Jun 2008 00:01:14 -0000 --vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 13, 2008 at 06:46:13PM -0400, Sahil Tandon wrote: > Lionel wrote: >=20 > > I've had to install Windows XP in dual boot on a freeBSD box, and of > > course it erased the bootloader to replace it with its own. Now I'd like > > to restore the freeBSD bootloader. > >=20 > > I've tried booting with the install CD and I use the fdisk utility to > > mark the fbsd partition bootable and then said I wanted to install the > > freeBSD bootloader, but I didn't know how to make it actually write the > > changes to the disk. > >=20 > > So... is it possible to restore the bootloader this way? Maybe I could > > install lilo from a live CD but I don't want to install grub from > > windows because I'll probably remove it soon, but I think lilo just > > places itself in the boot segment so it should be fine. >=20 > 3.8 in http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/install.html >=20 > --=20 > Sahil Tandon Indeed, fdisk(8) can be used to do this. frase --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhTCkcACgkQPw/2FZbemTU34QCfblM4MPXvyQ+7YCFsKkbgS7do cR4An0f8Fq1iKdwmVwYrm9uWfBqNH1NT =d0L5 -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko--