Booting FreeBSD with GRUB2 on MBR

DO:

https://wiki.bsdforen.de/howto:grub2-anleitung

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

{

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

}

DO NOT:

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.

UPDATE:

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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s