XP, Ubuntu, FreeBSD triple boot problem
I have XP and Ubuntu installed fine and I use Grub. I installed Free BSD on its own 150gig partition, install went fine but when I rebooted my comp it booted straight to FreeBSD skipped Grub and all... ideas?
-T |
You need to rerun grub to get the menu back as the FreeBSD installer installed it's own boot information in the MBR overwriting grub stuff. Boot into a live session with the Ubuntu CD and get to a prompt. Type: sudo fdisk -l to get a list of partitions.
EXAMPLE (assuming you only have one drive): If the Ubuntu / or /boot partition is /dev/sda2, run these four commands to reinstall grub in the MBR: Code:
sudo grub This is no guarantee that the BSD partition will be in the menu, but this should get your XP and Ubuntu back for now. |
Just to add to what he said, as an explanation, sda1 is 0 for grub and sda2 is 1 for grub, thats why he types hd0,1
root is the command to set the root partition for grub and asks it to mount it to read. I really wish you take the time to read this: http://www.troubleshooters.com/linux/grub/grub.htm its worth..... |
While you are fiddling with the boot loaders...
I use FreBSD 6.0 and its documentation explicitly states that one should use the FreeBSD boot loader and nothing else (because the interface (?) is prone to change or some such). So I installed the FreeBSD boot loader into /boot and chainload it from GRUB. Never had any problems with that. But I don't know about the latest version of FreeBSD... |
Alright. I successfully installed freeBSD without messing up my xp/ubuntu grub configuration. My next step which I need help with is editing my grublist file to recognize freebsd. One thing tho, I used freeBSD's file structure.. does that matter?
heres how my partitions are set up xp: sda1 ntfs ubuntu: / sda2 ext3 sda3 extended /home sda5 ext3 logical swap sda6 freebsd: sda4 "unknown" flag=boot |
Okay, it was simply too long ago, I'm not really sure that the boot loader is in /boot or in the beginning of the slice. Here is my stanza from GRUB's menu.lst:
Code:
... |
Assuming you managed to put the BSD bootloader in the boot record of sda4 (the logical place for it), then you need to invoke it from GRUB using the (GRUB) chainloader command:
Code:
title FreeBSD at sda4 |
ok, so during the freebsd install process it asks you if you want to install 1) the freebsd boot manager 2) a standard boot manager or 3) no boot manager (leave the MBR alone). I installed using option #3. I already have XP and Ubuntu on their own partitions and am using grub located on the linux partition. Did I select the correct option (to not alter the MBR)? I have
Code:
title FreeBSD thanks T |
Quote:
Don't think the entry you have for BSD will work in Grub menu.lst. Try: title FreeBSD root (hd0,3) chainloader +1 |
All times are GMT -5. The time now is 05:04 PM. |