I want to install Arch Linux but don't know if I should mount the ESP on /boot
or /boot/efi
If I mount the ESP on /boot/efi
do I have to use the -p
option when making the directory with mkdir -p /mnt/boot/efi
.
Linux – In Arch Linux can I mount the EFI System Partition to /boot/efi
arch linuxlinuxpartitioning
Best Answer
For a single-OS machine,
/boot
would be easiest, because:linux
etc.) install the kernel directly under/boot
.systemd-boot
) can boot the kernel only from the EFI system partition. (GRUB can boot from anywhere.)Therefore, if your bootloader requires the kernel to be in the ESP, then either you must mount the ESP at
/boot
, or set up a script to automatically copy the kernel from/boot
to wherever the ESP is mounted.Look up what the -p option does, then think about whether you need it.
It doesn't make the directory special – the purpose of
mkdir -p
is to automatically precreate all parent directories. If you're creating/boot/efi
then it'll automatically create/boot
in case that's missing.