Ubuntu – grub rescue at every boot

grubrescue

I had a dual boot installation (Win8 & Ubuntu). I was not using Windows much and decided to have Ubuntu for the whole system. When I reinstalled Ubuntu, I got the error

error: no such partition
Entering rescue mode
grub rescue >

Then I tried the following at the grub rescue

set root=(hd1,1)
set prefix(hd1,1)/boot/grub
insmod normal
normal

When I tried these command, I got the Ubuntu boot menu where I was able to start the system. However, when I shut down the system and restarted I got the same grub rescue error. Can you please help?

I am not sure if this helps. Here is the output of sudo fdisk -l

enter image description here

Best Answer

Those commands are fixing your problem temporarily.

Try running this command from terminal when Ubuntu is running to try to fix the problem -

sudo update-grub

Running just this command should be enough for you, but if it isn't, you can run all three of these to try fixing your problem. [Replace X with your drive letter]

sudo grub-install /dev/sdX
sudo grub-install --recheck /dev/sdX
sudo update-grub
Related Question