解决ubuntu+win10双系统循环进入启动界面导致无法启动win10的问题

文章参考了:http://www.it165.net/os/html/201508/14533.html,在此做一下备忘。

本人在win10上安装了ubuntu双系统,但是在选择启动系统的界面选择win10却一直回到这个选择界面,在网上寻找答案,需要更改一个文件:

启动ubuntu,进入/boot/grub/目录使用sudo修改grub.cfg文件

在win10相关的部分末尾加入ntldr /bootmgr

即:

menuentry 'Windows 10 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-76EA32A7EA326411' {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  76EA32A7EA326411
    else
      search --no-floppy --fs-uuid --set=root 76EA32A7EA326411
    fi
    parttool ${root} hidden-
    drivemap -s (hd0) ${root}
    chainloader +1
    ntldr /bootmgr
}

保存重启,即可顺利进入win10

发布了32 篇原创文章 · 获赞 1 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/lhf2112/article/details/76152357