How do I add PC BSD / FreeBSD to Grub 2 boot loader?
this is what I have in /etc/grub.d/40_custom
. Works for me :) Just remember to subsitude hd0,3
with your correct entry
menuentry 'FreeBSD 8.0 64bit' --class os {
set root='(hd0,3)'
chainloader +1
}
Related videos on Youtube
postfuturist
Wrote AI for Godzilla:Unleashed for the Wii. I worked in the visual effects department of the Coraline project at Laika. Professionally, I've used C++, C#, Delphi, Java, Python, and PHP. Currently I am doing mostly web development with PHP.
Updated on September 17, 2022Comments
-
postfuturist over 1 year
I have Ubuntu 10.04 installed as my primary operating system, and I installed PC BSD in a different partition:
/dev/sda4
without installing it's boot loader. I figured out that I need to edit/etc/grub.d/40_custom
to add an entry for PC-BSD. So far, nothing seems to work, though.EDIT: this sort of works, but doesn't fully boot the OS, it then asks me for the MOUNTROOT partition.
menuentry "PC-BSD 8.1" { insmod ufs2 set root=(hd0,4) kfreebsd /boot/kernel/kernel }
The selected answer below is correct. If you are dual-booting with Linux I suggest NOT installing the PC-BSD bootloader as the documentation suggests, unless you enjoy pain.
-
nWorx almost 14 yearsI think that for this to work you need to have the PC-BSD boot loader installed into the PC-BSD partition boot blocks. I sounds like postfuturist does not have the PC-BSD boot loader installed anywhere. If the PC-BSD boot loader can live in the PC-BSD partition boot blocks installing it there will probably get postfuturist up and running.
-
postfuturist almost 14 yearsIn the graphical installer there is a button at the bottom of the disk selection screen titled "Install PC-BSD boot loader": wiki.pcbsd.org/index.php/… . Does this just install the boot loader on the partition, or the MBR of the disk?
-
phunehehe almost 14 years@postfuturist: I don't know, but you can try installing it and restore
grub
if it is installed on the MBR. Here is the guide for restoring grub wiki.ubuntu.com/Grub2#Recover%20Grub%202%20via%20LiveCD