linux efi不要boot目录,linux – 找不到efi目录:grub-install的问题

我在linux中面临grub救援问题.但是我能够使用以下教程https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/登录操作系统.

我必须升级grub才能解决问题.

我收到错误grub-install:错误:找不到EFI目录

我有如下文件系统

`sda4,sda5,sda6分别用于EFI系统,linux swap,linux文件系统.

我使用mount或其他命令的经验不多.

grub-install /dev/sda

grub-install: error: cannot find EFI directory.

谢谢

解决方法:

默认情况下运行grub-install时,假定EFI系统挂载为/ boot / efi

这取决于您安装EFI系统的分布,以及某些分发版在启动后未安装.

首先检查是否安装了/ boot / efi

mount | grep /boot/efi

如果这不起作用尝试

mount | grep /dev/sda6

看看它在其他地方是否合适.如果两者都没有:

mount /dev/sda6 /mnt

现在运行:

grub-install --efi-directory=/mnt/efi

grub-mkconfig -o /boot/grub/grub.cfg

标签:linux,grub

来源: https://codeday.me/bug/20190810/1637523.html

THE END
< <上一篇
下一篇>>