LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2021, 06:06 PM   #1
MirceaKitsune
Member
 
Registered: May 2009
Distribution: Manjaro
Posts: 156

Rep: Reputation: 1
EFI System Partition: Using it as /boot versus /boot/efi


This is a more generic Linux question. As I have an EFI motherboard with Secure Boot I need an ESP partition: I have one mounted as /boot/efi and it works fine on this installation. But I was wondering; Is there any disadvantage to making the entirety of /boot my ESP? That way I can make better use of the 4GB I assign to it, having it store grub and the kernel images too... they're all loaded temporarily as part of the boot process so it makes sense to use this one little partition for everything! As long as it's fat32 there shouldn't be anything breaking the configuration right? Especially on a machine where I don't plan to dual-boot, only one OS installed on the main drive so there would be no kernel image conflicts.

Just in case though I wanted to ask for opinions: Does anyone else place the entirety of /boot on the EFI partition instead of just /boot/efi? Does it work well for you, do you find it more optimal this way? As a bonus question; Is exfat (fat64) a newer and better partition format to use, or is it still a good idea to stick to fat32 exclusively for the ESP else the BIOS might complain?

Last edited by MirceaKitsune; 04-05-2021 at 06:08 PM.
 
Old 04-05-2021, 06:16 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
UEFI firmware doesn't care where you mount it if at all. I mount my ESP partition to /boot and there is no special mount for /boot/efi. I keep my EFI stub kernels on ESP partition.

Code:
 ~ # file /boot/EFI/Boot/*
/boot/EFI/Boot/gentoo.efi:    Linux kernel x86 boot executable bzImage, version 5.11.6-gentoo (root@zeus) #1 SMP Wed Mar 17 12:09:13 CDT 2021, RO-rootFS, swap_dev 0x4, Normal VGA
/boot/EFI/Boot/oldgentoo.efi: Linux kernel x86 boot executable bzImage, version 5.10.11-gentoo (root@zeus) #1 SMP Thu Jan 28 19:29:32 CST 2021, RO-rootFS, swap_dev 0x4, Normal VGA
As you can see I currently have two kernels there, older one serves as backup. I can choose it when I hit F11 for firmware boot menu after powering up.
 
Old 04-05-2021, 07:01 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
You can't use symlinks on a fat partition, there will be problems if your distro uses symlinks in /boot.

Last edited by colorpurple21859; 04-05-2021 at 07:02 PM.
 
Old 04-06-2021, 10:22 AM   #4
MirceaKitsune
Member
 
Registered: May 2009
Distribution: Manjaro
Posts: 156

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by colorpurple21859 View Post
You can't use symlinks on a fat partition, there will be problems if your distro uses symlinks in /boot.
That's a good observation: Symlinks are indeed be impossible to use on FAT. This seems to pose a potential issue on some distributions but not others; openSUSE for example does symlink the kernel and initrd files across /boot, however Arch / Manjaro does not and the /boot directory is free of any symbolic links.
 
Old 04-06-2021, 11:07 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Another problem that some people have run into is that the UEFI software requires a fairly small ESP; I've forgotten the exact size but there is a limit to what the program can read, rather like the limit old BIOS's used to have. Many people like to keep old kernels in /boot just in case, not to mention kernel config files and system maps and stuff belonging to GRUB, and this could lead to overcrowding.

Last edited by hazel; 04-06-2021 at 11:08 AM.
 
  


Reply

Tags
boot, efi, grub, grub 2, kernel



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
resize efi question [/boot/efi] with boot flag gparted mtdew3q Fedora 4 03-19-2017 10:02 PM
[SOLVED] Can't find /boot/efi/EFI/Slackware/vmlinuz kernel configuration ironQiu Slackware 4 02-09-2015 06:21 AM
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration