Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Linux Kernel

Direct answer

The Linux kernel image (vmlinuz) is loaded by the bootloader, initialises hardware and memory, runs the initramfs, mounts the real root and starts /sbin/init (systemd).

When to use this

Use it when the boot stops with a kernel panic, or after a kernel update breaks boot.

First 30 seconds

1. Read the last lines before the panic.

2. Boot the previous kernel from the GRUB menu.

3. uname -r — which kernel is running now?

4. Broken kernel → rebuild its initramfs or reinstall the package.

5. Check journalctl -k -b -1 from the failed boot if persistent.

Operational verification

kernel loaded → hardware initialised → initramfs runs → root mounted → init started

Evidence · next step

For Boot Process → Linux Kernel, continue with the first unproven Topic check: Record the booted/selected kernel version and exact command line from the failing attempt. If that boundary is healthy, advance to the adjacent check: Inspect early console/kernel messages for architecture, driver, storage, filesystem, ACPI/IOMMU and panic/oops failures before user-space starts. 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
Scope / prerequisiteUse it when the boot stops with a kernel panic, or after a kernel update breaks boot.
What next?3 suggested next steps
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

bootloader handoff → kernel decompression/entry → architecture/platform init → command-line parse → built-in driver/device discovery → initramfs/init selection → root handoff/userspace

Healthy evidence: the intended kernel starts without fatal errors, parses the intended parameters, discovers required boot-critical devices and successfully hands to early/real userspace.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Record the booted/selected kernel version and exact command line from the failing attempt.

  • Inspect early console/kernel messages for architecture, driver, storage, filesystem, ACPI/IOMMU and panic/oops failures before user-space starts.
  • Verify required drivers are built in or available to initramfs and that root/storage identifiers match current topology.
  • After repair, boot the intended kernel normally and verify root mount, PID 1, services and workload rather than stopping at absence of a panic.

Verification chain. bootloader handoff → kernel decompression/entry → architecture/platform init → command-line parse → built-in driver/device discovery → initramfs/init selection → root handoff/userspace

Step 3 Commands Verify boundary
uname -r
ls /boot/vmlinuz-*
dnf list installed kernel
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: wrong kernel, missing built-in/initramfs driver, panic, incompatible parameter or storage discovery failure stops the chain before real userspace.

Step 5 Common mistakes Narrow the fault
  • Removing the running kernel package.
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
Key points

Panics such as "VFS: Unable to mount root fs" usually mean a wrong root= parameter or missing storage drivers in the initramfs. Boot the previous kernel from the menu to recover, then fix or remove the broken one.

Key checks
  • 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

Pin the exact kernel image/version actually booted and its command line, then read early kernel evidence before user-space logging becomes authoritative. Distinguish a kernel that starts from one that can discover required CPU/storage/controller/filesystem/encryption features. Kernel success is not root-filesystem success unless the root path and userspace handoff are confirmed.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Kernel-stage evidence shows kernel execution and required early device discovery only to the observed point, but it does not show real-root mount, systemd convergence or application readiness.

In depth

What the kernel does at boot

Once loaded, the kernel initialises hardware, mounts a root file system and starts the first user-space process. The bootparam(7) manual page describes how the kernel uses its command line:

  • The command line is split into space-separated arguments. The kernel handles its own and passes the rest to PID 1.
  • root= names the root file system device, and ro or rw sets how it is mounted first. rw is the default; ro lets fsck run on a quiet file system.
  • init= chooses the first program. Without it, the kernel tries /sbin/init, /etc/init, /bin/init and /bin/sh, and panics if none works.

Kernel versions and files

ItemWhere
Running versionuname -r
Kernel images/boot/vmlinuz-<version>
Modules for a version/lib/modules/<version>/
Boot messagesdmesg, journalctl -k -b
Configuration of the running kernel/boot/config-<version>, or /proc/config.gz if enabled

Messages that place a failure

MessageMeaning
VFS: Unable to mount root fs on unknown-block(0,0)No root device found: missing driver or initramfs, wrong root=
Kernel panic - not syncing: No working init foundNo init program at the expected path
Kernel panic - not syncing: Attempted to kill init!PID 1 crashed or exited
Run /init as init processThe kernel has handed over to the initramfs
host$ uname -r
6.8.0-49-generic
host$ journalctl -k -b --no-pager | head -5
kernel: Linux version 6.8.0-49-generic (buildd@lcy02-amd64-019) ...
kernel: Command line: BOOT_IMAGE=/vmlinuz-6.8.0-49-generic root=UUID=3f1c...a9 ro quiet splash
host$ dmesg --level=err,warn | tail
host$ ls /lib/modules/
6.8.0-45-generic  6.8.0-49-generic
host$ dpkg -l 'linux-image-*' | awk '/^ii/{print $2}'
host$ rpm -q kernel

