Share your partition scheme!
How did you partition your disk before installing Linux?
Do you regret how you set it up?
I'm looking for some real users experiences about this and I'm trying to find the best approach for my setup.
Thank you for sharing!
Onno (VK6FLAB)
in reply to sparkle_matrix_x0x • • •I've been using Linux for over a quarter of a century. Initially I spent hours attempting to come up with the best partitioning scheme but these days I pick LVM and use the defaults.
If I run out of space, I add a drive (or grow the virtual one) and grow the filesystem into the extra space.
Sometimes I need temporary space and use sshfs to mount a directory from another machine.
In other words, today you have infinite options to adjust according to need, partition schemes are not nearly as important.
Even swap space can live as a file on a normal partition if required.
That said. If you have specific use cases, check what's required. Specifically because different uses need different attributes, it pays to check.
cerement
in reply to sparkle_matrix_x0x • • •with the majority here, I just use distro default / automatic setup in installer
LONG ago, I did the whole hand-crafted thing, obsessing over exactly how large each partition had to be, but with increasing speed and lowering prices of storage, this attention to detail now seems pretty irrelevant:
-
hda
split into/boot
,/tmp
,(swap)
,/
,/opt
,/usr
,/var
-
hdb
split into(swap)
and/home
monovergent 🛠️
in reply to sparkle_matrix_x0x • • •Raptorox
in reply to sparkle_matrix_x0x • • •DigDoug
in reply to sparkle_matrix_x0x • • •I've tried some weird and wonderful partition schemes in the past, but I think I've settled down and just go for simplicity. Half a gig for /boot, and the rest for / (in ext4). I've tried btrfs, but I've never been in the position where I needed snapshots, and ext4 is a lot more simple.
I also like having the flexibility of not having a separate home partition. I back up my super important files, so it doesn't matter if I lose home (not that I distrohop much anymore, anyway). And I don't have to stress about whether I've made my root partition big enough. For the same reason I use a swapfile rather than a swap partition (though I do need to look in to zram and zswap) - I like knowing that I can resize it easily, even if I don't really plan on doing so.
Nanook
in reply to DigDoug • •LeFantome
in reply to sparkle_matrix_x0x • • •Just recently repartitioned my MacBook:
1 GB for EFI (vfat)
2 GB for /boot (ext4)
11 GB for swap
224 GB for / (bcachefs)
Grub cannot load a kernel off bcachefs so I need ext4 to bridge the gap. Once the kernel is loaded, it has no problem using bcachefs as root.
Teppichbrand
in reply to sparkle_matrix_x0x • • •utopiah
in reply to sparkle_matrix_x0x • • •corsicanguppy
in reply to sparkle_matrix_x0x • • •This is just for /dev/sda or so, and implies non-redundant root disks because mirroring is done by the hypervisor. I've been 20 years doing virtualization, and I'm really starting to forget the last vestiges of my mdadm fdisk layout.
So many people in this thread have no idea why you'd want separate allocation for /home and /tmp and others. Are we missing proper mentorship?
ColdWater
in reply to sparkle_matrix_x0x • • •/root