LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2020, 10:37 AM   #1
AlwaysNoiseless
LQ Newbie
 
Registered: Nov 2020
Distribution: Gentoo
Posts: 5

Rep: Reputation: Disabled
Question Question about the 100 MB for EFI partition used for dual-booting with Windows


Hello,

When installing Arch Linux it's written that it's better to keep at least 512 MB or even 1 GB for the EFI partition, however, if you want to dual-boot with Windows, Windows automatically creates a 100 MB EFI partition and you're advised to use that 100 MB and share it with the Linux installation. My question is why suddenly 100 MB is enough for the EFI partition?
 
Old 11-13-2020, 10:57 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
From the archwiki https://wiki.archlinux.org/index.php...stem_partition
Quote:
Typical mount points

The simplest scenarios for mounting EFI system partition are:

mount ESP to /efi and use a boot loader which is capable of accessing the kernel(s) and initramfs image(s) that are stored elsewhere (typically /boot). See Arch boot process#Boot loader for more information on boot loader requirements and capabilities.
mount ESP to /boot. This is the preferred method when directly booting an EFISTUB kernel from UEFI or booting it via a boot manager like systemd-boot.

Tip:

/efi is a replacement[6] for the previously popular (and possibly still used by other Linux distributions) ESP mountpoint /boot/efi.
The /efi directory is not available by default, you will need to first create it with mkdir(1) before mounting the ESP to it.
When the efi partition is mounted at /boot for arch then yes you need the larger efi partition to house the kernels and initramfs. If you use /boot/efi or /efi as the mount point and use a bootloader such as grub, then 100Mb is large enough for the efi partition.

Last edited by colorpurple21859; 11-13-2020 at 11:00 AM.
 
2 members found this post helpful.
Old 11-13-2020, 11:41 AM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by AlwaysNoiseless View Post
Hello,

When installing Arch Linux it's written that it's better to keep at least 512 MB or even 1 GB for the EFI partition, however, if you want to dual-boot with Windows, Windows automatically creates a 100 MB EFI partition and you're advised to use that 100 MB and share it with the Linux installation. My question is why suddenly 100 MB is enough for the EFI partition?
My windows 10 system used 250MB for the efi partition. I recently saw some discussion about size and the formatting of the efi partition as either fat16 or fat32, and there is a distinct minimum size required for the fat32 formatting. IIRC it was about 200MB. Smaller than that minimum partition size forced it to be formatted as fat16.

I have had no problems using the windows default 250MB size for my /boot/efi partition since the system images are in /boot which is an ext4 file system that is 500MB in size. My system, with 3 available linux kernels and the windows boot loader uses about 18% of 250MB in /boot/efi and about half of the 500M /boot.

Last edited by computersavvy; 11-13-2020 at 11:46 AM.
 
1 members found this post helpful.
Old 11-13-2020, 01:06 PM   #4
AlwaysNoiseless
LQ Newbie
 
Registered: Nov 2020
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
From the archwiki https://wiki.archlinux.org/index.php...stem_partition

When the efi partition is mounted at /boot for arch then yes you need the larger efi partition to house the kernels and initramfs. If you use /boot/efi or /efi as the mount point and use a bootloader such as grub, then 100Mb is large enough for the efi partition.
Thank you. So if we create only a root partition (/mnt) and having a 100MB EFI partition, should we mount it as (/mnt/boot/efi) and it would be enough?
 
Old 11-13-2020, 02:39 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Yes you can do it that way. You will have to create the /boot/efi partition, and add the mount point to your fstab if you want it to mount at startup
 
1 members found this post helpful.
Old 11-13-2020, 03:34 PM   #6
AlwaysNoiseless
LQ Newbie
 
Registered: Nov 2020
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Yes you can do it that way. You will have to create the /boot/efi partition, and add the mount point to your fstab if you want it to mount at startup
I assume you mean there should be a separate partition to be mounted as /mnt/boot, and the 100MB EFI partition should be mounted as /mnt/boot/efi, and I should create another partition for the root directory or /mnt, right?
 
Old 11-13-2020, 05:30 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,354

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
if your not using lvm or encryption, you don't need /boot on a separate partition, mount the root partition at /mnt and efi partition at /mnt/boot/efi.

Last edited by colorpurple21859; 11-13-2020 at 07:53 PM.
 
1 members found this post helpful.
Old 11-15-2020, 01:39 AM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
I have 8 or more of these operating systems installed on each sole 120G or 256G or 512G SSD or NVME in 4 PCs:
  1. openSUSE Tumbleweed
  2. openSUSE 15.2
  3. openSUSE 15.1
  4. openSUSE 15.0
  5. Debian Bullseye
  6. Debian Buster
  7. *buntu 20.04
  8. *buntu 18.04
  9. Fedora 34 (Rawhide)
  10. Fedora 33
  11. Fedora 32
  12. Mint 20
  13. Mint 19.3