init=/bin/bash for emergencies

Booting with init=/bin/bash starts a root shell instead of systemd, without services, and usually with root mounted read-only (ro). It's a last-resort way to reset a forgotten root password. Remount with mount -o remount,rw / before changing anything, and expect SELinux relabelling issues on SELinux systems.

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

Linux Kernel is part of Boot Process → 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.

Topic-specific state model. 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.

Interpretation rule. - GRUB loaded a kernel image ≠ that kernel is compatible with current hardware/modules.

  • Kernel prints messages ≠ required storage, filesystem or root device was discovered.
  • Kernel version installed ≠ that exact version was booted.
  • Kernel reaches initramfs ≠ real root and PID 1 will start successfully.

Quick reference

The kernel image (/boot/vmlinuz-<version>) is loaded by the boot loader with a command line and initramfs. Managing kernels:

uname -r
rpm -q kernel; dnf list --showduplicates kernel
apt list --installed 'linux-image-*'
grubby --default-kernel
dnf remove --oldinstallonly --setopt installonly_limit=2 kernel

Kernel panics during boot show on the console; capture them with a serial console (console=ttyS0) or kdump (kdumpctl status) for analysis. After kernel updates, needs-restarting -r (RHEL) or /var/run/reboot-required (Ubuntu) indicates a reboot is needed.

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. Kernel-stage evidence shows kernel execution and required early device discovery only to the observed point, but it does not show real-root mount, systemd convergence or application readiness.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Linux Kernel owns early kernel execution in the boot chain. Kernel & Hardware owns broader runtime module/hardware administration; initramfs owns early userspace payload; systemd Boot owns PID 1 convergence.

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 → Linux Kernel. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://systemd.io/ · confidence 94%
2026-09-13 · vendor docLinux kernel latest

Authoritative Linux project/vendor documentation reviewed for bounded reference claims: booted-kernel identity, kernel startup and administrator-visible runtime boundaries. Documentation-based technical verification only; not lab or production-runtime proof. The schema vendor_doc method is used for authoritative project/vendor documentation; deployment applicability remains separate evidence.

Basis: https://docs.kernel.org/admin-guide/ · confidence 93%
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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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 kernel bootkernel panic bootlinux boot kernelearly kernel startup
Embedded reference data

Quick lookup tables

Linux Kernel operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Linux Kernel.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux 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.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 chainbootloader handoff → kernel decompression/entry → architecture/platform init → command-line parse → built-in driver/device discovery → initramfs/init selection → root handoff/userspaceTrace requested/configured state through effective state to the observed workload result.
Failure boundaryKernel-stage evidence proves kernel execution and required early device discovery only to the observed point; it does not prove real-root mount, systemd convergence or application readiness.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux boot evidence can establish this proof path: bootloader handoff → kernel decompression/entry → architecture/platform init → command-line parse → built-in driver/device discovery → initramfs/init selection → root handoff/userspaceUse 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. Kernel-stage evidence proves kernel execution and required early device discovery only to the observed point; it does not prove real-root mount, systemd convergence or application readiness.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.

Linux Kernel · operational reference

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

Reference boundaryLinux Kernel
Topic pathBoot Process → Linux Kernel
Runtime stateLinux 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.
Fast checks- Record the booted/selected kernel version and exact command line from the failing attempt. - Inspect early console/kernel messages for architecture, driver, storage, filesystem, ACPI/IOMMU and panic/oops failures before user-space starts. - Verify required drivers are built in or available to initramfs and that root/storage identifiers match current topology. - After repair, boot the intended kernel normally and verify root mount, PID 1, services and workload rather than stopping at absence of a panic.
Verification chainbootloader handoff → kernel decompression/entry → architecture/platform init → command-line parse → built-in driver/device discovery → initramfs/init selection → root handoff/userspace 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 boundaryKernel-stage evidence proves kernel execution and required early device discovery only to the observed point; it does not prove real-root mount, systemd convergence or application readiness. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?