Skip to content

Instantly share code, notes, and snippets.

@asheroto
Created September 19, 2019 12:34
Show Gist options
  • Save asheroto/0a632ccde31f67476a50ef54889fdb03 to your computer and use it in GitHub Desktop.
Save asheroto/0a632ccde31f67476a50ef54889fdb03 to your computer and use it in GitHub Desktop.
While in the rescue mode, type these commands:
set root=(hd0,1)
set prefix=(hd0,1)/boot/grub
insmod normal
normal
If you get an error on any of them, change the hd,1 to hd,2 or hd,3, etc until you don't get an error
Once booted into the OS, run these two commands to make it stick:
sudo update-grub
sudo grub-install /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment