I'm trying to fix grub from a USB drive. I am not sure why the problem happened. I was running Ubuntu 20.04 and restarted normally and on the restart, I get grub-rescue screen. I don't have windows installed, just the Ubuntu. I am currently using usb to fix it. I ran Boot-repair but got below error
Error detected in grub_mkconfig
After rebooting, I was taken to grub screen. I am trying these solutions, but nothing worked.
- https://unix.stackexchange.com/questions/52726/after-bios-splash-will-not-boot-asked-to-select-os-but-cant/52790#52790
- https://unix.stackexchange.com/questions/96977/grub-probe-error-failed-to-get-canonical-path-of-cow,
- Failed to get canonical path of /cow
- install grub on mounted filesystem,
I run the following:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
I get the following error:
grub-probe: error: failed to get canonical path of /cow.
Even when running
sudo grub-mkconfig > /boot/grub/grub.cfg
or
update-grub
in chroot, I get the same error. Can someone explain the error, and explain how to solve it?
This is the result of running sudo fdisk /dev/sda command
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1901873141 1901871094 906.9G 83 Linux
/dev/sda2 1901875198 1953523711 51648514 24.6G 5 Extended
/dev/sda5 1901875200 1937033215 35158016 16.8G 82 Linux swap / Solaris
/dev/sda6 1937035264 1953523711 16488448 7.9G 83 Linux
Edit: Pastebin link to the Bootinfo summary report: https://paste.ubuntu.com/p/sT23JKdBr8/ Pastebin link after peerforming boot repair:https://paste.ubuntu.com/p/nRf4Q29pfv/
https://sourceforge.net/p/boot-repair/home/Home/ The /cow means you were trying to update the live installer, not your install. But if you correctly chrooted into your install, you should have been able to fix it from there. – oldfred Feb 15 '22 at 18:54
/etc/default/grub
file? Can you list the file contents in your question? Changing some of theGRUB_CMDLINE_LINUX_DEFAULT
options in the file *might* fix the error. – WinEunuuchs2Unix Feb 24 '22 at 11:31