![软件更新后 UEFI 启动出现问题](https://linux22.com/image/992449/%E8%BD%AF%E4%BB%B6%E6%9B%B4%E6%96%B0%E5%90%8E%20UEFI%20%E5%90%AF%E5%8A%A8%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
我有一台 Acer Extensa 2511,我在上面安装了 Ubuntu MATE 16.04(未安装 Windows)今天,在软件更新(需要重新启动)后,重新启动失败。
我运行了启动修复程序。
此后,在尝试并更改设置中的启动设置后(例如,我将 grubx64.efi 或 shimx64.efi 指示为可靠文件),现在的情况是:
启动时出现蓝色窗口,提示“没有可启动设备”
但是,如果我点击Enter,系统将进入“启动菜单”:
在那里,如果我Enter再次点击“未知硬盘”……我终于得到了 GRUB 菜单,它似乎可以可靠地启动 Ubuntu
现在:Grub 似乎工作正常,但是系统没有直接转到适当的 EFI 文件?!?
系统似乎认为该磁盘无法启动,但事实上可以!?
我希望这台电脑直接进入 GRUB 菜单,而不必点击Enter两次
你能帮助我吗?
我补充说,我有两个独立的分区:/boot/efi
on /dev/sda1
(fat32) 和/boot
on/dev/sda2
...实际上我运行了三次启动修复,第一次之后的报告是: 这里 目前的情况(我再次运行它,仅要求写报告) 这里这是第二份报告
以下是分区 /boot/efi 的目录列表
$ ls -l /boot/efi/
total 16
drwxr-xr-x 2 root root 4096 lug 16 19:35 Boot
drwxr-xr-x 5 root root 4096 lug 16 18:06 EFI
drwxr-xr-x 3 root root 4096 lug 16 18:06 Microsoft
drwxr-xr-x 2 root root 4096 lug 16 18:06 ubuntu
$ ls -l /boot/efi/Boot/
total 1260
-rwxr-xr-x 1 root root 1289424 lug 16 19:35 bootx64.efi
-rwxr-xr-x 1 root root 0 lug 16 19:35 bootx64.efi.grb
$ ls -l /boot/efi/Microsoft/
total 4
drwxr-xr-x 2 root root 4096 lug 16 19:35 Boot
$ ls -l /boot/efi/Microsoft/Boot/
total 2520
-rwxr-xr-x 1 root root 1289424 lug 16 19:35 bootmgfw.efi
-rwxr-xr-x 1 root root 0 lug 16 19:35 bootmgfw.efi.grb
-rwxr-xr-x 1 root root 1289424 lug 16 19:35 bootx64.efi
-rwxr-xr-x 1 root root 0 lug 16 19:35 bootx64.efi.grb
$ ls -l /boot/efi/ubuntu/
total 1260
-rwxr-xr-x 1 root root 1289424 lug 16 18:06 shimx64.efi
$ ls -l /boot/efi/EFI
total 12
drwxr-xr-x 2 root root 4096 lug 16 19:35 Boot
drwxr-xr-x 3 root root 4096 lug 16 18:06 Microsoft
drwxr-xr-x 3 root root 4096 giu 23 11:09 ubuntu
$ ls -l /boot/efi/EFI/Boot/
total 1260
-rwxr-xr-x 1 root root 1289424 lug 16 19:35 bootx64.efi
-rwxr-xr-x 1 root root 0 lug 16 19:35 bootx64.efi.grb
$ ls -l /boot/efi/EFI/Microsoft/
total 4
drwxr-xr-x 2 root root 4096 lug 16 19:35 Boot
$ ls -l /boot/efi/EFI/Microsoft/Boot/
totale 2520
-rwxr-xr-x 1 root root 1289424 lug 16 19:35 bootmgfw.efi
-rwxr-xr-x 1 root root 0 lug 16 19:35 bootmgfw.efi.grb
-rwxr-xr-x 1 root root 1289424 lug 16 19:35 bootx64.efi
-rwxr-xr-x 1 root root 0 lug 16 19:35 bootx64.efi.grb
$ ls -l /boot/efi/EFI/ubuntu/
total 3620
drwxr-xr-x 2 root root 4096 giu 23 11:08 fw
-rwxr-xr-x 1 root root 64352 giu 23 11:08 fwupx64.efi
-rwxr-xr-x 1 root root 121 lug 16 19:35 grub.cfg
-rwxr-xr-x 1 root root 1067896 lug 16 19:35 grubx64.efi
-rwxr-xr-x 1 root root 1271672 lug 16 19:35 MokManager.efi
-rwxr-xr-x 1 root root 1289424 lug 16 19:35 shimx64.efi
$ ls -l /boot/efi/EFI/ubuntu/fw/
total 0
答案1
我找到了一个适合我的解决方案:
我刚刚将 grubx64.efi 复制到 /boot/efi/ 中(来自 /boot/efi/EFI/ubuntu/ 子目录),这样现在我就有了文件 /boot/efi/grubx64.efi
然后我在设置中将其指示为可靠文件。
现在看来它起作用了。
感谢 Zanna 的编辑,也感谢 ubfan1 的现成答案。