Reinstall Grub

February 3rd, 2020

Today I reinstalled windows on my computer, but the installer deleted my GRUB loader for Linux Mint. Is there a way to reinstall it? I tried google but all of the solutions didn’t work.
Answer #1
This has worked for me in the past, I have not tried this with Mint so please let us know if it works.
Here�s the quick and easy way to re-enable Grub.
1) Boot off the LiveCD
2) Open a Terminal and type in the following commands, noting that the first command will put you into the grub �prompt�, and the next 3 commands will be executed there. Also note that hd0,0 implies the first hard drive and the first partition on that drive, which is where you probably installed grub to during installation. If not, then adjust accordingly.
sudo grub
> root (hd0,0)
> setup (hd0)
> exit
Reboot (removing the livecd), and your boot menu should be back.
Answer #2
yeah I have tried this one, for some reason grub is unable to mount that partition…. Thanks for trying though..
Answer #3
for some reason grub is unable to mount that partition
grub doesn’t mount partitions,you do….but anyway that has nothing to do with anything you want to accomplish here.
root (hd0,0)
Windows is probally installed on hd0,0,which is the first partition on the drive,not the linux install that contains /boot/grub/stage1 and that is the files you need to reinstall grub to the MBR.
If you don’t know what partition linux was installed to then after the grub prompt use find /boot/grub/stage1
Then use that info to reinstall grub to the MBR which is hd0.
Then type quit.

 

| Sitemap |