GRUB Bootloader
GRUB (Grand Unified Bootloader) is the first piece of software your OS controls after the firmware hands off. It finds your kernel on disk, lets you choose which one to boot, and passes configuration to it. When GRUB breaks, your system won't boot — so understanding it is essential.
What a Bootloader Does
GRUB Configuration
GRUB's main config file is generated automatically — you should never edit it directly:
Key settings in /etc/default/grub:
Kernel Parameters
The kernel command line lets you control kernel behavior at boot:
| Parameter | Effect |
|---|---|
quiet | Suppress most boot messages |
splash | Show graphical boot screen |
nomodeset | Disable GPU driver (use for graphics issues) |
single / 1 | Boot into single-user mode |
root=UUID=... | Which device is the root filesystem |
ro | Mount root read-only initially |
init=/bin/bash | Use bash as PID 1 (emergency) |
GRUB Rescue Mode
After booting, run sudo update-grub && sudo grub-install /dev/sda to permanently fix it.
Frequently Asked Questions
What will I learn here?
This page covers the core concepts and techniques you need to understand the topic and progress confidently to the next lesson.
How should I use this page?
Start with the overview, then follow the section links to deepen your understanding. Use the table of contents on the right to jump to specific sections.
What should I read next?
Use the navigation below to continue to the next lesson or explore related topics.