this post was submitted on 08 Aug 2024
166 points (97.2% liked)

Linux

48344 readers
584 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I want to learn more about file systems from the practical point of view so I know what to expect, how to approach them and what experience positive or negative you had / have.

I found this wikipedia's comparison but I want your hands-on views.

For now my mental list is

  • NTFS - for some reason TVs on USB love these and also Windows + Linux can read and write this
  • Ext4 - solid fs with journaling but Linux specific
  • Btrfs - some modern fs with snapshot capability, Linux specific
  • xfs - servers really like these as they are performant, Linux specific
  • FAT32 - limited but recognizable everywhere
  • exFAT - like FAT32 but less recognizable and less limited
you are viewing a single comment's thread
view the rest of the comments
[–] henfredemars@infosec.pub 9 points 3 months ago* (last edited 3 months ago) (3 children)

I care a lot about filesystems.

BTRFS in FS-managed RAID configuration for automatic self-healing and snapshots for instant automated backups (though I keep a traditional backup too for protection against bugs and user error).

Storage is cheap compared to how much I value my data. BTRFS has very good support on Linux, integration with some backup tools, and I really want to use a FS that has full data checksums to make sure the data stays correct at rest. I like that I don’t have to use equal sized drives and can use whatever I have available, though I would appreciate a better read distribution model rather than the current where it just chooses a random drive to read from when multiple copies are available.

Disadvantages include difficulty accessing from Windows in my experience, less than stellar performance on HDDs, not very space efficient for small files systems because of the bulky metadata, and some uncommon RAID types don’t work correctly and will eat your data. I also don’t recommend it for use over USB because many such devices don’t correctly implement sync, and this is very important to stay on the correct transaction number and prevent file system inconsistencies. If I had to boot from USB, I wouldn’t pick BTRFS.

I don’t think exFAT or FAT32 offer POSIX permissions. I’m not sure if you could have a root file system there.

[–] _thebrain_@sh.itjust.works 4 points 3 months ago (1 children)

Have you seen/tried https://github.com/maharmstone/btrfs ?

I have heard it is decent but have never had a need to try it.

[–] henfredemars@infosec.pub 5 points 3 months ago (1 children)

Yes I have and it caused file system corruption the two times I tried it. Something wasn’t quite right.

[–] _thebrain_@sh.itjust.works 4 points 3 months ago (1 children)

Good to know. I know a couple of people in the steam deck world who dual boot windows and steamos and have their games on a btrfs partition that use it so they don't need games installed twice ... I have no desire to do this so I have never tried.

[–] henfredemars@infosec.pub 2 points 3 months ago

It’s possible I was just unlucky, but data corruption makes it harder for me to sleep at night. I choose to be a little more conservative and consider that tool beta quality.

[–] whostosay@lemmy.world 2 points 3 months ago

|I care a lot about filesystems.

Damn bro, I didn't think I was gonna cum in /linux

[–] Telorand@reddthat.com 2 points 3 months ago (2 children)

So, genuine question: why btrfs instead of zfs? Sounds like your use case would fit the latter.

[–] Kualk@lemm.ee 7 points 3 months ago (1 children)

BTRFS is zero effort on root, because it is included in kernel. ZFS on root is extra effort at least on Arch, due to licensing restrictions.

[–] marty_relaxes@discuss.tchncs.de 1 points 3 months ago

Additionally, at least for my use-case btrfs benefits me since it is less picky about drive sizes being the same and duplicating everything correctly - letting you essentially just throw additional storage at it as you acquire it.

[–] henfredemars@infosec.pub 4 points 3 months ago

Does ZFS handle data duplication on unequal sized volumes or heterogeneous pools? I don’t believe so, and BTRFS was a first class installer option.