Overwrite Ubuntu boot recovery after reloading windows

Source: Internet
Author: User

I think a lot of people have tried to install a dual system, the Windows system is always re-installed in the MBR rewrite, after reloading windows can not find the Ubuntu boot.

There are many tutorials on the internet, but I think some of the internet is a little vague. I write in the form of a combination of graphics and text, hoping to some novice some help.

Recovery boot is also very simple, find an Ubuntu installation disk, start from the installation disk, try Ubuntu, open the terminal.

1. Run the command:sudo fdisk-l (here is not the number 1, is the letter L), find the root directory of Ubuntu.

Maybe you're not showing me the same as I am this is the picture under the real Ubuntu system, and I'm here to mount the situation like this

/ /dev/sda11
/boot /dev/sda8
/tmp /dev/sda10
Swap /devsda9

2. Run the command: sudo mkdir/media/tmpdirCreate a temporary folder, and then enter the command: sudo mount/dev/sda11/media/tmpdirMount the system.

3. Next is the most important step, enter the command: sudo grub-install--root-directory=/media/tmpdir/dev/sda (note that this is SDA, do not write sda11 later), if the display no errorreport, it means that the basic success.

4. Next, reboot the system. The guidance is now as usual.

but don't go into WindowsFirst, go to Ubuntu, enter the command in the terminal:sudo update-grub2 update grub After the successful completion, this time can be restarted into any system.


Reference: Click to open link



Overwrite Ubuntu boot recovery after reloading windows

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.