Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Default partitioning scheme
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
apurkrt
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2011
Posts: 116
Location: Czechia, Europe

PostPosted: Wed Jan 15, 2020 12:17 pm    Post subject: Default partitioning scheme Reply with quote

Hello!
https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Default_partitioning_scheme

I would just like to share, that I think the suggested scheme is not a good default.

- It suggests creating the BIOS boot partition /dev/sda1. But that is needed only when using GPT partition table on BIOS machines.
- It then recommends using /dev/sda2 as a shared partition both for EFI and /boot, in turn proposes using FAT filesystem on a /boot partition, which does not feels ok (there can't be links for example)

On efi machines, I use the following layout, which I find better:
- /dev/sda1 - EFI partition, 127MB - vfat formatted - mounted as /boot/efi
- /dev/sda2 - linux boot partition - 128MB - ext4 - mounted as /boot
- /dev/sda3 - root partition
- I do not use swap (but I am not against it being included in default partitioning)

On my setup, grub is installed simply by
Code:
grub-install
(given both "/boot" and "/boot/efi" are mounted), not by the long
Code:
grub-install --target=x86_64-efi --efi-directory=/boot


What do you think?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6504

PostPosted: Wed Jan 15, 2020 1:32 pm    Post subject: Reply with quote

If you have an EFI boot partition there's no real reason to have another for /boot - just put that in the rootfs. The point of the separate partition is to have something the pre-kernel bootloader can read.
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1027
Location: Romania

PostPosted: Wed Jan 15, 2020 3:39 pm    Post subject: Reply with quote

In my opinion you only need 2. An efi, and a linux. And personally I like to keep my boot loader on my linux partition, not on my efi partition, but how Ant suggested it, works too.

So in my case, partition 2 is /, and partition 1 is /boot/efi. Yes grub works out of the box with this configuration. GPT ofc.
Back to top
View user's profile Send private message
nvaert1986
n00b
n00b


Joined: 05 May 2019
Posts: 56

PostPosted: Thu Jan 16, 2020 2:02 pm    Post subject: Reply with quote

I'd go with /boot as FAT32 which is at least 128MB in size. That's what I've always done and there's nothing more you need.
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