---
title: "UEFI vs legacy BIOS: boot modes, GPT and Secure Boot · CloudSat"
description: "UEFI vs legacy BIOS: how each boots, GPT and MBR, Secure Boot and the 2026 certificate change, checking your mode on Windows and Linux, and converting."
url: https://cloudsat.io/learn/uefi-or-legacy-bios-boot-modes
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Windows Server](https://cloudsat.io/learn/topic/windows)

# UEFI vs legacy BIOS: boot modes, GPT and Secure Boot

UEFI vs legacy BIOS: how each boots, GPT and MBR, Secure Boot and the 2026 certificate change, checking your mode on Windows and Linux, and converting.

CloudSat team November 18, 2026 6 min read

People still say "BIOS" for the firmware setup screen, but nearly every PC and server sold in the last decade runs UEFI. "Legacy BIOS" now usually means UEFI's compatibility mode (the Compatibility Support Module, or CSM), which many recent platforms have dropped, or SeaBIOS inside a virtual machine. The difference still matters in four places: how the boot disk is partitioned, where the boot loader lives, whether Secure Boot can protect the boot chain, and what the 2026 expiry of Microsoft's original Secure Boot certificates means for your machines.

## How each one starts an operating system

**Legacy BIOS** runs its self-test, reads the first sector of the boot disk, the master boot record (MBR), and executes the small piece of boot code stored there. That code loads the next stage of the boot loader from a fixed place on the disk. The firmware knows nothing about partitions or files; it only knows which disk to try first.

**UEFI** reads named boot entries from its non-volatile memory (NVRAM), such as "Windows Boot Manager" or "ubuntu". Each entry points to an `.efi` program on the EFI System Partition (ESP), a small FAT32 partition: `\EFI\Microsoft\Boot\bootmgfw.efi` for Windows, `\EFI\ubuntu\shimx64.efi` for Ubuntu. When no entry works, the firmware falls back to `\EFI\BOOT\BOOTX64.EFI`, the path installer media use. With Secure Boot on, the firmware checks each program's signature before running it.

## Side by side

|  | Legacy BIOS (or CSM) | UEFI |
| --- | --- | --- |
| Partition table | MBR (Linux can also boot from GPT) | GPT |
| Largest boot disk | 2 TiB with 512-byte sectors on MBR | No practical limit with GPT |
| Partitions | 4 primary, or extended and logical | 128 by default |
| Where boot code lives | The MBR sector and a few hidden sectors | `.efi` files on the EFI System Partition |
| Boot order | Disk order in firmware setup | Named NVRAM entries, editable from the OS |
| Secure Boot | Not available | Available |
| Windows 11 | Not supported | Required, with Secure Boot capability and TPM 2.0 |
| Virtual machines | SeaBIOS on KVM, Generation 1 on Hyper-V | OVMF on KVM, Generation 2 on Hyper-V |

Windows ties the two choices together: it boots from GPT only in UEFI mode and from MBR only in legacy mode. Linux is more flexible and can boot from GPT in legacy mode through a tiny BIOS boot partition, which is why Linux machines sometimes surprise you.

## Check which mode a machine booted in

On Windows, in PowerShell run as administrator:

```powershell
$env:firmware_type                                   # UEFI or Legacy
Confirm-SecureBootUEFI                               # True or False; an error on legacy BIOS
bcdedit /enum '{current}' | Select-String 'path'     # winload.efi on UEFI, winload.exe on BIOS
```

`msinfo32` shows the same facts under **BIOS Mode** and **Secure Boot State**.

On Linux:

```bash
[ -d /sys/firmware/efi ] && echo UEFI || echo "legacy BIOS"
mokutil --sb-state                                   # SecureBoot enabled or disabled
sudo efibootmgr -v                                   # NVRAM boot entries, UEFI only
lsblk -o NAME,SIZE,FSTYPE,PARTTYPENAME,MOUNTPOINTS   # finds the EFI System partition
```

The `/sys/firmware/efi` directory exists only when the kernel was started by UEFI firmware, so it is the quickest test inside servers and virtual machines too.

## Secure Boot in brief

Secure Boot is a chain of signatures held in four firmware databases. The platform key (PK) belongs to the hardware owner, usually the manufacturer. Key exchange keys (KEK) are allowed to update the other two lists: `db`, the signers whose code may run, and `dbx`, the revoked signatures and hashes. Windows' boot manager is signed by a Microsoft Windows certificate. Linux distributions boot through `shim`, signed by Microsoft's third-party UEFI certificate, which then trusts the distribution's own key.

The friction point on Linux is out-of-tree kernel modules, such as NVIDIA or VirtualBox drivers built by DKMS. With Secure Boot on, an unsigned module will not load. Distributions handle this with a Machine Owner Key: the module gets signed locally and you confirm the key at the next boot after `sudo mokutil --import`, which is safer than switching Secure Boot off.

## The 2026 certificate rollover

The Microsoft certificates that have anchored Secure Boot from the start, issued in 2011, expire this year. The KEK certificate and the third-party UEFI certificate that signs loaders such as `shim` expired in June 2026. The Windows Production PCA 2011 certificate, which signed the Windows boot manager, expired on October 19, 2026, and Microsoft no longer signs anything with it. The successors are the 2023 certificates, including Windows UEFI CA 2023 for the Windows boot loader and Microsoft UEFI CA 2023 for third-party code.

Machines do not stop booting: firmware keeps trusting the certificates already stored in it. What a machine without the 2023 certificates loses is the ability to receive future boot manager fixes, new revocations and loaders signed only with the new keys. Check a Windows machine from an administrator PowerShell:

```powershell
[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Windows UEFI CA 2023'
```

`True` means the new certificate is in `db`. If it is missing, install current Windows updates and the manufacturer's firmware updates. On Linux, `mokutil --db` lists the certificates in `db`, and `fwupdmgr get-updates` shows pending firmware and key updates on hardware whose vendor publishes them. Virtual machines take their key databases from the hypervisor's firmware templates, so follow your platform's guidance there.

## Converting a machine from legacy BIOS to UEFI

**Windows** includes `mbr2gpt`, which converts the system disk in place without touching your files. Suspend BitLocker and take a backup first; the disk must have no more than three primary partitions, so the tool has room for the new EFI System Partition.

```powershell
mbr2gpt /validate /disk:0 /allowFullOS
mbr2gpt /convert /disk:0 /allowFullOS
```

Then switch the firmware to UEFI mode, turn off CSM and enable Secure Boot. If you skip the firmware step, the converted disk will not boot.

**Linux** needs an EFI System Partition and a UEFI boot loader: create a FAT32 partition of a few hundred megabytes, mount it at `/boot/efi`, install the UEFI package of GRUB (`grub-efi-amd64` and `shim-signed` on Debian and Ubuntu), then run `sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi` and `sudo update-grub` before switching the firmware. On a server where a reinstall is easy, reinstalling is often quicker and less risky. See [how to edit GRUB settings](https://cloudsat.io/learn/edit-grub-boot-settings) for the boot loader side.

**Virtual machines** follow the same rule: switch a guest to OVMF or Hyper-V Generation 2 only after its disk has an EFI System Partition and a UEFI loader. Hyper-V cannot change a VM's generation, so you attach the converted disk to a new Generation 2 VM.

If you install a system from your own ISO on a CloudSat server ([bring your own ISO](https://cloudsat.io/bring-your-own-iso)), run the firmware check from the installer's shell first, so you partition the disk for the firmware the server actually uses.

## FAQ

### Can Windows 11 run in legacy BIOS mode?

Not as a supported installation. Windows 11 requires UEFI with Secure Boot capability and a TPM 2.0, and workarounds that bypass the checks leave you outside Microsoft's support.

### Do I have to turn Secure Boot off to run Linux?

Not for mainstream distributions, which boot through a signed `shim`. Some installers and custom kernels do require it off, and unsigned modules need a Machine Owner Key or a signature before they load.

### Will my computer stop booting because of the 2026 expiry?

No. It keeps booting with the certificates it has. Install the 2023 certificates through Windows Update or firmware updates anyway, so the machine keeps receiving boot security fixes.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Windows Server](https://cloudsat.io/learn/topic/windows)

- [Edit GRUB safely: Grub Customizer or the command line](https://cloudsat.io/learn/edit-grub-boot-settings): Linux Edit GRUB safely: Grub Customizer or the command line 6 min read
- [AHCI, RAID or VMD and how BIOS storage modes affect Windows](https://cloudsat.io/learn/ahci-raid-vmd-bios-storage-modes): Windows Server AHCI, RAID or VMD and how BIOS storage modes affect Windows 7 min read
- [Check the OS and kernel version on Linux and Windows](https://cloudsat.io/learn/check-os-and-kernel-version): Linux Check the OS and kernel version on Linux and Windows 6 min read
- [Fix IRQL_NOT_LESS_OR_EQUAL and KERNEL_SECURITY_CHECK_FAILURE](https://cloudsat.io/learn/fix-irql-and-kernel-security-check-stop-codes): Windows Server Fix IRQL_NOT_LESS_OR_EQUAL and KERNEL_SECURITY_CHECK_FAILURE 6 min read
