Categories
Free Open Source Software (FOSS)

Repair missing GRUB

This was happened when a friend of mine wanted to install Ubuntu into his machine. The installation was successful, but he came back a day after it and complained that his Microsoft Windows could not be booted. We decided to re-install the Windows even I minded with the fact that we have to re-install Ubuntu also.

We installed Microsoft Windows into his machine, but I insisted not to re-installed his Ubuntu. I went to Google and found a way to bring the Grub back, in Ubuntu version. Since we just re-installed the windows, we decided to try this way out….no matter what it’s cost !!

Thanks to our guts…….we succeeded in bringing the Grub back

Here’s the steps;

  • boot by using Linux live CD, go to terminal and run –>> sudo grub
  • you’re in grub menu now, then type –>> find /boot/grub/stage1
  • It will display your grub position, example (hd0,4) or (hd0,5)
  • Then type –>> root (hd*,*) — ( replace the * with your grub position – (hd0,4))
  • Then type –>> setup (hd0)
  • The above statement will replace your windows MBR configuration
  • Then close the grub menu by typing –>> quit
  • Reboot your machine –>> sudo reboot
  • Above steps are only for Ubuntu clans, for others : without sudo

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Just Shared on Tel-U

Subscribe now to keep reading and get access to the full archive.

Continue reading