you need
  • - any Linux LiveCD.
Guide
1
to repair Grub bootloader you will need a LiveCD or bootable disk on Linux.It is best suited to drive Ubuntu, which is a "living" and the installation disk simultaneously.
2
Boot from the LiveCD.Once downloaded, run the terminal system («Menu» - «Applications» - «Default apps» - «Terminal») and enter the command:
sudo grub.
Sudo allows you to get root access to run this command, and the request starts the grub shell.Thus, you will find yourself in a shell loader and you are prompted - grub & gt ;.
3
Next, enter the following command:
find / boot / grub / stage1.
This query will return the place where the loader (eg, hd0,1 or hd0,6).The MBR boot sector is only a small information about grub-e, and when using find you will find all the necessary installation files.
4
Enter the section obtained in the following query:
root (hdZnachenie, value).
5
Then install the files to the boot partition of the hard disk:
setup (hd0).
This request sets the boot to the hard drive, and as the second parameter is missing, the installation is performed directly over MBR.
6
then exit the shell grub:
quit.
7
There is a second way to solve the problem.Boot the Live CD and mount your hard drive in the most convenient location.For example:
mount / dev / hda / media / hard.
8
Then run the request through the terminal:
sudo grub-install / dev / hda --recheck --root-directory = / media / hard.
recheck option is used to validate the installed file /boot/grub/device.map, and corrects the error of his team.
9
Remove LiveCD, reboot your computer, and you'll be able to boot into your installed system.