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