BIOS vs UEFI & the Boot Chain

BIOS vs UEFI

When you power on a machine, firmware runs first and hands control to a bootloader.

FeatureBIOS (legacy)UEFI (modern)
Partition schemeMBR (max 2 TB, 4 primary)GPT (huge disks, 128 partitions)
Boot dataBoot sector (first 512 bytes)EFI System Partition (/boot/efi, FAT32)
Secure BootNoYes (signed bootloaders)
Interface16-bit textGraphical, mouse, network

Boot chain (UEFI + systemd):

Firmware (UEFI) → GRUB2 → vmlinuz (kernel) + initramfs → systemd (PID 1) → targets