India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Türkiye Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Canada English
Canada Français
Netherlands Nederlands

What Is a Bootloader and How Does It Work?

Build Something Beautiful

With a .co.uk Domain

Just £3.99/month

A bootloader is a small program that prepares a computer to start its operating system.

It finds the selected operating-system kernel, loads the required files into memory, supplies startup information and then hands control to the kernel.

The bootloader does not normally switch on the hardware first. Firmware does that.

On a modern PC or server, UEFI firmware initialises enough hardware to continue, follows its configured boot order and launches an EFI program such as GRUB or Windows Boot Manager.

The bootloader then bridges the gap between firmware and the operating system.

That distinction explains why “the computer will not boot” can describe several different failures:

  • A disk that the firmware cannot see,

  • missing boot entry,

  • damaged loader and a

  • kernel that crashes after loading all stop startup at different points.

The Bootloader Sits Between Firmware and the Kernel

These components perform different jobs, even though people often group them together as “the boot process”.

Component

Where it normally lives

Main job

Firmware

Flash storage on the motherboard or virtual-machine platform

Starts after reset, initialises hardware and chooses a boot target

UEFI boot manager

Inside UEFI firmware

Reads the configured boot order and launches an EFI application

Bootloader

EFI System Partition, boot area or device flash

Selects and loads an operating-system kernel or another loader

Initial RAM filesystem

Loaded into memory when the operating system needs it

Supplies early drivers and tools so the kernel can reach the real root filesystem

Kernel

Operating-system files on disk

Manages memory, processors, devices and processes, then starts user space

The GNU GRUB manual describes a bootloader as the program responsible for loading an operating-system kernel and transferring control to it. That is the core job. Menus, recovery entries, themes and multi-boot support are useful additions rather than the definition.

What Happens After You Press the Power Button

The exact files differ between Windows, Linux, physical servers and virtual machines, but a modern UEFI boot normally follows this chain.

  1. The processor begins executing firmware. The firmware performs early hardware setup, checks memory and discovers devices needed for startup. On a virtual server, the hypervisor presents virtual firmware and virtual hardware instead.

  2. The UEFI boot manager reads its boot order. The UEFI specification defines boot options in non-volatile variables. Each option can point to a device and an EFI executable.

  3. Firmware opens the chosen EFI program. A typical installation stores boot programs on the EFI System Partition, usually called the ESP. Windows commonly uses \EFI\Microsoft\Boot\bootmgfw.efi; a Linux system may launch GRUB, systemd-boot or a kernel prepared as an EFI application.

  4. Secure Boot may verify the program. When Secure Boot is active, UEFI checks the program’s signature against its trusted and revoked-signature databases before allowing it to run. A valid signature establishes trust in that stage; it does not encrypt the disk or prove that every later application is safe.

  5. The bootloader selects what to start. It may use a saved default, present a menu or follow a recovery rule. It reads its configuration and locates the chosen kernel.

  6. The loader prepares the kernel. On Linux, this often means loading the kernel and an initial RAM filesystem, then passing a command line that identifies options such as the root filesystem. On Windows, Windows Boot Manager starts the Windows OS loader, winload.efi, which loads the kernel and boot-start drivers.

  7. The kernel takes control. The bootloader’s work ends at the handoff. The kernel initialises the rest of the operating system, mounts or connects to storage and starts the services that eventually produce a login screen, console or application workload.

Microsoft separates Windows startup into PreBoot, Windows Boot Manager, Windows OS Loader and kernel phases in its startup troubleshooting documentation.
That phase model is useful because a failure after the Windows logo has appeared is not automatically a bootloader fault.

UEFI and Legacy BIOS Reach the Loader Differently

Modern UEFI systems load executable files from a structured boot environment. Older BIOS systems begin with far less information.

Legacy BIOS starts from boot-sector code

Legacy BIOS chooses a disk and reads its first sector, traditionally the Master Boot Record or MBR.

That sector contains a partition table and a very small amount of bootstrap code.

The code usually cannot contain a complete modern loader, so it finds and starts a larger second stage elsewhere on disk.

People sometimes call the MBR “the bootloader”. More precisely, its bootstrap code is one early part of a staged bootloader.

UEFI starts an EFI application

UEFI can understand boot entries and launch an EFI executable from the ESP. This removes the old first-sector size constraint and gives firmware a standard way to store several boot choices.

UEFI is firmware, not the operating-system bootloader. Its built-in boot manager chooses an EFI application; that application may then act as the OS bootloader.

Switching an installed machine between legacy BIOS and UEFI mode is not a cosmetic setting. The partition layout, boot files and firmware entries must match the mode used during installation. Changing the mode without preparing the disk can make a working operating system appear unbootable.

GRUB and Windows Boot Manager Solve Different Boot Paths

GRUB can load a kernel or another loader

GRUB, the GRand Unified Bootloader, understands several filesystems and kernel formats. It can load a supported kernel directly, display multiple Linux kernels as menu entries or chain-load another bootloader.

Chain-loading means GRUB passes control to another loader instead of loading that operating system’s kernel itself. A dual-boot machine may use this route to start Windows Boot Manager from a GRUB menu.

GRUB’s flexibility also explains its visible recovery prompt. If GRUB starts but cannot find its configuration, modules or selected filesystem, the firmware has already completed its part and the failure sits inside the loader path or storage layout.

Windows uses a manager and a separate OS loader

On a typical UEFI Windows system, firmware launches bootmgfw.efi. Windows Boot Manager reads Boot Configuration Data, chooses an entry and starts winload.efi. The OS loader then places the Windows kernel and required boot drivers into memory.

“Windows Boot Manager” and “Windows bootloader” often refer to the whole experience, but separating the manager from winload.efi makes troubleshooting more precise.

Linux can boot without a separate conventional loader

A Linux kernel built with the EFI boot stub can present itself as an EFI executable. UEFI can then launch that kernel directly. The Linux kernel documentation notes that the stub performs bootloader work, so the system has not eliminated the function; it has placed that function inside the kernel image.

This is an important exception to the familiar firmware → GRUB → kernel diagram. The responsibility must exist, but it does not always require a separate program with a menu.

Secure Boot Checks Trust Before the Kernel Runs

Boot code runs before most operating-system security tools. Malware that replaces a loader or early driver could gain control before antivirus software starts.

Secure Boot creates a chain of signature checks. UEFI verifies pre-OS executables against trusted certificates and a revoked-signature database.

In the Windows path, the loader then verifies the kernel before the kernel continues checking boot drivers and early-start components.

Microsoft documents this relationship in its Secure Boot and Trusted Boot guidance.

Secure Boot does not:

  • encrypt files or replace full-disk encryption;

  • stop every vulnerability in trusted software;

  • guarantee that the selected operating system has a safe configuration; or

  • make backups unnecessary.

It can also reject a legitimate but unsigned custom loader. Disabling Secure Boot may make that loader run, but it also removes a verification layer.

Enrol the correct signing key or use a properly signed boot path when possible.

Should You Care About Bootloaders In Virtual Servers?

A VPS hides the physical motherboard, but the guest operating system still needs a boot path.

The virtual firmware selects a boot disk or EFI program, the guest loader starts its kernel and the kernel initialises virtual processors, storage and network devices.

This becomes visible when a kernel update leaves a bad default entry, an EFI System Partition fills up, a disk image loses its boot files or the root filesystem cannot mount.

An out-of-band console or recovery environment can show errors that SSH never will because the network service starts much later.

If you need root-level control over a Linux or Windows workload, our VPS hosting lets you install and manage a custom server environment.

A user interface showing Linux management plans with options for control and help.
Explore various Linux management plans for different levels of control.

Choose a managed plan when you want us to handle server administration, updates, security and backups; choose unmanaged VPS when your team will maintain the operating system and its boot configuration.

