You have to fix two bootloaders:
- Windows 7 bootmgr and
- GRUB for Ubuntu.
Following are the steps to do so:
Insert your Windows Vista or Windows 7 disk into your DVD player and restart your computer.
The next screen you see should have the Language, Time and Currency and Keyboard boxes.
In the lower left side there are two options: “What to know before installing Windows” and “Repair your computer.”
Click on “Repair your computer”.
Windows will then try to find the installation directory for Vista or Windows 7, depending on what you have.
Next up is a screen with a box called Recovery Options. Click the first option, Startup Repair.
You’ll see a Startup Repair box with the message “Startup Repair is checking your system for problems…”
When it’s done, it will prompt you to reboot. If there is more than one problem it may reboot again to continue repairing.
At this point, you can remove the DVD, reboot and everything should be working.
Now you are done with Windows 7 Boot loader. Time to fix GRUB. Do the Following:
You can install GRUB on your hard disk. You can do this by using bootable Ubuntu CD.
Boot to live cd. When you get UBUNTU Live Desktop. Open terminal and type the following
sudo grub-install /dev/sda
sudo update-grub
quit
You are done now. Reboot the machine.
This will install grub on MBR of your hard disk with dual boot. Try the latest Ubuntu 12.04 LTS.
You can also use the bootrepair tool to reinstall grub: