Error: no partition found, grub rescue

I deleted my existing OS and install ubuntu mate on it. After completed the installation and asked me to restart the PC but it is giving the error:

error: no partition found
Entering rescue mode
grub rescue>

I am using a Lenovo laptop and it has a side button for entering BIOS, boot menu, recovery etc. I can enter boot menu via that method and can boot ubuntu mate. But while loading normally, it is giving the error. I have the live usb with me. I re-installed it, but giving the same result. What should I do?

I know nothing about grub, but have had a few issues in the past. What I saved in my notes are as follows:

I never tried this but I think it is worth trying before next item

$ sudo grub-install --boot-directory=/boot /dev/sda
$ sudo update-grub 

And once when I could not boot, I did the following:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair

Running boot-repair did fix my issue.

1 Like

https://help.ubuntu.com/community/Boot-Repair