Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Boot Process

Direct answer

The Linux boot process: firmware (BIOS/UEFI) → bootloader (GRUB) → kernel with initramfs → the real root filesystem is mounted → systemd (PID 1) starts units until the default target is reached.

When to use this

Use it to locate where a boot fails or is slow.

First 30 seconds

1. Which stage is the last one you see on the console?

2. After boot: journalctl -b -1 -p err — errors from the failed boot.

3. systemd-analyze blame / critical-chain — slow units.

4. Emergency mode → check /etc/fstab and journalctl -xb.

5. Fix and reboot.

Operational verification

firmware → bootloader → kernel + initramfs → root mounted → systemd → default target

Evidence · next step

For Boot Process, continue with the first unproven Topic check: Pin the exact failed boot attempt, host/VM identity, firmware mode, boot device and any recent kernel, initramfs, storage or configuration change. If that boundary is healthy, advance to the adjacent check: Walk firmware → bootloader → kernel → initramfs → root mount → PID 1 → target/services and collect evidence at the first visible failure boundary. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandjournalctl -b -p err
Scope / prerequisiteUse it to locate where a boot fails or is slow.
What next?3 suggested next steps
Child topics (this level)10
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

firmware/boot order → EFI/BIOS boot entry → bootloader + configuration → kernel image + command line → initramfs drivers/hooks → root-device discovery/mount → switch_root → PID 1/systemd transaction → target/services → login/workload readiness

Healthy evidence: the intended boot entry loads the intended bootloader, kernel/initramfs finds the correct root, systemd converges without blocking failures and the original workload becomes ready.

Step 2 Verification and output interpretation Verify boundary

Verification path. Anchor evidence to the stage that was actually reached. Firmware/bootloader failures need console/firmware evidence; initramfs failures need device/module/root-unlock evidence; emergency mode needs mount/unit dependency state; a booted host with one failed daemon is a service problem. After repair, a controlled reboot is the definitive persistence test. Verify the expected target plus the original service/storage/network dependency after reboot.

Existing fast checks for this Topic. - Pin the exact failed boot attempt, host/VM identity, firmware mode, boot device and any recent kernel, initramfs, storage or configuration change.

  • Walk firmware → bootloader → kernel → initramfs → root mount → PID 1 → target/services and collect evidence at the first visible failure point.
  • Correlate kernel command line, root identifiers, module availability, filesystem/storage state and systemd job failures before changing configuration.
  • After the smallest justified repair, cold/reboot through the original path and verify login/service/workload readiness plus an adjacent regression check.

Verification chain. firmware/boot order → EFI/BIOS boot entry → bootloader + configuration → kernel image + command line → initramfs drivers/hooks → root-device discovery/mount → switch_root → PID 1/systemd transaction → target/services → login/workload readiness

Step 3 Commands Verify boundary
systemd-analyze
systemd-analyze blame | head
journalctl -b -p err
cat /proc/cmdline
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: the machine advances through several visible boot stages but one unproven handoff, stale identifier, missing module, failed mount or unit prevents the intended userspace/workload outcome.

It does not show behavior outside the captured host/VM, firmware, disk, selected boot entry, kernel/initramfs, root topology, boot attempt, service set, time or workload scope. Boot Process verification ends only when the intended boot path reaches stable userspace and the original required workload is ready; reaching firmware, GRUB, a kernel prompt or a systemd target is only intermediate evidence.

Next check: Continue from the first unproven handoff: capture the exact artifact/configuration and downstream state, change only the demonstrated cause, reboot through the original path, then repeat the original service/workload and adjacent regression checks.

Step 5 Common mistakes Narrow the fault
  • Editing boot files without a working rescue path.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic BIOS / UEFI

BIOS / UEFI covers the firmware stage that initializes platform hardware, selects a boot path and hands execution to legacy boot code or an EFI executable before Linux itself starts.

Subtopic Bootloader

Bootloader covers the stage that selects a Linux boot entry, locates kernel/initramfs artifacts, supplies the kernel command line and transfers execution from firmware into the chosen kernel.

Subtopic GRUB

GRUB covers GNU GRUB configuration, generated menu state, device/filesystem discovery, kernel/initramfs selection and recovery editing at the Linux bootloader boundary.

Subtopic Linux Kernel

Linux Kernel in the boot context covers decompression/startup, early hardware initialization, built-in and module-dependent device discovery, command-line parsing and handoff into initramfs or the configured init process.

Subtopic initramfs

initramfs is early userspace used before the real root filesystem: it supplies scripts, udev, storage/network/encryption/LVM/RAID helpers and modules needed to discover and mount the intended root and switch into normal userspace.

Subtopic systemd Boot

systemd Boot covers PID 1 after the real root/userspace handoff: generator output, unit discovery, dependency and ordering transactions, mount/device targets, default target convergence and the distinction between unit activation and service readiness.

Subtopic Kernel Parameters

Kernel Parameters covers the command-line key/value and flag inputs supplied by the bootloader that alter kernel, early userspace, root discovery, console, security and troubleshooting behavior for a specific boot.

