How to mount UEFI partition, when you do a manual Arch Linux installation and/or if you have followed the Learn Linux TV’s Arch Linux installation guide.
You probably noticed that on the tutorial the fstab file is auto generated with the following command:
genfstab -U -p /mnt >> /mnt/etc/fstab
So here, it’s highly possible that the UEFI partition doesn’t get mounted automatically. You probably have that UEFI partition already, if you followed the tutorial, but the problem is that it isn’t getting mounted.
Let’s fix that
First let’s identify the EFI partition with the following command:
lsblk -f
For the result, you are looking something that looks like this:
nvme0n1p1 vfat EFI ...
Now that we have that, let’s get the UUID of this partition with the following command:
sudo blkid /dev/nvme0n1p1
Once again for the result, you’ll get something like this:
/dev/nvme0n1p1: UUID="XXXX-XXXX" TYPE="vfat" PARTLABEL="EFI System Partition"
Open up the fstab file with the following command:
sudo nano /etc/fstab
Add this line to the bottom of the file:
UUID=XXXX-XXXX /boot/efi vfat umask=0077 0 2
Notice
- Create or rename the
/boot/efifolder. It’s a case sensitive, so it has to be exact same with thefstab. - Remember to change the
UUIDwith your ownUUID. - Reboot.