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!

  • @audaxdreik@pawb.social
    link
    fedilink
    English
    1627 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.

    • @mbirth@lemmy.ml
      link
      fedilink
      English
      527 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.

  • @Raptorox@sh.itjust.works
    link
    fedilink
    9
    edit-2
    27 days ago
    • 550MiB /boot (also used as esp)
    • Rest for / (btrfs)
    • Subvols for /home, /var/log, /var/cache, /.snapshots (snapper snaps), /swap
  • @LeFantome@programming.dev
    link
    fedilink
    6
    edit-2
    27 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.

  • Zenlix
    link
    fedilink
    527 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.

  • @liliumstar@lemmy.dbzer0.com
    link
    fedilink
    English
    527 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.

  • Quazatron
    link
    fedilink
    427 days ago

    It blows my mind that we had multiple modern ways to setup volumes in Linux (LVM, ZFS, BTRFS) for decades, yet people keep using partitions like it’s 1990.

      • Quazatron
        link
        fedilink
        127 days ago

        I recommend creating 3 partitions. One for UEFI, one for /boot and one for LVM.

        Inside the LVM you can assign volumes with complete flexibility. You can expand and shrink volumes. You can leave space unallocated and allocate it when the need presents itself. You can combine multiple disks in a single volume. You can do RAID over LVM or the other way around.

        Or you can go with ZFS or BTRFS, they have subvolumes and other nice features built in.

        What you don’t have is to be stuck with fixed layout partitions anymore.

  • Onno (VK6FLAB)
    link
    fedilink
    4
    edit-2
    27 days ago

    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.

  • @BCsven@lemmy.ca
    link
    fedilink
    427 days ago

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

  • @Samsy@lemmy.ml
    link
    fedilink
    427 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.

  • @pineapple@lemmy.ml
    link
    fedilink
    English
    327 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.

  • @Godort@lemm.ee
    link
    fedilink
    327 days ago

    I tend to just take the defaults when I’m deploying. I wouldn’t get any benefit of having home or tmp on a separate partition, but it’s nice that it’s an option.

  • @gi1242@lemmy.world
    link
    fedilink
    327 days ago

    save 80gb for root, sone swap (if not on an ssd) rest for /home. that way reinstalling or switching has minimal risk of losing my /home