Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EFI Partition Question (Solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
paxsars
n00b
n00b


Joined: 02 Mar 2018
Posts: 8

PostPosted: Sat Mar 03, 2018 12:27 am    Post subject: EFI Partition Question (Solved) Reply with quote

I am pretty confused about what file system type I should make my efi partition. The AMD64 Handbook uses EXT2, Google says FAT32. My goal is to boot by selecting the hard drive I want from the bios menu at startup (no grub or any other boot manager.)

This is the setup I ended up going with:
Code:

Disk /dev/sdb:
Partition Table: gpt
 
Number   Start      End        Size     File system  Name     Flags
 1       1.00MiB    3.00MiB    2.00MiB   ext4         grub    bios_grub
 2       3.00MiB    131MiB     128MiB    fat32         boot    boot,efi
 3       131MiB     8,323MiB    8GB                   swap
 4       8,323MiB     -1      ~230GB     ext4         rootfs


I am at the point of editing the fstab file and generating the kernel. I had a melt down and don't want to go passed this point until I know my efi partition is correct.

fstab:
Code:

/dev/sdb2   /boot   vfat   defaults   0 2


Last but no least, does the genkernel have all the default settings I will need to boot the system as I want?


System Specs:

  • ASUS Sabertooth Z77
  • Intel Core i7‑3770K
  • 2x SAMSUNG 830 Series 2.5" 256GB SATA III MLC
  • 16GB Ram
  • Geforce GTX 680


Last edited by paxsars on Thu Mar 08, 2018 8:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Sat Mar 03, 2018 1:27 am    Post subject: Reply with quote

It must be FAT32/FAT16 (ESP) if you're not using grub because EFI doesn't understand EXT2.

Grub does.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
paxsars
n00b
n00b


Joined: 02 Mar 2018
Posts: 8

PostPosted: Sat Mar 03, 2018 1:31 am    Post subject: Reply with quote

Thank you for the confirmation. :)
Back to top
View user's profile Send private message
paxsars
n00b
n00b


Joined: 02 Mar 2018
Posts: 8

PostPosted: Sat Mar 03, 2018 2:17 am    Post subject: Reply with quote

I am still a bit confused actually.

Assuming I chose to use grub2, it would be installed onto the small 2mb partition on sdx1, the files in that partition would then point to sdx2 which is mounted at /gentoo/boot to start up the system?

With this method when i boot into my bios instead of selecting the hard drive that gentoo is installed on, there would be a new grub(hd icon) i could select to start the whole process?

For trying to install without grub I am uncertain if the bios would even recognize gentoo due to the EFI partition possibly being in a location it does not recognize. Would the efi partition need to reside at "/EFI/boot" like I see for windows?

Sorry if I am not making sense I am just trying to figure this out. :\
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sat Mar 03, 2018 2:47 am    Post subject: Reply with quote

FAT32 100MB partition for the EFI System Partition (ESP) should be adequate
Some, older as far as I know older motherboards needed 512 MIB. efi
If you use grub2 with efi, grub installs on the ESP and the unformatted 2 MB first partition is extraneous.
The easiest setup to or maintain is rEFInd as boot manager and an EFI stub kernel as boot loader.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Sat Mar 03, 2018 2:55 am    Post subject: Reply with quote

There are so many ways that you can configure grub with EFI, which makes things more confusing. Only think you need to keep in mind is that grub would be a secondary bootloader that can read more than just FAT16/FAT32. I mostly install grub on the ESP directly, which sort of defeats the need for reading ext2fs as it's still using FAT, alas it still offers command line editing and preboot kernel image selection where straight EFI menu, you're stuck with what you set with efibootmgr. It's up to you what you want to mount as /boot, though for re-emerging grub you should have whatever partition you have grub installed mounted at /boot.

When setting up a EFI boot menu, it needs to be on a drive and filesystem that EFI understands from boot (FS1:\any\directory\xyz.efi). As long as those are met and path hardcoded, it will be able to find it. It will also find the default boot image (usually FSx:\boot\efi\boot${ARCH}.efi) Whether that EFI image is the kernel or grub.efi doesn't matter, it's the same problem.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2616

PostPosted: Sat Mar 03, 2018 6:38 am    Post subject: Re: EFI Partition Question Reply with quote

paxsars wrote:
I am at the point of editing the fstab file and generating the kernel. I had a melt down and don't want to go passed this point until I know my efi partition is correct.

fstab:
Code:

/dev/sdb2   /boot   vfat   defaults   0 2

For comparison: https://wiki.gentoo.org/wiki/EFI_System_Partition#Mount_point
Back to top
View user's profile Send private message
paxsars
n00b
n00b


Joined: 02 Mar 2018
Posts: 8

PostPosted: Sat Mar 03, 2018 6:48 am    Post subject: (SOLVED) EFI Partition Question Reply with quote

much appreciated guys, have read the posts over a couple times and am gonna give it another go in the morning.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum