pS0KaA6m1LBYO2tteBUJmaEi00feokozLJRZSC26

[SOLVED] How to Fix Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS on Unknown-Block(0,0)

How to Fix Kernel Panic on Linux - Today I had a slightly tense experience when I turned on the laptop, suddenly Ubuntu couldn't boot and I got a "kernel panic" error message. Based on my previous experience, I always fail when fixing this kernel panic problem.

But this time I did not give up and did not immediately reinstall my laptop, because of curiosity, I finally went looking for references and tutorials to solve this problem.

Then I found a thread on the ubuntu forum that discussed the problem as I experienced, by following the tutorial there finally my laptop could be restored and I managed to fix this problem.

In this tutorial, I will try to explain the steps to fix Kernel panic - not syncing: VFS: Cannot mount root fs on block-unknown (0,0) in more detail, hopefully, this can be useful, check it out!

How to Fix Kernel Panic on Ubuntu Linux

The following is a message that appears on my desktop screen when I run ubuntu Linux.
How to Fix Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS on Unknown-Block(0,0)
From the picture above, you can see a message stating that my Ubuntu has kernel panic problems. Please note, that the cause of the kernel panic can vary and the message displayed can be different from what I experienced.

Before going into the tutorial how to fix it, we discuss first what causes kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0). The reason is that your Linux kernel lost the initramfs file. Initramfs is a scheme to load a temporary root file system into memory, which can be used as part of a linux startup process.

Then how to fix it? First, please restart your laptop, then in GRUB, select the Advanced options for Ubuntu menu, then the kernel options will appear as shown below.

The latest kernel (which has a kernel panic) on my laptop is the 4.15.0-54-generic kernel, so I decided to boot ubuntu using the previous kernel, the kernel 4.15.0-52-generic.
How to Fix Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS on Unknown-Block(0,0)
After logging in and successfully booting to Ubuntu using the old kernel version, please open the terminal console, then type fdisk -l.
$ sudo fdisk -l
How to Fix Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS on Unknown-Block(0,0)
From the picture above, you can see that my root partition is /dev/sda2. Root partition on your computer may be different. So, please adjust it.
$ sudo mount /dev/sda2 /mnt
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /dev/pts /mnt/dev/pts
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys
$ sudo chroot /mnt
Then, you can update initramfs with the following command. 
# update-initramfs -u -k 4.15.0-54-generic
4.15.0-54-generic is the kernel version on my laptop that has kernel panic problems, please adjust it to your linux kernel version.

Then, update your grub with the following command
# update-grub
Please wait until the grub update process is complete, then restart your laptop. Now boot your ubuntu as usual, you should no longer have problems with kernel panic as before.

That's the steps to fix kernel panic problems on ubuntu linux, hopefully, it is useful and thanks.

Related Posts