If you're like most people you probably have a dual boot system which allows you to boot into either Linux or Windows. So what happens if you need to reinstall/install Windows and you already have Linux installed? When you install Windows it overwrites you're current MBR/boot loader (in this case GRUB). So how do you restore GRUB after Windows overwrites your MBR/boot loader? Easy!!!
The first thing you need to do is download and burn the Fedora Rescue ISO for the version of Fedora that you're running. In this case I'm going to use the Fedora Core 2 Rescue disc (FC2-i386-rescuecd.iso) since I'm running FC2.
Once you've burned your Fedora Core Rescue disc reboot your system using it.
When you get to the command prompt type:
chroot /mnt/sysimage grub-install /dev/hda
Now just hit Ctrl+D twice and your system should reboot. Once your system reboots you should see the GRUB menu.
That's it!!! You're done.
If for some reason the above commands fail. You can try restoring GRUB from the GRUB prompt by running the following set of commands (Thanks to P. Sivanandhan for this info).
grub grub> root (hd0,1) # Assumes your / ( or /boot ) partition is hda2 grub> install (hd0,1)/boot/grub/stage1 d (hd0) (hd0,1)/boot/grub/stage2 p (hd0,1)/boot/grub/grub.conf
If you have a separate /boot partition try the following command.
grub> install (hd0,1)/grub/stage1 d (hd0) (hd0,1)/grub/stage2 p (hd0,1)/grub/grub.conf