Re: Restoring freeBSD boot loader



On Fri, Jun 13, 2008 at 06:46:13PM -0400, Sahil Tandon wrote:
Lionel <lionel.flandrin@xxxxxxxxx> wrote:

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.

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.

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.

3.8 in http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/install.html

--
Sahil Tandon <sahil@xxxxxxxxxx>

Indeed, fdisk(8) can be used to do this.

frase

Attachment: pgpk4JWzBnFdK.pgp
Description: PGP signature



Relevant Pages

  • Re: Restoring freeBSD boot loader
    ... to restore the freeBSD bootloader. ... I've tried booting with the install CD and I use the fdisk utility to ... freeBSD bootloader, but I didn't know how to make it actually write the ... install lilo from a live CD but I don't want to install grub from ...
    (freebsd-questions)
  • RE: freebsd on 2nd drive?
    ... I can't let the FreeBSD bootloader install on the first ... can I install the FreeBSD bootloader on the second hard ... I just use the BIOS to change back and forth with the hard drives. ...
    (freebsd-questions)
  • freebsd on 2nd drive?
    ... Let me explain my situation first: ... I can't let the FreeBSD bootloader install on the first ... can I install the FreeBSD bootloader on the second hard ...
    (freebsd-questions)
  • Re: Restoring freeBSD boot loader
    ... to restore the freeBSD bootloader. ... I've tried booting with the install CD and I use the fdisk utility to ... freeBSD bootloader, but I didn't know how to make it actually write the ... It will also save the old MBR to a floppy, hard disk, or USB disk for safety. ...
    (freebsd-questions)
  • Re: freebsd on 2nd drive?
    ... Let me explain my situation first: ... I can't let the FreeBSD bootloader install on the first ... > drive and use something like GAG on a floppy to boot it? ...
    (freebsd-questions)