In the first case, after Windows is installed, there is no grub interface at all after you start the system, so you need to restore the grub that was corrupted by Windows
If you use GRUB to boot Linux and Windows, and you destroy grub in the MBR after Windows has been reinstalled, you need to restore grub.
1. Put the first piece of the Linux installation CD into the optical drive, then restart the machine, in the Bois system light drive to boot.
2. After the installation of the interface, press F4 key, that is, the Linux rescue mode, but the general may not be F4, there is no relationship between the general will have to fix this option.
3. A series of keyboard and a few simple preparation, after the "continue" the process, here do not say, relatively simple.
4. The prompt will then appear:
sh#
This time enter:
Chroot/mnt/sysimage
Grub-install/dev/sda
SDA is my hard disk type, the general is HDA, if the hint is not a problem, you can reboot. Then grub can be smart enough to find your installation image and enter the Linux you want to enter.
In the second case, the damage to grub is not because of the reload of windows, but because of some operations under Windows, such as using the Partition magician, and moving the hard drive causing the partition sequence to change, which prompts you to appear:
Grub>
We can then type in the following characters:
Grub>root (Hdx,y)
If you succeed, you will be prompted with a probably this y partition information:
FileSystem type is EXT2FS, partition type 0x83
It doesn't matter if you go here. Continue to the following operation, in fact, here is not necessarily successful, because you provide the Y partition is not necessarily a system image of the partition, it does not matter, if we do not operate in the following, fixed.
Grub>setup (hd0)
Here, whether it's SDA or HDA, use HDX,
If successful there will be a successful ...
Here x, if it is a disk, is 0, if you install the Linux root partition on the second hard drive, that x is 1; Y, is the root partition that contains the Linux system. The Setup (hd0) is to write grub on the MBR of the hard disk.
After the reboot, you can see a selection of miscellaneous interface, if the above operation is correct, then go into the system is no problem, if given incorrect, will not be able to enter the system, and prompted, can not find the image, the following operations:
Reboot
On the Grub interface, move to the Linux boot option bar
Press E, enter edit
Then select an option bar that is probably root (hd0,7) above.
Press e again, edit, and change the following 7 to the partition where you think the image is correct.
Press ENTER, return to the Grub interface, press B to start, you can
Remember that you may want to change grub.conf after you enter the system