Win10+ubuntu Dual system repair Ubuntu boot boot

Source: Internet
Author: User

Because Windows does not boot Linux, and each WIN10 upgrade or restore overwrites the boot boot of Linux, which prevents access to Linux, the WIN10 update has been banned. These days win10 out a little trouble, so on the heart to restore the system, OK ~_~ this belch fart, Ubuntu into not go. Inside saved a lot of information, really do not want to reload, Google for a long time finally found a solution but there are some flaws, through unremitting efforts, finally solved the ^_^

The normal situation is this:

After the update, there is no interface, and will go directly to Windows

Steps to resolve:

1: Prepare a USB flash drive, plug in the computer-> Boot-> Select try Ubuntu without install

2 : Open terminal Terminal, get root permission, execute the following command:

$ sudo su
# sudo add-apt add-apt-repository ppa:yannubuntu/boot-repair
# Apt-get Update
# Apt-get Install Boot-repair
Search for Boot-repair in dash
Point Recommand Repair
It will be executed automatically after

Wait a few minutes, and then shut down after it's over, unplug the USB drive, boot

3: After booting, will appear similar to such an interface, found a lot more unnecessary options

Just delete some stuff and execute the following command:

Su # Get root permissions
Cp/boot/grub/grub.cfg/boot/grub/grub.cfg_backup #先备份一下
CAT/BOOT/GRUB/GRUB.CFG > TMP #将内容重定向到其他文件 for easy modification
gedit TMP #或者vim TMP
# Erase all of the following

# # # 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 # #

It's just a matter of deleting the corresponding middle.

After deletion, again:

Cat tmp >/BOOT/GRUB/GRUB.CFG

Reboot

4: All the same

Win10+ubuntu Dual system repair Ubuntu boot boot

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.