Booting FreeBSD with GRUB2 on MBR


menuentry “FreeBSD 9.0 (1)” –class freebsd –class bsd –class os


echo Chainloading slice hd0,2 … chainloader (hd0,2)+1



Two other possibilities from this post. Third one eliminates boot1, boot2 and loader stage leaving the job to grub2. Stuff like loader.conf will be entirely ignored… Mountroot will require manual ufs:/dev/da0xxx entry.


This procedure does not work for another PC, what works is:

menuentry "FreeBSD" {
insmod ufs2
insmod part_gpt
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 574744019d04da3b
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada0s1a
set kFreeBSD.vfs.root.mountfrom.options=rw

To find out fs_uuid under linux (debianoid): sudo grub-probe -t fs_uuid -d /dev/sda1

This GRUB2 crap is not funny anymore!