Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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
}
share|improve this answer
1  
I 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. –  rschuler Aug 20 '10 at 14:40
    
yes rschuler, thanks for pointing that out –  phunehehe Aug 21 '10 at 15:38
    
In 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? –  postfuturist Aug 21 '10 at 22:02
    
@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 –  phunehehe Aug 22 '10 at 16:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.