Linux Labs EspañolES

Hardware and boot Labs

Simulated: keep the server on the last good kernel

Practitioner10 minSimulated terminalRHEL family

Objective

The working kernel is the persistent default, and you know why the new one panicked.

Requirements

  • Runs in the simulated terminal below. You already picked the old kernel at the GRUB menu.

Steps

  1. Confirm the running kernel and list the installed ones.
  2. Find out why the newest kernel could not mount root.
  3. Make the running kernel the default with grubby and verify it.
Simulated terminal
The simulated terminal needs JavaScript.

Not solved yet. Fix the problem, then run the verification commands.

This is a simulation in your browser. It accepts the common forms of each command. The output imitates a real server.

Verification

bash
grubby --default-kernel
Show the solution
bash
uname -r
rpm -q kernel
ls -lh /boot/initramfs-*
df -h /boot
grubby --set-default /boot/vmlinuz-5.14.0-427.42.1.el9_4.x86_64
grubby --default-kernel

Use the version that uname -r printed. The newest initramfs is 0 bytes and /boot is full: the image was never written. Free space in /boot, rebuild it with dracut -f --kver, and only then move the default back.