Subtopic Runlevels

Runlevels covers the traditional SysV numeric operating-state model and its mapping/compatibility relationship with modern systemd targets on Linux distributions that expose runlevel concepts.

Subtopic Targets

Targets in the boot context covers systemd synchronization/grouping units used to express boot milestones, default boot state and collections of dependencies such as rescue, multi-user and graphical states.

Subtopic Rescue / Emergency Mode

Rescue / Emergency Mode covers reduced systemd boot environments used to recover a Linux host when normal boot cannot converge, with emphasis on minimal dependencies, root filesystem state, console access and safe transition back to normal boot.

Key points

Identify the last stage reached: no GRUB menu → firmware/disk; GRUB error → bootloader; kernel panic → kernel/initramfs; emergency shell → mount or fstab; login missing → services. journalctl -b -1 shows the previous (failed) boot if the journal is persistent.

Key checks
  • systemctl is-system-running — running, degraded or starting
  • systemd-analyze — boot time per stage
  • journalctl -b -p err — errors in this boot
  • journalctl --list-boots — previous boots
  • cat /proc/cmdline — kernel command line used
ReferenceWhat it is1 section · depth on demand

Core model

Troubleshoot boot as a sequence of ownership boundaries rather than one event. Pin the exact boot attempt and device, then show firmware selection, bootloader configuration, kernel/initramfs load, root-device discovery, early userspace handoff, systemd transaction state and workload readiness in order; stop at the first step that cannot be confirmed.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Boot Process verification ends only when the intended boot path reaches stable userspace and the original required workload is ready; reaching firmware, GRUB, a kernel prompt or a systemd target is only intermediate evidence.

In depth

The Linux boot sequence, stage by stage

A Linux boot passes through clearly separated stages, and each one has its own failure signature. The systemd bootup(7) manual page describes the sequence:

1. Firmware does minimal hardware set-up and hands over to a boot loader (GRUB or systemd-boot). On some EFI systems, the firmware loads the kernel directly.

2. Boot loader: loads the kernel and, usually, an initramfs.

3. initramfs: the kernel unpacks it into memory. Inside it, systemd runs to initrd.target, mounts the real root at /sysroot, and then switches root to it.

4. Host system: systemd continues through sysinit.target and basic.target to default.target, which is usually multi-user.target or graphical.target.

emergency.target and rescue.target are the fallbacks, and systemd.unit= on the kernel command line selects another goal.

Where boots fail

StageTypical symptomWhere to look
FirmwareNo boot device found; wrong boot entryFirmware boot menu, efibootmgr -v
Boot loadergrub> or grub rescue> promptGRUB files on /boot or the ESP
KernelKernel panic, "VFS: Unable to mount root fs"Kernel parameters, initramfs contents
initramfsDropped into a dracut or initramfs shellMissing driver, wrong root UUID, LUKS or LVM
systemdEmergency mode, a unit failingjournalctl -xb, /etc/fstab

Reading the previous boot

host$ journalctl --list-boots | tail -3
 -2 4b1e... Thu 2026-11-26 08:01:12 CET—Thu 2026-11-26 18:30:02 CET
 -1 9c02... Fri 2026-11-27 08:03:40 CET—Fri 2026-11-27 19:02:11 CET
  0 e7aa... Sat 2026-11-28 08:59:58 CET—Sat 2026-11-28 12:10:00 CET
host$ journalctl -b -1 -p err --no-pager | head
host$ systemd-analyze
Startup finished in 6.212s (firmware) + 2.104s (loader) + 1.802s (kernel) + 3.411s (initrd) + 8.903s (userspace) = 22.433s
host$ systemd-analyze critical-chain --no-pager | head -6
host$ cat /proc/cmdline

Using systemd-analyze

The first line splits boot time across the stages described above. A long "firmware" time is the BIOS or UEFI itself. A long "initrd" time often means waiting for a disk or for a LUKS password, and a long "userspace" time points to a slow service, which critical-chain and blame identify.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Boot Process is part of Boot Process. Boot Process is the end-to-end Linux startup reference from firmware handoff through bootloader, kernel and initramfs execution to PID 1, target convergence, service readiness and the original workload becoming usable.

Runtime state ownership and mechanics. Boot is a staged chain: firmware selects boot media, a bootloader selects kernel/initramfs and command line, the kernel initializes core subsystems, initramfs discovers/unlocks/assembles the real root, switch-root hands control to the installed system, and PID 1 constructs the userspace dependency graph. Failures before persistent logging, during root discovery and after systemd takeover require different evidence sources and recovery methods.

Topic-specific state model. Boot Process is the end-to-end Linux startup reference from firmware handoff through bootloader, kernel and initramfs execution to PID 1, target convergence, service readiness and the original workload becoming usable.

Technical metadata. Host/VM identity, distribution, firmware mode/version, boot order/EFI entry, bootloader instance/config, selected kernel/initramfs, exact kernel command line, root UUID/LABEL/device chain, RAID/LUKS/LVM state where relevant, mount state, boot ID, PID 1/systemd target/jobs, failed units, console/journal evidence, service readiness and original workload result.

Interpretation rule. - Firmware reached a boot entry ≠ the selected bootloader or Linux installation is valid.

  • Kernel started ≠ the intended root filesystem was discovered, mounted or handed to real userspace.
  • systemd reached a target ≠ every required service is ready or the workload is healthy.
  • A later successful reboot ≠ the original failure is understood, reproducible or durably fixed.

Quick reference

Linux boot sequence: firmware (UEFI/BIOS) → boot loader (shim + GRUB 2 or systemd-boot) → kernel + initramfs → initramfs mounts the real root (LVM, RAID, LUKS, multipath) → switch_root → systemd (PID 1) → default.target.

systemd-analyze
systemd-analyze blame | head
systemd-analyze critical-chain
journalctl -b -0 -p warning
journalctl --list-boots

systemd-analyze splits time into firmware, loader, kernel, initrd and userspace — useful to find where slow boots spend time.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. Boot Process verification ends only when the intended boot path reaches stable userspace and the original required workload is ready; reaching firmware, GRUB, a kernel prompt or a systemd target is only intermediate evidence.

Model. A valid bootloader menu does not show the kernel can mount root, and a running kernel does not show the installed userspace reached the intended target. Historical journal data may not cover pre-journald failures. Device names can change while UUID/PARTUUID policy remains stable, or the reverse when cloned media duplicates identifiers. Rescue-mode success can bypass normal dependencies and therefore is not equivalent to a normal production boot.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Configuration intent and lifecycle. Boot intent spans firmware entries, bootloader configuration, kernel images, initramfs contents, kernel parameters, storage identifiers, crypt/LVM/RAID hooks, fstab and systemd units/targets. Regeneration steps matter: editing a source file may require rebuilding initramfs or bootloader output. Keep a known-good kernel/initramfs and reversible boot entry where practical. Avoid broad rescue changes until the last successful stage is identified.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Boot Process. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://systemd.io/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
linux boot processlinux startup sequenceboot troubleshooting linuxfirmware grub kernel systemd
Embedded reference data

Quick lookup tables

Boot Process operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Boot Process.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateBoot Process is the end-to-end Linux startup reference from firmware handoff through bootloader, kernel and initramfs execution to PID 1, target convergence, service readiness and the original workload becoming usable.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin exact host + failed boot attempt → identify firmware mode/boot entry → capture bootloader entry + kernel/initramfs + command line → prove root-device discovery and early-userspace handoff → inspect PID 1 transaction/target → change one demonstrated cause → reboot through original path → verify service/workload readiness and regression.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainfirmware/boot order → EFI/BIOS boot entry → bootloader + configuration → kernel image + command line → initramfs drivers/hooks → root-device discovery/mount → switch_root → PID 1/systemd transaction → target/services → login/workload readinessTrace requested/configured state through effective state to the observed workload result.
Failure boundaryBoot Process verification ends only when the intended boot path reaches stable userspace and the original required workload is ready; reaching firmware, GRUB, a kernel prompt or a systemd target is only intermediate evidence.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux boot evidence can establish this proof path: firmware/boot order → EFI/BIOS boot entry → bootloader + configuration → kernel image + command line → initramfs drivers/hooks → root-device discovery/mount → switch_root → PID 1/systemd transaction → target/services → login/workload readinessUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host/VM, firmware, disk, selected boot entry, kernel/initramfs, root topology, boot attempt, service set, time or workload scope. Boot Process verification ends only when the intended boot path reaches stable userspace and the original required workload is ready; reaching firmware, GRUB, a kernel prompt or a systemd target is only intermediate evidence.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven handoff: capture the exact artifact/configuration and downstream state, change only the demonstrated cause, reboot through the original path, then repeat the original service/workload and adjacent regression checks.Continue to the next unresolved boundary while preserving the original test condition.

Boot Process · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryBoot Process
Topic pathBoot Process
Runtime stateBoot Process is the end-to-end Linux startup reference from firmware handoff through bootloader, kernel and initramfs execution to PID 1, target convergence, service readiness and the original workload becoming usable.
Fast checks- Pin the exact failed boot attempt, host/VM identity, firmware mode, boot device and any recent kernel, initramfs, storage or configuration change. - Walk firmware → bootloader → kernel → initramfs → root mount → PID 1 → target/services and collect evidence at the first visible failure boundary. - Correlate kernel command line, root identifiers, module availability, filesystem/storage state and systemd job failures before changing configuration. - After the smallest justified repair, cold/reboot through the original path and verify login/service/workload readiness plus an adjacent regression check.
Verification chainfirmware/boot order → EFI/BIOS boot entry → bootloader + configuration → kernel image + command line → initramfs drivers/hooks → root-device discovery/mount → switch_root → PID 1/systemd transaction → target/services → login/workload readiness Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryBoot Process verification ends only when the intended boot path reaches stable userspace and the original required workload is ready; reaching firmware, GRUB, a kernel prompt or a systemd target is only intermediate evidence.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?