Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS on Unknown-Block(0,0)

good day
i have a vps with Contabo and their support is literally non existant
my vps is running an almalinix v8.8.0 - it doesnt boot with the latest kernel 4.18.0-477.27.2.el8_8.x86_64 and i have to select an older one 4.18.0-477.21.1.e18_8 for it to boot

I deleted the faulty kernel with yum remove kernel-4.18.0-477.27.2.el8_8.x86_64 but it continues to show in my console when the vps boots

update-initramfs -u -k 4.18.0-477.27.2.el8_8.x86_64 : command not found
update-grub : command not found

how to proceed ?! i dont care about the last kernel


The kernel is in multiple packages. See rpm -qa kernel\*
In other words, there may be kernel-core, kernel-modules, etc still in for 477.27.2.el8_8.
If so, the boot entry is probably from them, not from/by the kernel package.

Note though that some packages, like kernel-tools* and kernel-headers are not install_only and thus should not be removed.

I think that the first tool is now dracut and the second grub2-mkconfig, but you can
look whether you have /boot/loader/entries/*.conf
If there is a file for 477.27.2, then you can remove it for starters.

thank you … i have these - what should i do next? i have 0 idea about linux

Screenshot 2023-11-06 111243

We can actually show a shorter list:

dnf rq --installonly --latest=1

If all packages on the output are about 477.27.2, then you can use that list:

dnf remove $(dnf rq --installonly --latest=1)

they are mixed … i think Kernelcare from immunify360 updates it till last kernel - i unloaded the kernel care but it is still showing like this


Well, it shows latest installed for each package and since you did already remove kernel, for that package the latest is different.

You can do manually:

dnf remove kernel-core-0:4.18.0-477.27.2.el8_8.x86_64 kernel-modules-0:4.18.0-477.27.2.el8_8.x86_64 kernel-modules-extra-0:4.18.0-477.27.2.el8_8.x86_64

PS. Screenshots, bitmap images, are not a convenient way to post information. Not when one can copy-paste text. One can format text to be preformatted (aka “with code tags”).

i removed all these packages and my server was able to reboot in the 4.18.0-477.21.2.el8

should i retry to upgrade it ? and if yes how ?!

I upgraded through WHM
it is working now
thank you !