CeskyFrenchGermanItalianPortugueseTurkceSpanish

How to account for a single tax
05/03/2016
How to get to Valaam
05/03/2016

How to put grub

How to put grub

When installing multiple systems on a computer problem management the hard disk boot sector.

For example, if the computer was firstinstalled Linux operating system, and only then was raised to Windows, Microsoft's operating system will erase the GRUB boot loader and the computer starts up it will be impossible to choose a system, and the default will boot Windows.

You will need

  • - Any Linux LiveCD.

instructions

1

To restore the Grub bootloader need LiveCD boot disk or from Linux. It is best suited disk with Ubuntu, which is a "living" and the installation disc at a time.

2

Boot from the LiveCD. After the download is complete, run the terminal ( «Menu» - «Applications» - «Default apps» - «Terminal») and enter the following command:
sudo grub.
Sudo allows to obtain superuser rightsfor this command, and grub request starts a command interpreter. So you find yourself in a shell loader and you are prompted - grub & gt-.

3

Next, enter the following command:
find / boot / grub / stage1.
This query returns the value of the place where theloader (eg, hd0,1 or hd0,6). In the boot sector MBR is only a small information about grub-e, and with the find you will find all the necessary installation files.

4

Enter the number of the section obtained in the following query:
root (hdZnachenie, value).

5

Then install the files to a bootable hard disk partition:
setup (hd0).
This request sets the boot loader on the hard drive, and as the second parameter is missing, the installation is performed directly on the MBR.

6

Then exit the shell grub:
quit.

7

There is a second way to solve the problem. Boot from Live CD and mount your hard drive in the most convenient location. For example:
mount / dev / hda / media / hard.

8

After that, make a 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 in case of an error corrects his team.

9

Remove the LiveCD, restart your computer, and you can boot back into your installed system.

Comments are closed.