###Do it in this order:
Do it in this order:
Edit your
/etc/grub.d/40_customand add uzsolt's directives. Add the directive at the end of the file. Don't delete anything that is in there.Make sure
40_customis executable. If not thenchmod u+x 40_custom.Now do this to write the changes to
grub.cfg.grub2-install /dev/sda os-prober grub2-mkconfig -o /boot/grub/grub.cfgTada! Reboot now; you should have FreeBSD in your OS list in GRUB menu.
To have access to your UFS partition slice you should do the following:
Edit your kernel configuration to add
UFS filesystemandUFS label.Then
make && make_modulesyour kernel.Install the UFS filesystem software.
Mount your UFS Slice under your Linux:
sudo mkdir /mnt/freebsd && sudo mount -r -t ufs -o ufstype=ufs2 /dev/sda1 /mnt/freebsd