Win10 + ubuntu dual-system repair ubuntu boot guide, win10ubuntu

Source: Internet
Author: User

Win10 + ubuntu dual-system repair ubuntu boot guide, win10ubuntu

Because windows cannot boot linux, and each win10 upgrade or restoration will overwrite the boot guide of linux, resulting in a failure to access linux, so win10 update is disabled all the time. in the past few days, win10 has encountered some minor issues, so I am so worried about restoring the system. Okay ~ _~ This is a fart, ubuntu cannot enter. I have saved a lot of information and I really don't want to reinstall it. google has finally found a solution for a long time, but there are also some flaws. After unremitting efforts, I finally solved it. ^_^

The normal situation is as follows:

This interface is unavailable after the update.

Solution:

1: Prepare a USB flash drive and insert it to your computer. Choose Try ubuntu without install.

 

 

2: Open Terminal to obtain the root permission. Run the following command:

$ Sudo su
# Sudo add-apt-repository ppa: yannubuntu/boot-repair
# Apt-get update
# Apt-get install boot-repair
Search for boot-repair in dash
Click recommand repair.
It will be automatically executed later

 

Wait for a few minutes. Wait until it finishes shutdown, unplug the USB flash drive, and start the instance.

3: After the instance is started, an interface similar to this is displayed, and many unnecessary options are added.

 

Just delete some stuff and execute the following command:

Su # obtain root permissions
Cp/boot/grub. cfg/boot/grub. cmd_backup # back up
Cat/boot/grub. cfg> tmp # redirect content to other files for ease of Modification
Gedit tmp # Or vim tmp
# Delete all the following content

### BEGIN/etc/grub. d/25_custom ###

Menuentry "Windows UEFI bootmgfw. efi "{
Search -- fs-uuid -- no-floppy -- set = root 84F5-6727
Chainloader ($ {root})/EFI/Microsoft/Boot/bootmgfw. efi
}

Menuentry "Windows Boot UEFI loader "{
Search -- fs-uuid -- no-floppy -- set = root 84F5-6727
Chainloader ($ {root})/EFI/Boot/bkpbootx64.efi
}

...

Menuentry "Windows Boot UEFI recovery bkpbootx64.efi "{
Search -- fs-uuid -- no-floppy -- set = root 5686-D913
Chainloader ($ {root})/efi/Boot/bkpbootx64.efi
}
### END/etc/grub. d/25_custom ###

 In fact, it is to delete the corresponding items in the middle.

Delete the file and try again:

Cat tmp>/boot/grub. cfg

Reboot

4: Everything goes first

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.