Dual booting Linux and FreeBSD on a single drive


root@adam-HP-Notebook:/home/adam# cat /boot/grub/grub.cfg | grep freebsd
menuentry "freebsd" {

 
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.
 
and now what do i do ?

update-grub says: "Warning: os-prober will not be executed to detect other bootable partitions."

Is it normal ?
add GRUB_DISABLE_OS_PROBER=false to /etc/default/grub and run ./a.sh again, and then reboot
 
"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.
 
Hmm, i don't know, i guess i could try to mount the freebsd partition, and try to do update-grub
 
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