Report this

What is the reason for this report?

“end Kernel panic — not syncing : VFS :Unable to mount root fs on unknown—block(0,0)”

Posted on November 5, 2024

Help!!! After making some file changes to a custom directory on a Ubuntu droplet and rebooting it I’m getting this:

end Kernel panic — not syncing : VFS :Unable to mount root fs on unknown—block(0,0)

drive.google.com/file/d/1zxaondroSCh0L0FU264ZpRxGzaQaX0sx/view?usp=sharing

I’ve tried this as the error is similar www.digitalocean.com/community/questions/digital-ocean-kernel-panic-after-cpu-ram-resize but still couldn’t fix the issue.

The issue seems to be with Grub not finding the boot partitian running grub-install --target=x86_64-efi --boot-directory /boot --efi-directory=/boot or --bootloader-id=grub gives this error

grub-install: error: failed to get canonical path of ‘overlay’

Any suggestions are welcome, thank you!!!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Here are some additional tips you might want to try,

Once you’re in Rescue Mode, you can try to mount the root filesystem to inspect it.

  1. Identify the partitions: Run the following to see available partitions:
lsblk

or

fdisk -l

Mount your root partition: Assuming /dev/sda1 is your root partition (replace with the actual device name), try:

mkdir /mnt/root
mount /dev/sda1 /mnt/root

If you can mount it, inspect the /boot directory to check for any missing files or incorrect symlinks.

Check and Reinstall GRUB

With the root filesystem mounted, you can try reinstalling GRUB. Make sure the /boot directory is intact.

  1. Chroot into your Droplet’s root filesystem:
mount --bind /dev /mnt/root/dev
mount --bind /proc /mnt/root/proc
mount --bind /sys /mnt/root/sys
chroot /mnt/root

Reinstall GRUB: Attempt to reinstall GRUB with the following command:

grub-install --target=x86_64-efi --efi-directory=/boot --boot-directory=/boot --bootloader-id=grub

If you’re still encountering failed to get canonical path of 'overlay', it could indicate an issue with the filesystem layout or partition recognition.

After reinstalling GRUB, generate a new GRUB configuration file:

update-grub

Once you’ve completed these steps, unmount the filesystems and reboot the Droplet.

If this doesn’t help you might need to contact DigitalOcean support for further assistance.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.