Go to Ubuntu LiveCD (ie, try Ubuntu) and operate in the terminal
The first thing to do is to find your Ubuntu system mounted under that SDA. You can fdisk-l this command with sudo. And then:
1. Sudo-i
2. Mount/dev/sdax/mnt (/mnt is a folder under the home folder, this folder can be arbitrary)
3. Mount/dev/sdax/mnt/boot This step is to give/boot separate partition command, if not separate partition skip this step, this step I skipped, seemingly no impact
4. Grub-install--ROOT-DIRECTORY=/MNT/DEV/SDA (Be sure to note that there is a space behind/mnt) (if the installation finished.no error reported proves that the initial repair was successful, If there is a bug reported, it proves that the previous operation failed)
5. Restart
6. After rebooting, go to the Grub interface and enter it at the grub> prompt:
7. FIND/BOOT/GRUB/CORE.IMG (if boot separate partition: Find/grub/core.ima) This command will get a result: (Hdx,y) (Mine is (hd5,0)
8. Root (Hdx,y)
9. kernel/boot/grub/core.img (boot separate partition: KERNEL/GRUB/CORE.IMG)
After the boot executes the command, it goes to the Grub menu and chooses to go to Ubuntu
11. After entering Ubuntu, go to the new software package to remove grub-pc and reload it. (You may want to modify the source during this process.)
12. Start the terminal
sudo update-grub
After rebooting, you can see the dual boot entries.
Win7 ubuntu10.04 dual system, after reloading the Win7, repair the dual boot entry