Arch Linux Boot Process - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Arch Linux Boot Process Guide
Complete beginner-friendly guide to the boot process on Arch Linux, including boot stages, init systems, and boot troubleshooting.
Table of Contents
Boot Stages
Boot Sequence
Boot stages:
- BIOS/UEFI: Hardware initialization
- Bootloader: Loads kernel
- Kernel: Starts system
- Initramfs: Initial filesystem
- Init System: Starts services
- Login: User login
BIOS/UEFI Boot
BIOS Boot
BIOS process:
- Power on
- POST (Power-On Self-Test)
- Find boot device
- Load bootloader
UEFI Boot
UEFI process:
- Power on
- UEFI initialization
- Find EFI partition
- Load bootloader
Bootloader
GRUB Boot
GRUB process:
- Load GRUB
- Show menu
- Load kernel
- Pass control to kernel
systemd-boot
systemd-boot process:
- Load systemd-boot
- Show menu
- Load kernel
- Start systemd
Kernel Loading
Kernel Boot
Kernel process:
- Load kernel
- Load initramfs
- Initialize hardware
- Mount root filesystem
- Start init
Initramfs
Initramfs purpose:
- Load modules
- Mount root
- Unlock encryption
- Start init
Init System
systemd
systemd process:
- Start systemd
- Load units
- Start services
- Show login
Check Boot
Analyze boot:
# Boot time
systemd-analyze
# Detailed
systemd-analyze blame
# Critical chain
systemd-analyze critical-chain
Troubleshooting
Boot Hangs
Check logs:
# Boot from USB
# Chroot into system
# Check logs
journalctl -b -1
Kernel Panic
Fix kernel:
# Boot from USB
# Chroot
# Reinstall kernel
pacman -S linux linux-headers
mkinitcpio -P
Summary
This guide covered boot stages, BIOS/UEFI, bootloader, kernel, init system, and troubleshooting.
Next Steps
- Arch Linux Bootloader Configuration - Bootloader
- Arch Linux Kernel Management - Kernel
- ArchWiki Boot Process: https://wiki.archlinux.org/title/Boot_process
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.