After Windows 7 is reinstalled, install Grub to enter Ubuntu.

Source: Internet
Author: User
Windows 7 was re-installed today. Because the MBR boot zone of the hard disk is overwritten, it cannot enter Ubuntu. Therefore, you can only update the MBR again. The procedure is as follows: 1. after setting the hard disk to start, put it into Ubuntu's LiveCD. Wait a moment and you will be able to enter the Ubuntu operation interface 2. open the system terminal window, enter sudofdisk-l, and your hard disk partition will be displayed. Write down the partition code named Linux. My partition code is/dev/sda43.sudo-I and the Administrator is obtained.

Windows 7 was re-installed today. Because the MBR boot zone of the hard disk is overwritten, it cannot enter Ubuntu. Therefore, you can only update the MBR again.

The procedure is as follows:

1. After the hard disk is started, put the Ubuntu LiveCD. Wait a moment and you will be able to enter the Ubuntu operation interface.

2. Open the system terminal window. After Entering sudo fdisk-l, your hard disk partition information will be displayed. Write down the Partition Number named Linux. My name is/dev/sda4.

3. sudo-I: Get administrator permissions

4. Create a temporary directory in the/media Directory of mkdir/media/tempdir to mount/dev/sda4

5. mount linux partitions, mount/media/tempdir/dev/sda4

6. After grub-install -- root-directory =/media/tempdir/dev/sda, the installation is successful. Restart to see the boot selection Interface

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.