Re: Restoring FreeBSD grub loader





--- "Ivan \"Rambius\" Ivanov"
<rambiusparkisanius@xxxxxxxxx> wrote:

Hello,

I installed FreeBSD 6.1 on one machine with grub
boot loader. In the
beginning there was only one entry in grub - namely
FreeBSD. Later, I
had to install Windows XP on the machine and of
course, it destroyed
grub and now I cannot boot FreeBSD.

I tried with booting from the FreeBSD installation
disk choosing Fixit
option, but I could not use successfully
grub-install command.

My question is: how can I restore the FreeBSD grub
loader? Could you
please give me any hints or advance. Thank you very
much in advance.

Regards
Ivan

--

I would suggest you make a grub booting floppy disk
then you can escape to command mode once the disk
loades and install grub with

root (hd0,0,a) # or wherever it is
setup (hd0 # again wherever it is

assuming you have already placed the grub bootfiles on
your hard drive and configured menu.lst you should be
all set. I have only encountered one computer this
method failed.

you could alternatively flip the kernel tunable that
allows raw writes to the boot sectors of the disks. I
don't recall what it is but I think the grub docs talk
about it in the man or info pages.

I'm supprised XP messed it up, 2000 seemed to respect
existing bootloaders...


-brian
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: GRUB, MBR and NTLDR confusion
    ... that GRUB can be loaded on to the boot partition instead of the MBR ... What you want is to install it to the MBR of /dev/hda. ...
    (Ubuntu)
  • Re: [SLE] Booting problem
    ... grub will not completly load, It shows Grub on the screen and then Grub ... install dvd,click install,click other,click boot to installed system. ... Loader and make sure you install the boot loader in the Master Boot Record. ...
    (SuSE)
  • Re: Adding FC5 to an XP computer -
    ... Ordinarily, I'd use GRUB to handle booting, too. ... to avoid altering the Windows installation in that situation. ... the installation is now running with Grub and boot on the mbr. ... The fc5 install is on the second drive, ...
    (Fedora)
  • Re: Grub on USB
    ... How can I install grub onto a USB drive so that I can have grub shell at ... Be advised that you may need an initrd to boot from a USB ...
    (comp.os.linux.misc)
  • Re: [SLE] grub refuses to grub
    ... Note before I had Suse 9.0 with Grub and with Suse 9,2 it doesn't work ... > for Windows and 60 gig HD for Linux, a regular CDROM and a CDRW. ... > which distro I try to install and have install Grub, ... > where the actual boot sector is, and I gather, where the actual Grub ...
    (SuSE)