The ESP partition on each is 320M, and currently is 4% in use (11236 1024 1K-blocks) on the one currently booted. 100M is more than overabundant for an ESP mounted to /boot/efi/ on these, and the vast majority of other Linux distros.
 
2 members found this post helpful.
Old 11-15-2020, 09:56 AM   #9
AlwaysNoiseless
LQ Newbie
 
Registered: Nov 2020
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
if your not using lvm or encryption, you don't need /boot on a separate partition, mount the root partition at /mnt and efi partition at /mnt/boot/efi.
I'm going to use encryption, but not sure about LVM. Frankly, I don't know about LVM and I'm a bit lazy at the moment to read all the documents about LVM. Is LVM going to make things better or easier? I'd appreciate your comment on LVM.

One thing that is unclear for me is that when I'm not using LVM/Encryption, thus not having a boot partition, where would the /boot directory be located at? In the root directory?

I have 11 GB of RAM, is it necessary or recommended having a SWAP partition or file? Because some people say yes, some say no.

And the final question is that how much space should I give to the root and boot partitions if I want to use a separate partition to share files across Linux and Windows? I'm probably going to make a big partition for file sharing and encrypt it with VeraCrypt. Is it possible or recommended mounting it as the home directory inside Linux? It's a bit confusing for me.
 
Old 11-15-2020, 11:19 AM   #10
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by AlwaysNoiseless View Post
I'm going to use encryption, but not sure about LVM. Frankly, I don't know about LVM and I'm a bit lazy at the moment to read all the documents about LVM. Is LVM going to make things better or easier? I'd appreciate your comment on LVM.

One thing that is unclear for me is that when I'm not using LVM/Encryption, thus not having a boot partition, where would the /boot directory be located at? In the root directory?

I have 11 GB of RAM, is it necessary or recommended having a SWAP partition or file? Because some people say yes, some say no.

And the final question is that how much space should I give to the root and boot partitions if I want to use a separate partition to share files across Linux and Windows? I'm probably going to make a big partition for file sharing and encrypt it with VeraCrypt. Is it possible or recommended mounting it as the home directory inside Linux? It's a bit confusing for me.
The root filesystem is "/". Thus /boot is by definition a subdirectory of /, whether mounted as a separate partition or contained within the / volume. When using either LVM or encryption for the system /boot should be a separate partition that is neither encrypted nor LVM.

The separate data partition would have no affect on the required size for / or /boot since it could have no affect on the linux system operation but would be only a data storage area. /home is also recommended to be a separate partition or LVM volume so that if a reinstall is required your personal data is unaffected.

If you do not have a swap partition (regardless of the size of your ram) the system will be unable to either suspend or hibernate. I usually have a swap equal to the size of my ram, even though the system with 16G ram almost never uses swap.

In sharing a directory with Windows, remember that windows can only access vfat or ntfs filesystems and as such has none of the ownership or extended attributes of linux. When looking at those files within linux all will have rwxrwxrwx permissions as well. I think that allowing bidirectional access and using it as /home or /home/username would be difficult if not impossible. It could possibly be mounted as a subdirectory of /home/username but will loose a lot of protections and simplicity that you have by default within linux. Essentially you will give up all the built-in security attributes of linux for the sole protection of the encryption. I see lots of comments by individuals about using encryption on their linux system but seldom see comments about wanting to routinely mount and share a windows volume. Not that it is impossible, but security is different.

With that said, to be able to use it for data only and have it encrypted would require a separate partition that is accessible to windows (possibly as drive D) so it could be used by both windows and linux.


You can easily access the files within your home directory on Windows by simply mounting that partition on linux with the file manager and navigating to the users home directory.


I like LVM for the flexibility of volume sizes. I have a 6TB raid array that I am using for /home and I presently have /home as a logical volume with 3TB allocated and about 2.5TB used (My entire media library is there, and grows constantly.) When I need more I simply expand the LV and gain the needed space. If I run out of space on the Volume Group physical space it is simple to add additional then adjust LV sizes as needed. With physical partitions it is much harder to manage. VGs can span multiple physical drives, arrays, etc., as can LVs. With physical partitions you are limited to exactly one physical device as the maximum size for any partition and filesystem.

Last edited by computersavvy; 11-15-2020 at 11:21 AM.
 
1 members found this post helpful.
  


Reply



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 Off
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
Need to understand more about booting up, bout legacy bios vs efi, about dual-booting. 842Mono Linux - Newbie 11 02-13-2017 11:13 AM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 PM.

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