Potentialy dumb question here, is there any benefit to using btrfs on a non system disk? I’m fairly ignorant on file systems, asfaik btrfs largest benefit is snapshotting, not sure of anyothers.

  • Ananace@lemmy.ananace.dev
    link
    fedilink
    arrow-up
    29
    ·
    1 year ago

    The main benefits to BTRFS over something like ext4 tends to be considered as; the subvolume support - which is what’s used for snapshotting, the granluar quotas, reflinks, transparent compression, and the fact that basically all filesystem operations can be performed online.

    I’m personally running BTRFS in a couple of places; NAS, laptop, and desktops. Mainly for the support to do things like snapshots and subvolumes, but I also make heavy use of both reflinks and compression, and I’ve also made use of online filesystem actions quite a few times.

  • Infiltrated_ad8271@kbin.social
    link
    fedilink
    arrow-up
    20
    ·
    edit-2
    1 year ago

    For a data disk? Absolutely, even if you’re not going to configure anything, you can copy inside the partition instantly and detect the bitrot.
    If you’re willing to step it up a notch, there’s also cool stuff like transparent compression, deduplication and incremental send/receive of entire subvolumes.

  • pHr34kY@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    1 year ago

    If you have steam, btrfs compression will dramatically shrink the size of an installed game with zero performance impact. In some cases, the disk read speed even increases.

  • Hamartiogonic@sopuli.xyz
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    Using btrfs makes a lot if sense on a NAS, because it allows you to make snapshots in a nice way. It also has some features that give your data better odds of survival if something goes wrong.

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 year ago

      It’s very useful to have on a desktop too. If you break something or have an issue with an update, you can restore a snapshot and be back up and running in less than a minute.

      • Hamartiogonic@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        It certainly is very useful there as well. Depending on the kind of system you have and how you use it, this feature may be absolutely crucial or simply nice to have. If you like to tinker a lot, it’s probably crucial.

  • d3Xt3r@lemmy.nzM
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    1 year ago

    non system disk

    That really depends on what you mean by that? Is it an internal or external drive, what sort of drive is it (HDD, SSD etc), and what are you going to use it for, and are you planning to share the drive with other operating systems?

    Because while btrfs is nice in general, you may find other filesystem more suitable depending on your usage requirements.

  • Yote.zip@pawb.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    I like BTRFS’s checksumming abilities and compression the most. BTRFS will keep track of every block of data’s checksum, and when you run a scrub it will detect bitrot. If you want to heal the bitrot you’ll need to run e.g. RAID1. RAID5/6 are not stable so don’t use those. ZSTD:1 compression is basically free storage with no downside, and can massively speed up file operations if you’re using spinning rust.

    Personally I run BTRFS on any disk that only needs a single drive, like OS disk or games drive. My NAS runs a ZFS array for any mass storage, which includes basically the same feature set as BTRFS, except RAID actually works and everything is a tiny bit better. A ZFS NAS isn’t very good unless you pump a decent amount of money into it to get it going, so if you’re on a tight budget I’d recommend MergerFS+SnapRAID backed by BTRFS disks, which is very similar to Unraid in terms of storage paradigm except free.

  • neo [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I use Btrfs on my secondary drives as well, just for the checksumming capabilities. If there is data errors, I would like to know about it (even if I cannot do anything about it, because I do not have redundancy set up). I have my fstab set up so that it mounts with noatime,compress-force=zstd:1

    Performance-wise, Btrfs has been improving a lot even in just the past few years. I think if I were using a very weak computer (like raspberry pi 1 strength) I would not use Btrfs or a CoW fs.

  • Granixo@feddit.cl
    link
    fedilink
    arrow-up
    5
    arrow-down
    7
    ·
    1 year ago

    I usually just stick to the standard file system to any OS.

    So for Linux that would be ext4.

    For external drives i use either FAT32 (the ol’ reliable) or exFAT (the fastest for dealing with large files when you set the max allocation unit size AKA 32MB).

    • falcon15500@lemmy.nine-hells.net
      link
      fedilink
      English
      arrow-up
      29
      arrow-down
      1
      ·
      edit-2
      1 year ago

      So for Linux that would be ext4.

      It’s worth noting that the default file system varies by distro - there is no ‘Linux’ default. For example, RHEL et al use XFS as the default.

        • Ananace@lemmy.ananace.dev
          link
          fedilink
          arrow-up
          12
          arrow-down
          1
          ·
          1 year ago

          RHEL is going hard on XFS, they’ve even completely removed BTRFS support from their kernel - they don’t have any in-house development competency in it after all. It’s somewhat understandable in that regard, since otherwise they wouldn’t necessarily be able to offer filesystem-level support to their paying customers.

          Though it is a little bit amusing, seeing as Fedora - the RHEL upstream - uses BTRFS as their default filesystem.

          • Norgur@kbin.social
            link
            fedilink
            arrow-up
            10
            arrow-down
            1
            ·
            1 year ago

            If there is one thing one can learn from the Linux community at large is how to agree on absolutely nothing and still be friends (mostly, that is. As long as Linus isn’t involved. Then the gloves are off. Who dared to put rust in the kernel?!)

      • uis@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        3
        ·
        1 year ago

        make menuconfig says:

        Ext2 is a standard Linux file system for hard disks.

        And this for ext4:

        This is the next generation of the ext3 filesystem.

        But defaly indeed is ext4.

        • Granixo@feddit.cl
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 year ago

          ext4 is literally just the latest version of the ext filesystem (AKA it has the most funcionality).

          If you REALLY wanted MAX speed, you could make your system drive ext2, but you would lose some metadata, drive info & management tools.

      • MyNameIsRichard@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        openSUSE uses BTRFS as the default filesystem for / and if you have any additional disks (for example a separate home) it uses XFS by default. Unless that’s changed since the last time I installed.

        • Ananace@lemmy.ananace.dev
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          When I worked through some AutoYaST setups for Leap 15.5 the default disk setup did BTRFS across the line, though that could definitely differ from doing the install interactively.