Lorem ipsum dolor sit amet, consectetur adipiscing elit lobortis arcu enim urna adipiscing praesent velit viverra sit semper lorem eu cursus vel hendrerit elementum morbi curabitur etiam nibh justo, lorem aliquet donec sed sit mi dignissim at ante massa mattis.
Vitae congue eu consequat ac felis placerat vestibulum lectus mauris ultrices cursus sit amet dictum sit amet justo donec enim diam porttitor lacus luctus accumsan tortor posuere praesent tristique magna sit amet purus gravida quis blandit turpis.
At risus viverra adipiscing at in tellus integer feugiat nisl pretium fusce id velit ut tortor sagittis orci a scelerisque purus semper eget at lectus urna duis convallis. porta nibh venenatis cras sed felis eget neque laoreet suspendisse interdum consectetur libero id faucibus nisl donec pretium vulputate sapien nec sagittis aliquam nunc lobortis mattis aliquam faucibus purus in.
Nisi quis eleifend quam adipiscing vitae aliquet bibendum enim facilisis gravida neque. Velit euismod in pellentesque massa placerat volutpat lacus laoreet non curabitur gravida odio aenean sed adipiscing diam donec adipiscing tristique risus. amet est placerat in egestas erat imperdiet sed euismod nisi.
“Nisi quis eleifend quam adipiscing vitae aliquet bibendum enim facilisis gravida neque velit euismod in pellentesque massa placerat”
Eget lorem dolor sed viverra ipsum nunc aliquet bibendum felis donec et odio pellentesque diam volutpat commodo sed egestas aliquam sem fringilla ut morbi tincidunt augue interdum velit euismod eu tincidunt tortor aliquam nulla facilisi aenean sed adipiscing diam donec adipiscing ut lectus arcu bibendum at varius vel pharetra nibh venenatis cras sed felis eget dolor cosnectur drolo.
There are several reasons why one might choose to set up their computer for dual booting with Unified Extensible Firmware Interface (UEFI) and Basic Input Output System (BIOS). Perhaps you're managing a fleet of computers that have different boot methods, or maybe you have a golden image that you want to deploy in both BIOS and UEFI scenarios. Whatever the case may be, this post is aimed at providing a thorough guide on how to dual boot UEFI and BIOS on Linux.
Before we delve into the process, let's understand what UEFI and BIOS are:
Despite UEFI being more advanced and feature-rich, many computers and servers still use the older BIOS system. Hence, the need for a dual booting setup.
For the dual booting setup, you'll need two types of partitions: a BIOS bootable partition and an EFI System Partition (ESP).
Here are examples of the partition layouts:
Below is an example of how the partitions might look:
In this example, /dev/vda1 is the BIOS, and /dev/vda2 is the ESP/EFI bootable partition.
Now that we have the partitions set up, we can proceed to the installation of the GRUB bootloader.
This command installs GRUB to the Master Boot Record (MBR) of the drive.
And then install GRUB for UEFI:
sudo grub-install --target=x86_64-efi /dev/sda
Now, GRUB has been installed for both BIOS and UEFI.
sudo grub-mkconfig -o /boot/grub/grub.cfg
With this, your Linux system is now ready to boot in either UEFI or BIOS mode.
Dual booting with UEFI and BIOS on Linux can be a versatile solution for environments with a mix of modern and older systems. It might require a bit of initial setup, but the flexibility it provides can be worth the effort,