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!

  • @[email protected]
    link
    fedilink
    395 days ago

    In 20 years of using Linux my partition scheme has always been to say yes to whatever the OS suggests.

  • @[email protected]
    link
    fedilink
    English
    155 days ago

    Just used the default for one big partition. I used to do tedious partition configurations, but it always ended up biting me down the road more than helping. This drive is for the OS, games, and working files. I have a 16TB NAS that holds anything worth saving, so if I need to nuke the whole thing and do a reinstall, all I really end up doing is downloading a bunch of Steam games again.

    • @[email protected]
      link
      fedilink
      English
      45 days ago

      This gives basically no headaches at all. I am running this schema on all my Linux devices. And swap is done using a swapfile instead of a partition. This way, you can easily increase it later on.

  • @[email protected]
    link
    fedilink
    9
    edit-2
    5 days ago
    • 550MiB /boot (also used as esp)
    • Rest for / (btrfs)
    • Subvols for /home, /var/log, /var/cache, /.snapshots (snapper snaps), /swap
  • @[email protected]
    link
    fedilink
    7
    edit-2
    4 days ago

    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.

    This is a laptop. On a desktop that can handle more drives, I would split /home onto a drive of its own.

  • @[email protected]
    link
    fedilink
    95 days ago

    Defaults are usually fine for most users. People who know they are going to distro hop or need to move data later should have a separate /home, but that’s about it until you get into special purpose installs.

  • @[email protected]
    link
    fedilink
    English
    34 days ago

    I partitioned my disk 50/50 for Windows and Linux with some proprietary software. It didn’t end up working and i whiped my windows install.

    Then I bought a new boot drive so my linux and macos install are physically separated.

  • @[email protected]
    link
    fedilink
    44 days ago

    For Laptops:

    • 500 MB - /boot/efi
    • 1 GB /boot ext2
    • X GB for / with Luks2 encrypted f2fs

    And don’t forget: GPT not MBR.

  • Zenlix
    link
    fedilink
    55 days ago

    In my first install I had different home and root partitions. That was a big mistake. Once set, you cannot resize them properly and you are fucked if they are not perfect for your need. In my case the root partition got to small. After some time I just reinstalled with a single partition and would do that again.

    • @[email protected]
      link
      fedilink
      English
      14 days ago

      Once set, you cannot resize them properly

      This is untrue.

      I’ve resized and moved partitions on a remote host during a reboot – i.e. doing the change in a batch during that boot.

      It’s possible, and for most other resizes it’s easy enough and worth it for the benefits. Do you want to do it daily? No. Do you want to half-ass it and not pay attention during? Also no.

  • @[email protected]
    link
    fedilink
    55 days ago

    Two separate EFI boot Partitions if you dual boot. Its not worth letting Windows know about linux. Linux chainloads to Windows boot.

  • SayCyberOnceMore
    link
    fedilink
    English
    34 days ago

    I setup a media PC with an SSD for boot / OS and spinning rust for the videos, music, etc.

    So, I thought LVM would be a good idea… put the whole lot into a logical pool and then carve out large parts for the media which could be adjusted in the future.

    No.

    Resizing actually just chops up the drives even more (so, partition fragmentation)

    Gparted can’t see it, so adjustments are terrible CLI commands

    And my favourite system backup tool (clonezilla) cant backup the OS without backing up the entire system.

  • @[email protected]
    link
    fedilink
    English
    55 days ago

    For my desktop, I have two disks. One is root, one is home. They are single BTRFS filesystems with automated snapshots, compressions, and a few subvolumes. Works great.

    For a laptop, similar but with only a single disk/partition and FDE. Also works well.

  • @[email protected]
    link
    fedilink
    English
    2
    edit-2
    4 days ago
    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?