fstab has no entry for efi partion is that a problem?
Hiya doing an arch install and after generating my fstab file ive noticed it has no entry for my efi partion. Do I need to add it ?
About this post
- Posted
- Archived
- Score
- 72 · 94% up
- Kind
- Text
- ID
- iduaet
50 comments
for sure, I think you forgot to mount EFI partition to
/boot/boot/efior/efi, not/boot. Though I guess it doesn't matter that much.Mounting to /boot is absolutely ok. In fact, it is recommended if using EFISTUB.
weird, since it's the first mount point mentioned on the guide
https://wiki.archlinux.org/index.php/installation_guide#Example_layouts
No, mounting ESP on
/bootis possible (unlike on Debian) and in fact even recommended on Arch.Daaamn, downvoted to oblivion for that?!
Depends.
/boot. That's going to be a real problem as your kernels and initramfs (initial enviroment that your bootloader loads which gets things set up for the kernal to take over) are stored there./boot/efior/efi, it's not going to be an issue.The first is the most likely problem. You have installed your bootloader on your root partition. The UEFI spec mandates support for FAT12, FAT16, and FAT32 formated drives with most also supporting NTFS. Unless you installed third party UEFI drivers, your UEFI cannot find your bootloader.
The easiest fix is to go back into the installation medium. Mount all partitions (you may need to delete
/mnt/bootto be able remake it as an empty folder and mount it to your EFI partition. This means you will need toarch-chrootinto/mntandpacman -S linux linux-firmwareagain andmkinitpcio -P,grub-install .... If chrooting does not work, you may need topacstrapthe kernels back onto/mnt) Now you can remake yourfstaband make sure everything is there.Deleted before we saved it.
His point is that if you mounted EFI to /boot during install then not having it on your fstab is going to be a problem., not that EFI on /boot is bad
I only have a root partition (/) in my /etc/fstab, running uefi. Followed Arch wiki install, laptop with nvme drive. No problems.
It wont cause issues as it is not required by any app after your system boots, but not having swap may make it impossible to use suspend / hibernate in some cases, and not mounting esp will result in it not being updated (so bugs like boot hole cannot be patched).
What actually doesn't get updated if I don't have /boot in my fstab? Kernel updates has been working totally fine. Should I be worried and just add /boot to fstab?
The answer is: it depends.
There are myriad ways to set up UEFI and your EFI partition.
How did you do it?
Probably not. systemd should mount it automatically.
If systemd has mounted it for you at /boot, you should see something like:
Indicating
systemd-gpt-auto-generator(8)picked it up and generated an automount unit. If that is the case and the directives in the [Mount] section are satisfactory then you don't have to do anything. If not, then go ahead and add an appropriate fstab entry.You'll want it to be mounted one way or another before updating.
Deleted before we saved it.
It isn't necessarily a problem, but it really depends how you originally had it mounted.
If it was /boot/efi, I guess it is.. fine? But, not as a very long-term thing. At least you're getting your kernel upgraded though. Either way, I really advice you to mount it
Deleted before we saved it.
Deleted before we saved it.
Deleted before we saved it.
Deleted before we saved it.
Mount it to
/boot/efior/efi, then typegenfstab -U /. Copy the entry matching your esp partition. Note: you'll need to installarch-install-scripts. This assumes you're doing this from within your system rather than the live iso.genfstabbeforearch-chroot./boot.Yes I am aware that the live iso has this tool installed. Yes I know that you can mount directly to /boot.
The method I suggested would have just been a bit faster. There's no real up or downside otherwise.