What is the difference between BIOS and UEFI booting?
IntermediateConceptBoot Process & Kernel
Answer
In one line: BIOS and UEFI are both firmware that start the boot process. BIOS is the old way; UEFI is the modern replacement used on almost all new machines and cloud servers.
The difference, simply explained:
| BIOS (legacy) | UEFI (modern) | |
|---|---|---|
| How it finds the bootloader | Reads the first 512 bytes of the disk (the MBR) | Reads a small FAT32 partition called the EFI System Partition, usually at /boot/efi |
| Disk size it supports | Up to 2 TB (MBR partition table) | Much larger disks (GPT partition table) |
| Security | No built-in protection | Secure Boot — only runs signed bootloaders and kernels |
| Speed and features | Basic | Faster, with a boot manager and more options |
Example — check which one your machine uses:
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "BIOS"
Why it matters for DevOps: when you build machine images (AMIs, VM templates) or troubleshoot a server that won't boot, you need to know whether it boots in UEFI or BIOS mode, because the bootloader setup is different.
More on Boot Process & Kernel
Walk through the Linux boot process from power-on to login prompt.BeginnerWhat does GRUB2 do and where is its configuration?BeginnerWhat is the initramfs and why is it needed?AdvancedHow do you view and change kernel command-line parameters?IntermediateWhat is systemd and why did it replace SysV init?BeginnerWhat are systemd targets, and how do they map to old runlevels?Beginner