Windows一直覆盖UEFI启动顺序,即使我在Ubuntu中使用efibootmgr进行了更改。然而,BootNext选项没有被覆盖,也就是说,我可以将BootNext设置为Ubuntu,它会在重启时引导到Ubuntu。因此,我编写了以下脚本,以便在每次引导到Ubuntu时运行:
efibootmgr > file.txt
CURR="$(grep "BootCurrent" file.txt | grep -Eo "[0-9]{4}")"
efibootmgr -n $CURR
rm file.txt
exit 0这确保了当我从Ubuntu重新启动时,我可以启动到grub。有没有办法在Windows上做同样的事情,这样我就可以在从Windows重新启动时启动到grub?
编辑:
运行bcdedit /v会给出(没有Ubuntu入口):
Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device partition=\Device\HarddiskVolume1
path \EFI\ubuntu\shimx64.efi
description Windows Boot Manager
locale en-US
inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default {9b4692db-d6e1-11e6-8040-f733056555ec}
resumeobject {9b4692da-d6e1-11e6-8040-f733056555ec}
displayorder {9b4692db-d6e1-11e6-8040-f733056555ec}
toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout 0
Windows Boot Loader
-------------------
identifier {9b4692db-d6e1-11e6-8040-f733056555ec}
device partition=C:
path \WINDOWS\system32\winload.efi
description Windows 10
locale en-US
inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence {9b4692dc-d6e1-11e6-8040-f733056555ec}
displaymessageoverride Recovery
recoveryenabled Yes
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \WINDOWS
resumeobject {9b4692da-d6e1-11e6-8040-f733056555ec}
nx OptIn
bootmenupolicy Standard发布于 2019-09-10 08:38:52
在视窗系统中,你可以使用"bcdedit /enum firmware“来列出所有固件应用程序,然后使用"bcdedit /set {fwbootmgr} bootsequence {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}”来设置BootNext选项。
发布于 2017-10-10 10:03:56
您不需要创建类似{9b4692db-d6e1-11e6-8040-f733056555ec}的UBuntu加载器吗?
基本上,ubuntu节点应该从启动管理器更改为启动加载器应用程序。然后在EFI\ boot \bootx64.efi中创建一个引导管理器。
为引导管理器创建{bootmgr}节点。设置它的显示顺序以包含上面的两个guids。然后将{bootmgr}的默认值设置为ubuntu guid。这应该会使ubuntu项目在重启后变得粘滞。
https://stackoverflow.com/questions/44919190
复制相似问题