The Short Answer
Almost every server built in recent years boots with UEFI, and many can still emulate the legacy BIOS method for older systems. Once Linux is running, the difference is invisible. It matters when you partition a boot disk, repair GRUB, or move a system to new hardware, because the boot loader is installed differently in each case.
How Legacy BIOS Boots
The BIOS tests the hardware, then reads the first 512-byte sector of the boot disk, the master boot record (MBR). That sector holds a very small program and the partition table. The program is too small to do much, so GRUB keeps a larger part of itself in the gap after the MBR, or in a small partition on a GPT disk, and loads the rest from /boot.
How UEFI Boots
UEFI firmware understands partitions and the FAT file system. It looks for the EFI system partition (ESP), a small FAT32 partition, and runs a boot loader file stored there. The list of boot entries lives in the firmware's own memory (NVRAM), so several systems or loaders can be registered side by side. On Debian, Ubuntu, AlmaLinux, and Rocky Linux the ESP is mounted at /boot/efi.
Side by Side
| Legacy BIOS | UEFI | |
|---|---|---|
| Usual partition table | MBR | GPT |
| Largest boot disk | 2 TiB with MBR | Far beyond that |
| Partitions | 4 primary | Usually 128 |
| Boot code lives in | First disk sector | A file on the ESP |
| Signature checks | No | Secure Boot |
The 2 TiB limit comes from MBR storing sector addresses in 32 bits: with 512-byte sectors, it cannot address more. GPT, described in how to partition a disk in Linux, uses 64-bit addresses and keeps a backup copy of its table at the end of the disk.
Secure Boot
With Secure Boot on, UEFI runs only boot loaders signed with a key it trusts. Major distributions ship a small signed loader called shim, which then checks GRUB and the kernel. Kernel modules you build yourself, such as some DKMS drivers, must then be signed too, or the kernel refuses to load them. Check the state:
mokutil --sb-stateCheck How Your Server Booted
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOSThe directory /sys/firmware/efi exists only when the running system was started by UEFI. On a UEFI system, list the firmware's boot entries with efibootmgr (install the package of the same name if it is missing):
sudo efibootmgr -vTo see the partition table type of a disk, run sudo fdisk -l /dev/sda and read the Disklabel type line: dos means MBR, gpt means GPT. Use lsblk to find your disk name first.
What It Changes for GRUB Repair
- Legacy BIOS: GRUB is written to the disk itself, for example
sudo grub-install /dev/sdaon Debian and Ubuntu orsudo grub2-install /dev/sdaon AlmaLinux and Rocky Linux. - UEFI on Debian and Ubuntu: the ESP must be mounted at
/boot/efibeforegrub-installruns, and on x86_64 the GRUB package is grub-efi-amd64rather thangrub-pc(withshim-signedandgrub-efi-amd64-signedfor Secure Boot). - UEFI on AlmaLinux and Rocky Linux: the signed boot files come from packages, so
sudo dnf reinstall 'grub2-efi-*' 'shim-*'restores them, andgrub2-installis not used.
Mixing the two, such as running a BIOS-style install on a UEFI system, is a common cause of a server that will not boot. The recovery steps are in GRUB rescue.
Virtual and Network Boot
A KVM virtual machine uses either legacy firmware (commonly SeaBIOS) or UEFI firmware (OVMF), chosen when the machine is defined. Changing it later does not convert the disk: a system installed one way needs an ESP and a new boot loader before it boots the other way, so take a backup or snapshot first. Network boot exists in both worlds; see what is PXE boot.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations