29.09.2025

What is GRUB: Linux and Windows boot loader, configuration and recovery

GRUB (GRand Unified Bootloader) is an operating system bootloader used in most Linux distributions, capable of launching multiple OSes on the same computer. Essentially, it is a program that sits between the BIOS/UEFI and the operating system itself.

When you power on your computer, the firmware (BIOS or UEFI) runs first, initializing the hardware. Then, control is passed to the bootloader — this is where GRUB comes into play. It displays a menu to select the OS (if there are several), loads the Linux kernel or another system, and passes control to it.

Why do you need GRUB?

How does GRUB work?

GRUB consists of several parts:

  1. Stage 1 - a small bootloader in the MBR (or ESP partition in UEFI) that runs first.
  2. Stage 1.5 / Stage 2 - the main code that can work with file systems and load configuration files.
  3. Configuration file (/boot/grub/grub.cfg) - contains the definitions of available kernels, parameters, and OS entries.

Main features

Where is it used?

GRUB is the default bootloader in almost all popular Linux distributions: Ubuntu, Debian, Fedora, Arch Linux, Linux Mint, and many others. Even if you only use one OS, chances are that GRUB is working “behind the scenes” to start it.

FAQ: Frequently Asked Questions about GRUB

Conclusion

GRUB is a universal bootloader without which most Linux systems simply wouldn’t start. It performs a crucial role: bridging the computer’s hardware with the operating system and giving the user control over the boot process. With it, you can run multiple OSes on the same computer, set kernel parameters, recover the system in case of failures, and even customize the look of the boot menu.

Its flexibility and universality have made GRUB the de facto standard in the Linux community. For beginners, it provides a simple way to choose an OS at startup, while for advanced users, it offers extensive customization and troubleshooting options. That’s why, when learning Linux, it’s worth understanding at least the basics of how GRUB works and how to restore it — this knowledge may one day save your computer from a “black screen.”

Serverspace Knowledge Base

Serverspace Knowledge Base is a convenient and constantly updated resource that brings together practical materials for developers, system administrators, and anyone working with infrastructure. Here you can find detailed server setup guides, step-by-step instructions for working with virtual machines, configuration examples for popular services, and optimization tips. Special attention is given to Linux: articles cover network service configuration, file system management, package managers, security settings, and monitoring. You’ll also find resources on SSH, Docker, virtualization systems, cloud technologies, and DevOps tools. With its structured search and clear explanations, the knowledge base is suitable for both beginners and experienced specialists. If you’re looking for practical examples or ready-made solutions to common Linux tasks, the Serverspace Knowledge Base will be a reliable source of information and help you quickly find your way in any situation.