Re: FreeBSD BOOT

From: Dan Strick (strick_at_covad.net)
Date: 02/07/04

  • Next message: Sidnei Rodrigo Basei: "Re: FreeBSD BOOT"
    Date: Fri, 6 Feb 2004 15:05:04 -0800 (PST)
    To: freebsd-stable@freebsd.org
    
    

    >>
    > Hi... i have the FreeBSD and Windows XP in my computer.... my the
    > windows had removed my FreeBSD boot ...
    > Anyone know how to boot in freebsd and restore the boot sector? No MBR!!!
    >>

    I assume you mean that you first installed FreeBSD in one disk slice
    (i.e. MBR partition) and then installed WinXP in another slice and after
    installing WinXP you discovered that your system always boots WinXP and
    doesn't offer you the option of booting FreeBSD instead. This is because
    the WinXP installation replaced the FreeBSD bootstrap program in the MBR
    sector of the disk drive.

    There is a messy way of configuring XP to give you the option of booting
    FreeBSD but it is easier to just reinstall the standard FreeBSD master
    bootstrap program. If you have (or can make) the live file system CD
    for a recent release of FreeBSD (from the file ...-i386-disc2.iso), boot
    the installation floppy or CD for that release, go into fixit mode using
    the live file system CD, and issue the command

            boot0cfg -B ad0

    where "ad0" is the disk on which you installed both FreeBSD and WinXP.

    If you don't have the live file system CD, instead of going into fixit
    mode you can select the "custom installation" menu option and then select
    the menu option for allocating disk space for FreeBSD (i.e. the option
    for editing MBR partition tables). Select the disk drive on which you
    previously installed FreeBSD and WinXP. Verify that the MBR partition
    table that it fetches from the disk drive is correct and issue the
    undocumented "W" command. Then exit the installation procedure without
    doing an installation and reboot.

    Dan Strick
    strick@covad.net
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Sidnei Rodrigo Basei: "Re: FreeBSD BOOT"

    Relevant Pages

    • Re: dual boot; Linux, FreeBSD
      ... If I want to set up a dual boot of either Linux or FreeBSD, ... All of those you name will work as an MBR. ... bootable slice on each drive, but could make up to 4. ...
      (freebsd-questions)
    • Re: cannot see Windows after installing FreeBSD
      ... > and reinstalling both WIndows XP and FreeBSD. ... > hard drive and not have its boot sector overwrite the ... one or more of the disk drives) and the first sector of ... The installation uses a straight forward MBR ...
      (freebsd-questions)
    • Re: Problems during installing FreeBSD
      ... Red Hat Linux installed with grub boot loader on a x86 hardware. ... I'm not sure what you mean by 'managed to provide one of the partitions for FreeBSD'. ... I ran the entire installation from disk1, which is bootable, and which, for me, was all that my machine required... ...
      (freebsd-questions)
    • Re: Hosed my MBR?
      ... motherboard with two on-board SATA RAID controllers, an Intel MatrixRAID ... The PDC20378 runs two drives in a RAID0 configuration booting FreeBSD ... The problem is, now, when I attempt to boot off the Intel controller, I ... I would think that when I choose to leave the MBR ...
      (freebsd-questions)
    • Re: FreeBSD BOOT
      ... I had installed the WinXP in one disk slace... ... FreeBSD witch the "Boot Manager" option. ... >the WinXP installation replaced the FreeBSD bootstrap program in the MBR ...
      (freebsd-stable)