Interview Prep/Linux/Boot, time, cron and kernel

The kernel panics at boot: `Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)`.

AdvancedTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → Missing or broken initramfs for that kernel (an interrupted update, /boot full during install), so the kernel has no drivers to find root.

Diagnose → Boot an older kernel from the GRUB menu, then:

ls -l /boot/initramfs-* /boot/initrd.img-*
df -h /boot
rpm -q kernel || dpkg -l 'linux-image*'

Fix → Free space in /boot, then rebuild: dracut -f --kver <newver> (RHEL) or update-initramfs -c -k <newver> (Debian), or reinstall the kernel package.

Prevent → Keep /boot usage low (installonly_limit), and alert on it.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel