Troubleshooting

After a kernel update and reboot, a server halts with a kernel panic: "VFS: Unable to mount root fs on unknown-block(0,0)." Selecting the previous kernel entry in the GRUB menu boots the server normally, and the disks are healthy. What is the BEST fix?

Show the answer

Correct answerD. Boot the previous kernel, then rebuild the new kernel's initramfs with dracut --force --kver <new-kernel-version>

The new kernel's initramfs likely lacks the storage driver needed to find the root device, so rebuilding it from a working boot fixes the panic. Specifying the new kernel version with --kver is required, because plain dracut --force rebuilds the running kernel's image. Running fsck does not help because the disks are healthy and the previous kernel mounts root fine.