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.
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/