Today I have installed two more OS in my PC based on debian10,win10(/dev/sda2) + FreeBSD (/dev/sdb2).
I want to write all win10 + FreeBSD boot loader into grub.cfg.
All the os can be detected.
Check if all of them are written into grub.cfg.
Win10 is already written into grub.cfg.
Why FreeBSD can be detected but can't be written into grub.cfg?
Reboot my pc,it shows as below:

How can i add FreeBSD into the grub.cfg ?
I want to write all win10 + FreeBSD boot loader into grub.cfg.
Code:
debian@debian:~$ sudo os-prober
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sdb2:FreeBSD 13.0-RELEASE:FreeBSD:linux
All the os can be detected.
Code:
debian@debian:~$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.19.0-17-amd64
Found initrd image: /boot/initrd.img-4.19.0-17-amd64
Found linux image: /boot/vmlinuz-4.19.0-16-amd64
Found initrd image: /boot/initrd.img-4.19.0-16-amd64
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Found FreeBSD 13.0-RELEASE on /dev/sdb2
Adding boot menu entry for EFI firmware configuration
done
Check if all of them are written into grub.cfg.
Code:
debian@debian:~$ cat /boot/grub/grub.cfg |grep -i window
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-4A44-FBE5' {
Win10 is already written into grub.cfg.
Code:
debian@debian:~$ cat /boot/grub/grub.cfg |grep -i bsd
debian@debian:~$ cat /boot/grub/grub.cfg |grep -i FreeBSD
Why FreeBSD can be detected but can't be written into grub.cfg?
Reboot my pc,it shows as below:

How can i add FreeBSD into the grub.cfg ?
Code:
debian@debian:~$ sudo fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000VX000
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: BF20422A-7E3A-4CA2-B249-61BB4A5D42B7
Device Start End Sectors Size Type
/dev/sda1 2048 923647 921600 450M Windows recovery environment
/dev/sda2 923648 1128447 204800 100M EFI System
/dev/sda3 1128448 1161215 32768 16M Microsoft reserved
/dev/sda4 1161216 314069245 312908030 149.2G Microsoft basic data
/dev/sda5 314071040 315117567 1046528 511M Windows recovery environment
/dev/sda6 315119616 346370047 31250432 14.9G Linux swap
/dev/sda7 346370048 1953523711 1607153664 766.4G Linux filesystem
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500DM002-1SB10
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4635826C-E544-11EB-AD01-48F31700362D
Device Start End Sectors Size Type
/dev/sdb1 40 532519 532480 260M EFI System
/dev/sdb2 532520 968884255 968351736 461.8G FreeBSD UFS
/dev/sdb3 968884256 976773127 7888872 3.8G FreeBSD swap
Last edited by a moderator: