Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found

提示:本文虽然讲述的对象是 Redhat Enterprise Linux 9.5 ,其实也适用于其它RHEL衍生发行版(如Rocky Linux 9、AlmaLinux 9等),甚至是其它早期版本的RHEL及其衍生发行版也可以参考。

自己的虚拟机里安装了一个 Redhat Enterprise Linux 9.5(从9.3升级而来),用于测试。最近发现这个系统无法启动,出现如下提示:

Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found插图

如上图所述,系统启动的时候,提示:

Failed to open \EFI\redhat\grubx64.efi – Not Found

Failed to load image :Not Found

start _image() returned Not Found,Falling back to default loader

出现这种情况,一般是引导文件grubx64.efi被删除,一般情况下,这个文件在系统的另一个地方会有备份,幸运的话,可以把这个文件还原过去,让系统恢复正常。下面笔者就介绍一下具体的修复过程:

一、使用安装光盘、镜像或U盘等工具,启动电脑/虚拟机,启动后选择“Troubleshooting –>”:

Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found插图1

二、选择“Rescue a Red Hat Enterprise Linux system”,进入修复模式;

Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found插图2

三、稍等片刻,出现如下画面的时候,输入“1”,并按回车:

Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found插图3

四、继续稍等片刻,出现如下画面后,输入“chroot /mnt/sysroot”后回车,进入到bash:

Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found插图4

五、进入到bash后,可以尝试寻找Redhat Enterprise Linux 备份的efi文件,笔者本次所遇到的情况,备份的grubx64.efi文件在目录/mnt/sysroot/boot/efi/EFI/centos 下面,如下图:

Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found插图5

六、查看/mnt/sysroot/boot/efi/EFI/redhat 目录下面是否存在grubx64.efi文件(笔者这里是不存在,如下图):

Redhat Enterprise Linux 无法启动,提示:Failed to open \EFI\redhat\grubx64.efi – Not Found插图6

七、把/mnt/sysroot/boot/efi/EFI/centos/grubx64.efi 复制到/mnt/sysroot/boot/efi/EFI/redhat 下面,即执行:“cp /mnt/sysroot/boot/efi/EFI/centos/grubx64.efi /mnt/sysroot/boot/efi/EFI/redhat”,成功复制后执行reboot命令重启电脑。

至此,修复过程结束。

如需转载本站的文章,请先通过电子邮件的方式联系站长,站长确认后方可转载,并需要注明出处。

为您推荐