Question

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

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!!!


Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
November 7, 2024

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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.