An example: For getting FreeBSD to boot from second hard drive, the the trick is to use UUID in linux´s /etc/grub.d/40_custom file. Examples:
Edit: Typo correctred.
Edit2: Tested UEFI entries, and with UUID only chainloader worked
Code:
menuentry "FreeBSD search works" {
insmod ufs2
insmod part_msdos
insmod search_fs_uuid
search --no-floppy --fs-uuid --set=root xxxxxxxxxx
kfreebsd /boot/loader
}
.. or
menuentry "FreeBSD search works" {
insmod ufs2
insmod search_fs_uuid
search --no-floppy --fs-uuid --set=root xxxxxxxxxx
kfreebsd /boot/loader
}
If using UEFI boot, the entry would be
menuentry 'FreeBSD UEFI UUID chainloader' {
insmod ufs2
insmod part_gpt
insmod search_fs_uuid
search --no-floppy --fs-uuid --set=root xxxxxxxxxx
chainloader /boot/loader.efi
}
Edit: Typo correctred.
Edit2: Tested UEFI entries, and with UUID only chainloader worked
Last edited: