Linux: GRUB Boot FreeBSD

If the automatic “os-prober”-based method fails to find the FreeBSD UFS slice on a MBR partition, it is necessary to setup GRUB manually…

Edit the /etc/grub.d/40_custom and insert:

# Manually add FreeBSD
menuentry "FreeBSD 10.0" {
	insmod ufs2
	set root=(hd1,2)
	chainloader +1

hd1,2 represents the second partition on the second disk. Yes, GRUB is clumsy and its numbering of disks starts from 0 and of partitions starts from 1. The slice identification (a, b, c, etc.) seems to be irrelevant.

Recreate the config file:

grub-mkconfig -o /boot/grub/grub.cfg

and reboot.

This entry was posted in BSD, Linux and tagged , , , . Bookmark the permalink.