前言

双系统的话 更新 或者 bios 升级等

都概率丢失 grub 引导

路径地址等 以实际为准

以下 cmd 以管理员身份运行

解决方案

grub 还存在 efi 分区时

  • 查看当前默认引导

C:\Windows\system32>bcdedit.exe

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Windows 启动管理器
--------------------
标识符 {bootmgr}
device partition=\Device\HarddiskVolume1
path \EFI\Microsoft\Boot\bootmgfw.efi
description Windows Boot Manager
locale zh-CN
inherit {globalsettings}
default {current}
resumeobject {0000000-0000-0000-0000-00000000000}
displayorder {current}
toolsdisplayorder {memdiag}
timeout 30

Windows 启动加载器
-------------------
标识符 {current}
device partition=C:
path \Windows\system32\winload.efi
description Windows 11
locale zh-CN
inherit {bootloadersettings}
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \Windows
resumeobject {0000000-0000-0000-0000-00000000000}
nx OptIn
bootmenupolicy Standard
  • 更改当前 win11 引导为 grub

C:\Windows\system32>bcdedit.exe /set {bootmgr} path \EFI\Arch\grubx64.efi

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Windows 启动管理器
--------------------
标识符 {bootmgr}
device partition=\Device\HarddiskVolume1
path \EFI\Arch\grubx64.efi
description Windows Boot Manager
locale zh-CN
inherit {globalsettings}
default {current}
resumeobject {0000000-0000-0000-0000-00000000000}
displayorder {current}
toolsdisplayorder {memdiag}
timeout 30

Windows 启动加载器
-------------------
标识符 {current}
device partition=C:
path \Windows\system32\winload.efi
description Windows 11
locale zh-CN
inherit {bootloadersettings}
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \Windows
resumeobject {0000000-0000-0000-0000-00000000000}
nx OptIn
bootmenupolicy Standard

重启后 grub 也就出来了
这时候 其实也可以正常用的
不过有时候 grub 配置更新挂掉了的话 win 引导也会有问题

  • 重启到 linux 修复引导
1
2
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch
update-grub
  • 进入 bios 修改默认启动顺序

  • 回到 win11 删除gurb引导

C:\Windows\system32>bcdedit.exe /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi

  • 修改完成

采用 u盘 启动 linux 重建引导

  • 待完善

参考地址