Solved How to dual boot two FreeBSDs? (SOLVED)

I have an old legacy bios computer which has two hard drives, one GPT partitioned and one msdos-partitioned.

How can I add dual boot when FreeBSD 1 is /dev/ada1p1 and FreeBSD 2 is /dev/ada0s1a?
 
A simpler solution is to leverage boot environments. Besides using them as a safety guard when updating/upgrading, you can also use it to "multi boot" different FreeBSD versions.
 
Use the motherboards device boot menu. Depending on the brand, one of the function keys (i.e. F12) calls the device boot menu with a list of all devices on the system, when pressed immediate after powering the machine on.
 
Maybe the BIOS has a quick selection option for selecting the system/drive during startup. Another method is to install a boot manager on one of the drives, which you set as the first boot drive.
 
Apropos, FreeBSD has a simple boot manager as well (for BIOS based machines): boot0cfg(8)

Here the boot manager is installed, with MBR code replaced:

boot0cfg.png

F1 = /dev/ada0s1a
F5 = /dev/ada1p1
 
The solution was to install different bootcodes to msdos disk and GPT disk into their own systems.

For msdos -disk /dev/ada0

Code:
boot0cfg -B ada0

For GPT -disk /dev/ada1

Code:
gpart bootcode -b /boot/pmbr ada1
 
Back
Top