Dual booting Linux and FreeBSD on a single drive

ok, im gonna reboot, and im gonna see if i can boot to freebsd or grub wants to reboot the machine so it can detect freebsd.
 
"Found unknown linux distrbution at /dev/sda3"

That actually a good sign, i was also thinking about mounting the freebsd partition but it fails miserably.
 
Ok so GRUB may have detected FreeBSD, but the menu to select what OS to boot does not appear, its boots back to Linux.
 
1660751580628.png

Yes i did
1660751630829.png
 
I think that the EFI file is not the same i have as yours. It probably has a different file name.
 
i could try this:
menuentry "FreeBSD" {
insmod ufs2
search --file --set root --no-floppy /boot/loader.efi
chainloader /boot/loader.efi


Maybe it would work ?
 
Welp, i guess this is going nowhere, i can't configure GRUB. im gonna try to boot to FreeBSD from the BIOS which means spamming the ESC key when booting the computer, or when i wanna boot to FreeBSD
 
It is correct. I give up.:-/
I can suggest to try edit 40_custom as follows (but that is bad idea):
Code:
menuentry "freebsd" {
    insmod part_gpt
    insmod ufs2
    set root='hdX,gptY'
    chainloader /boot/loader_4th.efi
}
where X count from 0, Y count from 1
gptY - where FreeBSD's '/' is placed
 
Back
Top