I'm currently trying to install arch linux alongside windows 10 on my computer which is UEFI and formatted as a GPT partition table. However, when installing grub using the command:
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. .
Before doing this I had created 3 partitions on my hard-drive, alongside two windows partitions. I used cgdisk to create a 2gb EFI system partition, a 4gb Linux Swap partition, a 91gb Linux filesystem partition.
I entered the commands
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)
Then installing grub and efibootmgr, I get the errors listed above.
Any help is greatly appreciated!