目前,我正试图在我的计算机上安装arch linux和windows 10,它是UEFI,格式化为GPT分区表。但是,在使用以下命令安装grub时:
grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=grub这会返回
Installing for x86_64-efi platform.
grub-install: error: esp doesn't look like an EFI partition.
.在此之前,我已经在我的硬盘上创建了3个分区,旁边还有两个窗口分区。我使用cgdisk来创建一个2gb的EFI系统分区、一个4gb的Linux交换分区、一个91 2gb的Linux文件系统分区。
我输入了命令
mkfs.fat -F32 /dev/sda3 (the efi partition)
mount /dev/sda5 /mnt (the linux filesystem)
mount /dev/sda3 /boot (to mount the efi partition in /boot as reccomended)然后安装grub和efibootmgr,我得到上面列出的错误。
任何帮助都是非常感谢的!
发布于 2016-08-22 20:17:59
问题在这一部分:--efi-directory=esp。
你不应该把“esp”,因为它只是一个位置持有人的目录,持有EFI。
假设EFI包含在/boot中。在本例中,行的这一部分内容如下:
--efi-directory=/boothttps://unix.stackexchange.com/questions/292503
复制相似问题