bootrec.exe /fixbootPress enter, then type:
bootrec.exe /fixmbrClose all windows, do a restart, and your Vista/7 bootloader should appear.
Those restoring XP have it even easier. Insert the install CD, allow it to proceed, then type r when it asks if you are repairing rather than installing. This brings up a command line, in which you should type, pressing enter between lines:
fixboot
fixmbr
exitFinally, those restoring Ubuntu or a similar Linux system need to start by identifying the drive their system is installed on. From the terminal on an install disk, type:
sudo mkdir /media/sda2
sudo mount /dev/sda2 /media/sda2
sudo grub-install –root-director=/media/sda2 /dev/sdaSource: ghacks.net