If you have two OS installed on your computer one is XP/Vista and another one is Linux, and if by some reason, you delete your Linux partition in windows or say your GRUB get corrupted due to some reasons, then if you restart, your system says GRUB ERROR 22. or something similar.
To restore your Linux Partition (along with GRUB :P) boot the computer using a Linux live CD (any)and run this command,
sudo lilo -M /dev/sda mbr
It will recover Linux on your PC. Now you will have both your OS's run's perfectly.