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!

  • LeFantome@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    29 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.

  • pineapple@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    29 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.

  • Samsy@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    29 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.

  • Mwa@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    29 days ago

    I just use the automatic thingy on my distro so like:

    • Esp: 2GB (Limine + btrfs snapshot booting)
    • root: all the drive
  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    29 days ago

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

  • danhab99@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    29 days ago

    ½TB nvme SSD for the OS and any system/user level binary

    1TB sata SSD for code projects, docker, and videogames

    10tb HDD for just having a massive amount of fairly stable storage space. I gotta tell you I sleep really well knowing that at 4 in the morning a compressed disk image of my work SSD is being written to the hard drive.

  • SayCyberOnceMore@feddit.uk
    link
    fedilink
    English
    arrow-up
    2
    ·
    29 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.

  • PowerCrazy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    3
    ·
    29 days ago

    Partitioning is one of those obsolete Unixisms that is best left in the 90s. Only exception is dual booting, but even there partitioning isn’t really very important anymore

    • SayCyberOnceMore@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      29 days ago

      Depends on your usecase… for a single user laptop, maybe… for a multiuser device or a server… nah.

      I prefer partitioning away the user data for all usecases as that will fill up one day, and I don’t want that to down the machine.

  • beleza pura@lemmy.eco.br
    link
    fedilink
    arrow-up
    2
    ·
    28 days ago

    main ssd with debian stable: a single partition for the system + swap

    secondary harddrive: an opensuse, a debian testing, and a freebsd partition + shared data partition

  • AnonomousWolf@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    28 days ago

    I used to split my drive in half to dual boot. But I’ve never booted back into windows since installing Linux Mint.

    Should have just wiped the drive and installed Linux

    • nfreak@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      28 days ago

      I set up a dual boot over the winter, I’ve gone back to windows maybe 3 times at most.

      I’ll still keep it around in case I ever decide to dabble in games that use rootkit anticheat (though since quitting destiny 2 I don’t see that happening lmao) and for other very occasional utility, but I’m definitely thinking of shrinking that partition even further

  • liliumstar@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    29 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.

  • gi1242@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    29 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

  • patatahooligan@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    28 days ago

    Are you going to dual boot? Do you have some other special requirement? If not, there’s no reason to overthink partitioning in my opinion. I did this for my main NVME:

    • Partition table: GPT
    • /boot : 1GB fat32 partition. Depending on your needs (number of kernels, initramfs’s, other OSs) you might be fine with 500MB or even less. But because resizing can be a pain and I have the space to spare, I would much rather overprovision.
    • / : LUKS2 partition containing a btrfs filesystem with all the remaining space

    I use a swap file so I don’t use a swap partition. If you want more control over specific parts of the filesystem, eg a separate /home that you can snapshot or keep when reinstalling the system, then use btrfs subvolumes. This gives you a lot of the features a partition would give you without committing to a specific size.

    This is the only partitioning scheme I have never regretted. When I’ve tried to do separate partitions I find myself always regretting the sizes I’ve allocated. On the other hand, I have not actually seen any benefit of the separation in practice.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      28 days ago

      not actually seen any benefit of the separation in practice.

      The first time some big download hoses your root, you will be enlightened :-D

      • patatahooligan@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        28 days ago

        Right, so this is exactly the sort of “benefit” I never expect to see. This is not something that has happened to me in ~25 years of computer use, and if it does happen there are better ways to deal with it. Btrfs and zfs have quotas for this, but even if they didn’t it would not be worth the tradeoff for me. Mispredicting the partition sizes I’ll end up needing after years of use is both more likely to happen and more tedious to fix.