Skip to main content

Bootloader

In Turkish
önyükleyici
Updated 2 min read

Share this page

Send the link, quote the definition with a link back, or show it as a card on your own site.

https://softwaredictionary.org/terms/bootloader

In short

A bootloader is a small program that runs after the computer's firmware starts, loads the operating system kernel into memory, and hands control over to it.

What is a bootloader?

When you power on a computer, the CPU cannot load a full operating system by itself. First the firmware built into the motherboard, UEFI on modern PCs or the legacy BIOS on older ones, checks and initializes the hardware. It then runs the bootloader, whose job is to find the operating system kernel on disk, load it into memory, and start it.

On UEFI systems, the firmware reads a small FAT-formatted partition called the EFI System Partition and runs a bootloader program stored there, such as GRUB, systemd-boot, or Windows Boot Manager. Older BIOS systems instead ran 512 bytes of code from the disk's master boot record, which then loaded a larger second stage. The bootloader may show a menu for choosing between operating systems or kernel versions, passes startup options to the kernel, and loads an initial RAM disk with the drivers needed to reach the root file system. With Secure Boot enabled, each step checks the digital signature of the next, so malware cannot slip itself into the boot chain.

A bootloader is like a stage manager before a play: the building's lights are already on, but someone has to bring the lead actor to the stage, hand over the script, and step aside. Phones, routers, and other embedded devices have bootloaders too, and unlocking the bootloader on an Android phone allows it to start an operating system the manufacturer didn't sign.

A bootloader is often confused with the firmware. The firmware lives in a chip on the motherboard and runs first, while the bootloader is stored on the disk and is part of the operating system installation. The bootloader is also not the kernel: its job ends the moment the kernel starts, after which the kernel and its first process, such as systemd on Linux, take over the rest of the startup.

Key takeaways

  • The bootloader runs after the firmware and before the operating system kernel.
  • It finds the kernel, loads it into memory, and passes it startup options.
  • On UEFI systems it lives on the EFI System Partition.
  • It can offer a menu to choose between operating systems or kernels.
  • Secure Boot checks signatures so the boot chain can't be tampered with.

Example

Inspecting the boot setup on Linuxbash
# Show the kernel command line that the bootloader passed
cat /proc/cmdline

# Check whether the system booted with UEFI or legacy BIOS
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy BIOS"

# List UEFI boot entries and the boot order
sudo efibootmgr -v

Readers ask

What is the difference between a bootloader and BIOS or UEFI?

BIOS and UEFI are firmware stored on the motherboard that start the hardware and then launch the bootloader. The bootloader is software on the disk that loads the operating system kernel.

What is GRUB?

GRUB, the GRand Unified Bootloader, is the most common bootloader for Linux. It can boot several operating systems and lets you pick a kernel or edit boot options from a menu at startup.

What does unlocking the bootloader mean?

On phones and some other devices, the bootloader normally starts only operating systems signed by the manufacturer. Unlocking it removes that restriction so you can install a custom operating system, usually after the device erases its data for security.

See also

Spotted a mistake or something missing on this page?Suggest an edit

Read a random page
Open today's review
Switch to the dark theme
Read this page in Türkçe

More

Settings