Skip to content

Arch EFI Boot Partition Confusion

I was so excited to spend Sunday setting up my new Arch server (moving from Debian) and had some questions I wasn't sure about. Do you guys mind helping me out or explaining what I am missing:

"The following partitions (shown with a numerical suffix) are required for a chosen device: One partition for the root directory /. If UEFI is enabled, an EFI System Partition. Swap space can be set on a separate partition or a swap file."

For the EFI system partition, is this my designated /boot partition or is that something totally different? If I create /dev/sda1 to be a 512 MiB bootable partition w/ E0 (fdisk) label and I format this as Fat32: mkfs.fat -F32 /dev/sda1, do I mount this on /boot or leave it alone / unmounted?

11 points24 comments
Open on Reddit
About this post
Posted
Archived
Score
11 · 100% up
Kind
Text
ID
6feyei

Author

30
posts
91
comments
2
media
View profile

24 comments

The standard is to use the ESP as boot partition. Mount it on /boot and run bootctl install.

5 points

Not OP, but what does bootctl install do?

2 points

Installs systemd-boot on the active ESP. Then all you need to do is configure an entry for Linux and you're done. Funnily enough systemd-boot automatically detects Windows and macOS, just not Linux hehe.

8 points

OK so the partition I designate for ESP which is for my UEFI boot partition is where I actually mount /boot, correct? I am using x3 partitions on my system:

  • / (EXT4 or XFS) mounted to /mnt/
  • /boot (ESP FAT32) mounted to /mnt/boot
  • SWAP
1 points

The ESP, can either be mounted at /boot or /boot/EFI. Generally, it is mounted at boot, so, once you have formatted the partition with fat32 and set the efi label, you would just need to set the mount point as /boot. Then when you are installing the bootloader you will probably need to mention your efi directory. /boot will be the efi directory.

4 points

As others have said, your ESP is not /boot, but it can be used for /boot. What I do is mount the esp to /esp, and bind mount /esp/EFI/Archlinux to /boot. This keeps /boot clean with only the files you expect, and let's you use the kernel stub bootloader, without having to worry about keeping the files synced.

3 points

I ran through the Arch Linux installer again using the Wiki and got all the way through until "Boot Loader" category (after you set the root password) and I'm still lost. The wiki says "See Catergory : Boot Loaders" and I'm so lost. What do I elect? I want to keep this as simple as possible...

drive config: /dev/sda:
 - sda1 = 512M | EF Label Type | mount to /boot as FAT32
 - sda2 = 2G | Swap Label Type 
 - sda3 = 98G | Linux Label Type | mount to / as EXT4 

Once you follow the guide and are sent to the boot loader area, there's no real direction or instructions for someone who doesn't know what they're doing. I see a chart but it's not helpful or doesn't explain to me what I need to do. Considering my current configuration (assuming it's correct), what do I need to do? I don't plan to have a GUI on this box as it's intended for a headless server. I understand lots of people have good suggestions about putting EFI somewhere else and hard liking it but I'm just trying to follow the guide and get proper basic Arch install finished. Anyone know what I'm missing / not getting? I'm lost once I get to boot loader and don't want to reboot the system because I'm sure I've not done anything on /boot yet so I'm guessing this system wont reboot properly when I try to reboot it as-is.

2 points

Don't worry. You installed the system on /mnt and all that is left before you can go on to general recommendations is choose, install and configure a bootloader. I had the same trouble last saturday and worked it out in a couple of hours of reading /troubleshooting. I went for GRUB in the end, this is what I did:

 

Assuming you mounted your new partitions and your /boot is EFI type with 512M and has boot-flag.

If you have a Intel processor now is the time to install 'intel-ucode'.

# pacman -S intel-ucode

Install GRUB and efibootmgr.

# pacman -S grub efibootmgr

Configure GRUB

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=%whateveryouwanttoshow%


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

Check if it worked with:

 # efibootmgr -v

Your ID should come up in boot list. Example:

# Boot0000* Grub HD(1,800,32000,23532fbb-1bfa-4e46-851a-b494bfe9478c)File(\efi\grub\grub.efi)

Unmount drives, remove USB/CD and reboot.

2 points

Thanks but really trying to avoid installing / using Grub here. I would like to use systemd-boot along side w/ Arch Linux. This should be possible, no???

1 points

That table was confusing me, too. I misunderstood that by picking a certain bootloader you won't be able to use partitions in certain file systems, so I went with GRUB. But now, I think it shows on what file systems you can install the bootloader. I'm still using GRUB but would like to try systemd-boot.

1 points

There is a general confusion between boot and esp partitions. The esp partition is mandatory and generally mounted on /boot. Boot partition is not required but when boot directory is created on a separate partition and mounted on / then it becomes a boot partition.

1 points

Thanks everyone. Sat down and paced through the systemd-boot wiki section and figured out what I was doing wrong. Got everything up and running and couldn't be happier. Thank you!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.