Sub topic 3
Boot the installer: UEFI versus BIOS
Assume you can enter a machine's firmware settings, choose a boot device, and use a Linux installer. The installation image and target disk must already be available.
The two boot modes
UEFI is modern firmware that starts programs from a special disk partition. BIOS is the older firmware interface that starts boot code from the beginning of a disk. The firmware mode affects how the installer creates the partition table and bootloader configuration.
| Boot mode | Common partition table | Boot files | Typical use |
|---|---|---|---|
| UEFI | GPT | EFI System Partition (ESP) | Modern physical and virtual machines |
| BIOS | MBR or GPT | Boot code in disk sectors | Older hardware or compatibility cases |
An ESP is a small FAT32 partition, commonly between 256 MiB and 1 GiB. It contains files that UEFI uses to start the operating system. On a BIOS installation, the bootloader usually places its first-stage code in the disk's boot area.
Choose UEFI for a new server unless the hardware or virtualization platform requires BIOS compatibility. UEFI supports GPT disks, larger disks, firmware boot entries, and features such as Secure Boot. BIOS mode can be simpler for old systems, but mixing the modes creates avoidable problems.
Select and verify the mode
Open the firmware boot menu and select the installer entry that explicitly includes UEFI when available. Some systems show two entries for the same USB device. Selecting the plain device name may start it in BIOS mode.
The running installer can reveal its mode:
if [ -d /sys/firmware/efi ]; then
echo "UEFI mode"
else
echo "BIOS mode"
fiOn a UEFI boot, /sys/firmware/efi exists. On a BIOS boot, it does not. Check this before accepting automatic partitioning. If the selected mode is wrong, restart the installer and choose the other firmware entry instead of trying to repair the result later.
How the choice affects installation
In UEFI mode, the installer should create or reuse an ESP and mount it at /boot/efi. The main Linux filesystem can use GPT. A separate /boot partition is usually unnecessary unless your organization has a specific layout.
In BIOS mode, the installer may use an MBR partition table. If it uses GPT, it may need a tiny BIOS boot partition so the bootloader has space for its embedded code. Automatic partitioning normally handles this detail.
A common failure occurs when the installer runs in UEFI mode but the disk has only BIOS-style boot files, or the reverse. The installation may finish successfully, yet the server reports “no boot device.” Confirm the firmware mode and inspect the installer’s bootloader target before proceeding.
Exercise
The installer was booted in BIOS mode, but you want a UEFI installation. What should you do?
Show answer
Restart the machine, choose the installer entry labeled UEFI, verify that /sys/firmware/efi exists, and then install using the UEFI-compatible partition layout.