Ubuntu 12.04 boot Menu after reloading Windows system

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.