Root access makes boot repair possible, but it also makes destructive changes possible. Take a usable snapshot or backup before changing partitions, boot entries, loader packages or kernel files.

The Error Screen Tells You Which Layer Failed

Start with the last stage that definitely worked.

Symptom

Likely stage

First safe checks

No firmware screen or console response

Power, hardware or virtual platform

Check power state, provider status and console access

Firmware reports no bootable device

Disk discovery, boot order or missing boot entry

Confirm that the platform presents the correct disk; check firmware mode and boot order

GRUB rescue> or a GRUB file-not-found message

GRUB configuration, modules, partition identity or filesystem

Record the error; confirm partitions and recent disk or update changes from recovery media

BOOTMGR is missing, BCD error or Windows recovery loop

Windows Boot Manager, BCD or boot files

Use the matching Windows Recovery Environment and try Startup Repair first

Boot menu works but the chosen OS panics or shows a stop error

Kernel, initramfs, driver or root filesystem

Try a known-good kernel or recovery entry; inspect storage and update history

Secure Boot violation

Signature, revoked image or firmware trust settings

Identify the rejected component; verify its source and signing path before changing Secure Boot

A loader menu proves that the machine reached the loader. A kernel panic proves that the loader found and started a kernel. Those observations narrow the fault faster than reinstalling boot code blindly.

Repair the Boot Path Without Destroying the Evidence

Do not begin with a command copied from a forum for another operating system, partition scheme or firmware mode. A command that repairs a legacy MBR cannot reconstruct every UEFI boot entry, and writing to the wrong disk can turn a recoverable configuration problem into data loss.

Use this sequence instead:

  1. Capture the exact message. Photograph the physical screen or save the remote-console output. Record what changed immediately before the failure.

  2. Protect the current disk state. Create a snapshot, clone or block-level backup when the platform allows it. Confirm that the backup includes the boot and system partitions, not only application files.

  3. Confirm the boot mode and disk. Check whether the installation expects UEFI or legacy BIOS, whether the correct disk remains attached and whether firmware can see it.

  4. Enter the matching recovery environment. Use Windows Recovery Environment for Windows or the installed Linux distribution’s rescue media and documentation. On a server, use the provider’s console or rescue system.

  5. Repair only the failed layer. Rebuild a missing firmware entry, reinstall the correct loader, restore its configuration or select a known-good kernel according to the evidence. Do not format the ESP or recreate partitions unless you have verified that they are genuinely missing and have a tested backup.

  6. Test another full restart. A one-time manual boot does not prove that the saved boot order, default loader entry and normal disk path work.

Microsoft recommends Startup Repair as the first automated Windows boot-loader repair route because it diagnoses common startup faults before an administrator moves to lower-level boot-code or BCD changes.

Bootloader FAQs

Is BIOS a bootloader?

No. BIOS is firmware. It performs early hardware setup and loads bootstrap code from a selected device. That code starts the staged bootloader, which then loads the operating system.

Does every computer use GRUB?

No. Many Linux systems use GRUB, but Windows uses Windows Boot Manager and other Linux installations can use another EFI loader or boot an EFI-stub kernel directly. Embedded devices use bootloaders designed for their hardware and update process.

Does a phone have a bootloader?

Yes. A phone’s bootloader starts before the mobile operating system and normally verifies the software it loads. The Android Open Source Project’s bootloader guidance requires a data reset when a supported device changes to the unlocked state. Rules still vary by manufacturer, so follow the device maker’s instructions.

Can a computer boot without a separate bootloader program?

Yes, but something must still perform the loader’s job. For example, UEFI can launch a Linux kernel that includes the EFI boot stub. In that design, the kernel image also acts as the EFI loader instead of relying on a separate program such as GRUB.

The bootloader is small, but it controls a decisive handoff. Diagnose it as one link in a chain—firmware, boot manager, loader, kernel and user space—and repair the first broken link instead of rewriting every layer around it.