What are the best practices to partition a linux system with? - eviltoast
  • Andrius Štikonas@lemmy.kde.social
    link
    fedilink
    arrow-up
    24
    ·
    1 year ago

    It really depends on your requirements…

    But a few useful points:

    1. Use GPT partition table and not MBR. Everything will be simpler, no need for extended/logical partitions.
    2. If you need to be able to do online (mounted) partition resizing, pick btrfs. Ext4 can only grow them online but not shrink.
    3. Make sure your partition boundaries are 1 MiB aligned.
    4. If you need more advanced setups, consider using LVM.
    • db2@sopuli.xyz
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      About lvm though, experiment with it before jumping in with your daily driver.

      • Andrius Štikonas@lemmy.kde.social
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Indeed, it’s a bit more complex setup, you won’t be able to boot without initramfs. But in certain cases (e.g. encryption or partitions spanning multiple devices) it is very useful.

        • The Doctor@beehaw.org
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          A lot of distros default to booting with an initramfs or initrd by default, anyway. If only because you can set up an encrypted drive at installation time, so may as well have it but not need it rather than the reverse.