一个月以来,我一直在尝试在 Asus Tuf Dash F15 笔记本电脑上安装 Nvidia 驱动程序。https://forums.developer.nvidia.com/t/problems-installing-driver-on-laptop-with-an-intel-igpu-and-nvidia-card-with-optimus-technology/185030指示我询问 Ubuntu 如何永久禁用安全启动。
似乎每当我重新启动笔记本电脑时,SHIMX64 启动文件都会替换我手动配置的 grubx64.efi 文件。他们认为这是因为在安装 nvidia 驱动程序后我的电脑无法启动。尽管 BIOS 中显示安全启动和快速启动已被禁用。
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0002* ubuntu HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
那么如果我efibootmgr -c -d /dev/nvme0n1 -p 1 -l \\EFI\\ubuntu\\grubx64.efi -L "UBUNTU"
得到
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0002,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0001* UBUNTU HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)
Boot0002* ubuntu HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
所以然后我efibootmgr -b 0002 -B
得到
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0001* UBUNTU HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)
这一切都很好,直到我reboot
,然后我们回到
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000
Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...3................
Boot0002* ubuntu HD(1,GPT,8d14fed6-6fff-4e5b-8c4e-330283fb6ca0,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
该怎么办?请帮忙。谢谢。