When we have Ubuntu in our original system, if we reinstall or install a new Windows system, we will find the Ubuntu system boot Menu is gone, we can reproduce the installation of the Ubuntu system will also solve the problem, but our previous efforts in the Ubuntu system has been wasted, Here's a brief introduction to using the Ubuntu system disk to restore our Ubuntu system boot menu.
Use CD to start the computer, choose "Try Ubuntu", enter LiveCD.
1. Use LiveCD to start the computer
2. Open Terminal
3, query Ubuntu partition
sudo fdisk-l (note is lowercase l, not the number 1,)
4, Get root permissions
Sudo-i
Then enter Mkdir/media/ubuntu (used here to create a folder of Ubuntu, used to mount just the sda1, this folder name you can depend on your personal preferences, not too many requirements)
Mount/dev/sda1/media/ubuntu (Mount sda1 under the Ubuntu folder)
The following is the most critical and exciting moment for this recovery, and enter the following command at the terminal:
Grub-install--ROOT-DIRECTORY=/MEDIA/UBUNTU/DEV/SDA
(This step is used to reinstall the GRUB2 (this software name is GRUB-PC) to the hard drive's master boot Record "MBR" inside, very critical!)
Input later if "installation finished" appears. No Error reported. " Character, it indicates that the operation was successful. After reboot, the Ubuntu boot interface has been restored ...
Enter the native Ubuntu system after reboot and execute the following command in the terminal
The reboot found that a Windows menu has been added.