Fix Ubuntu grub after reinstalling Windows on a Windows and Ubuntu-installed machine

Source: Internet
Author: User

This article only for a dual system that does not have separate boot partitions with software like EASYBCD, after reinstalling Win7, because Win7 covers Ubuntu grub, which causes Ubuntu to fail to start.

(1) Regardless of the method used, the first need to determine the original installation of Ubuntu/partition, and originally installed Ubuntu/boot partition, assuming SDA7 root sda8 (if there are multiple disks, there may be sdb ...) )

(2) Start Ubuntu with Ubuntu live CD and start the terminal:

Sudo-i

Mount/dev/sda7/mnt

Mount/dev/sda8/mnt/boot (if there is no/boot separate partition, this step skips)

Grub-install--ROOT-DIRECTORY=/MNT/DEV/SDA

Then you should see ... with no error hint, meaning the installation was successful

(3) Restart, hard drive system, you can see the grub of Ubuntu.

Fix Ubuntu grub after reinstalling Windows on a Windows and Ubuntu-installed machine

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.