Heya folks, some people online told me I was doing partitions wrong, but I’ve been doing it this way for years. Since I’ve been doing it for years, I could be doing it in an outdated way, so I thought I should ask.

I have separate partitions for EFI, /, swap, and /home. Am I doing it wrong? Here’s how my partition table looks like:

  • FAT32: EFI
  • BTRFS: /
  • Swap: Swap
  • Ext4: /home

I set it up this way so that if I need to reinstall Linux, I can just overwrite / while preserving /home and just keep working after a new install with very few hiccups. Someone told me there’s no reason to use multiple partitions, but several times I have needed to reinstall the OS (Linux Mint) while preserving /home so this advice makes zero sense for me. But maybe it was just explained to me wrong and I really am doing it in an outdated way. I’d like to read what you say about this though.

  • Infernal_pizza@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    Why do you have a btrfs volume and an ext4 volume? I went btrfs and used sub volumes to split up my root and home but I’m not sure if that’s the best way to do it or not

    • S410@kbin.social
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Not OP, but I have the same setup.

      I have BTRFS on /, which lives on an SSD and ext4 on an HDD, which is /home. BTRFS can do snapshots, which is very useful in case an update (or my own stupidity) bricks the systems. Meanwhile, /home is filled with junk like cache files, games, etc. which doesn’t really make sense to snapshot, but that’s, actually, secondary. Spinning rust is slow and BTRFS makes it even worse (at least on my hardware) which, in itself, is enough to avoid using it.

      • d_k_bo@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        HDD, which is /home

        Spinning rust is slow

        Have you tried to either

        1. put /home on the SSD and only larger subdirectories on the HDD
        2. set eg. XDG_CONFIG_HOME, XDG_CACHE_HOME etc. to a location on the SSD (to improve program startup time)

        I have no direct comparison, but I can imagine that this could reduce the performance impact of your HDD.

        • S410@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I have a 120 gig SSD. The system takes up around 60 gigs + BTRFS snapshots and its overhead. A have around 15 gigs of wiggle room, on average. Trying to squeeze some /home stuff in there doesn’t really seem that reasonable, to be honest.

    • Mambabasa@slrpnk.netOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I use btrfs for my / because I can use Linux Mint’s Timeshift tool to make snapshots, but I don’t want snapshots of /home to be included. Am I doing this wrong?

      • S410@kbin.social
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        You can put your /home on a different BTRFS subvolume and exclude it from being snapshotted.

        • Mambabasa@slrpnk.netOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          How about when I reinstall the OS? Will it only affect the / and not touch the /home?

          • S410@kbin.social
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            As long as you don’t re-format the partition. Not all installers are created equal, so it might be more complicated to re-install the OS without wiping the partition entirely. Or it might be just fine. I don’t really install linux often enough to know that. ¯\_(ツ)_/¯

      • Infernal_pizza@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Not sure if that’s wrong or not tbh, I use snapper instead of timeshift and I wanted /home included in the snapshots anyway (I think it let me set them up as 2 separate jobs). The reason I went with subvolumes instead of separate partitions is that I didn’t have to worry about sizing. I also know I can reinstall to my root subvolume without affecting the others, depending on the installer for your distro I don’t know how easy that is vs just having separate partitions. I played around with it in a VM for a while to see what the backup and restore process is like before I actually committed to anything!

        • Mambabasa@slrpnk.netOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Alright, thanks, I’ll try some experiments the next time I have the opportunity to do so.