friendica.eskimo.com

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!

54 2

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

This entry was edited (1 day ago)
1
  • 180 MB /efi (if needed)
  • 384 MB /boot (for LUKS compatibility)
  • Remainder / (usually btrfs)
2
  • 550MiB /boot (also used as esp)
  • Rest for / (btrfs)
  • Subvols for /home, /var/log, /var/cache, /.snapshots (snapper snaps), /swap
This entry was edited (23 hours ago)
8

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.

This entry was edited (23 hours ago)
1
@DigDoug @sparkle_matrix_x0x I have differing partition schemes on different machines depending upon their function. On my workstation I have four partitions, a root partition which is on SSD and all the system binaries and files reside there, a /home partition which is on rotary media because speed is less critical space more so, and a backup drive which keeps compressed copies of the /home and /root partitions. On my servers mostly everything is RAID and it's much more complex and varies according to the function of a particular server.

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.

6
I have 1/3 of a 1 TB SSD for Windows, Linux and a free partition for random stuff each. With home finally on a second 2 TB SSD. This is great, so far.
This entry was edited (8 hours ago)
1
Well played NSA..! Anyway :
fabien@debian2080ti:~$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                                16G     0   16G   0% /dev
tmpfs                              3.2G  1.9M  3.2G   1% /run
/dev/mapper/debian2080ti--vg-root   28G   25G  1.8G  94% /
tmpfs                               16G  168K   16G   1% /dev/shm
tmpfs                              5.0M   24K  5.0M   1% /run/lock
/dev/nvme0n1p2                     456M  222M  210M  52% /boot
/dev/nvme0n1p1                     511M  5.9M  506M   2% /boot/efi
/dev/mapper/debian2080ti--vg-home  439G  390G   27G  94% /home
tmpfs                              3.2G  2.6M  3.2G   1% /run/user/1000
/dev/sda3                          1.7T  1.6T   62G  97% /media/fabien/a77cf81e-fb2c-44a7-99a3-6ca9f15815091
1
EFI
83:boot(e4fs)
8e:lvm(e4fs)
bf:zfs

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?

This entry was edited (7 hours ago)
1
This entry was edited (5 hours ago)