What to do in order to triple boot?

On my PC I have Arch Linux and Windows 10 LTSC 2019 installed. In some days I am looking to plug in another SSD into my PC. I already have GRUB installed. Do I need to switch to another one (e.g rEFInd) beforehand?
 
GRUB should be good. Assuming your system is UEFI, specify the FreeBSD loader in the ESP (EFI System Partition) in the "menuentry":

Example: In a menu-guided FreeBSD installation, ESP is on partition 1:
Code:
% gpart show -p
=>       40  500118112     ada0  GPT  (1T)
         40     409600   ada0p1  efi  (260M)
         ...

Code:
menuentry "FreeBSD" {
   
    set root=(hd0,gpt1)
    chainloader /efi/freebsd/loader.efi
}
Change "hd0" accordingly to the device number of the FreeBSD disk.
 
If you're on headless setup or if you want to do it remotely you can also take advantage of the BootNext UEFI feature.

On FreeBSD you can run efibootmgr as root and then `efibootmgr -n -b $entry`.

You can get the entry number like this:

Code:
$ sudo efibootmgr
Boot to FW : false
BootCurrent: 0000
Timeout    : 2 seconds
BootOrder  : 0001, 0003, 0002, 0000
 Boot0001* opensuse-secureboot
 Boot0003* NetBSD
 Boot0002* OpenBSD
+Boot0000* FreeBSD

After running it, you can run efibootmgr again and you'll see the above plus this line:

Code:
BootNext : 0003

And then `shutdown -r now`

On Linux, the command is `efibootmgr -n $entry`. On NetBSD, the command is `efi -n $entry`. OpenBSD lacks this command.

Note: $entry can be 0003 or simply 3.
 
Back
Top