首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows是否等同于efibootmgr?

Windows是否等同于efibootmgr?
EN

Stack Overflow用户
提问于 2017-07-05 15:06:37
回答 2查看 10.8K关注 0票数 5

Windows一直覆盖UEFI启动顺序,即使我在Ubuntu中使用efibootmgr进行了更改。然而,BootNext选项没有被覆盖,也就是说,我可以将BootNext设置为Ubuntu,它会在重启时引导到Ubuntu。因此,我编写了以下脚本,以便在每次引导到Ubuntu时运行:

代码语言:javascript
复制
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入口):

代码语言:javascript
复制
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
EN

回答 2

Stack Overflow用户

发布于 2019-09-10 08:38:52

在视窗系统中,你可以使用"bcdedit /enum firmware“来列出所有固件应用程序,然后使用"bcdedit /set {fwbootmgr} bootsequence {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}”来设置BootNext选项。

票数 5
EN

Stack Overflow用户

发布于 2017-10-10 10:03:56

您不需要创建类似{9b4692db-d6e1-11e6-8040-f733056555ec}的UBuntu加载器吗?

基本上,ubuntu节点应该从启动管理器更改为启动加载器应用程序。然后在EFI\ boot \bootx64.efi中创建一个引导管理器。

为引导管理器创建{bootmgr}节点。设置它的显示顺序以包含上面的两个guids。然后将{bootmgr}的默认值设置为ubuntu guid。这应该会使ubuntu项目在重启后变得粘滞。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44919190

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档