小编Nav*_*nan的帖子

Windows 相当于 efibootmgr?

即使我使用 Ubuntu 的 efibootmgr 更改它,Windows 也会继续覆盖 UEFI 引导顺序。但是 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
Run Code Online (Sandbox Code Playgroud)

这确保我在从 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 …
Run Code Online (Sandbox Code Playgroud)

terminal powershell boot cmd uefi

5
推荐指数
2
解决办法
9923
查看次数

标签 统计

boot ×1

cmd ×1

powershell ×1

terminal ×1

uefi ×1