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!
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.
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.
With the root filesystem mounted, you can try reinstalling GRUB. Make sure the /boot
directory is intact.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.