this post was submitted on 08 Aug 2024
161 points (97.6% liked)

Linux

47952 readers
1406 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
[–] ryannathans@aussie.zone 25 points 2 months ago (3 children)

ZFS where possible for maximum reliability

It also has self healing, no "partitions", high performance, compression, smart drive redundancy without RAID holes, encryption, deduplication and an extremery intelligent cache called ARC

[–] avidamoeba@lemmy.ca 12 points 2 months ago (1 children)

ZFS is completely ridiculous. It's like someone actually sat down to design an intelligent filesystem instead of making a slightly improved version of what's already out there.

[–] drwho@beehaw.org 1 points 2 months ago (2 children)

..and that's why Oracle fucked up the licensing on it. We are not allowed to have nice things.

[–] avidamoeba@lemmy.ca 3 points 2 months ago (2 children)

Why though? AFAIK the CDDL totally allows us to have nice things. It's similar to MPL and considered a free software license by the FSF. Sure it's not GPL but it doesn't disallow us from changing ZFS, using it, even commercially.

[–] ryannathans@aussie.zone 4 points 2 months ago* (last edited 2 months ago) (1 children)

I don't really understand why the linux community complains about the licencing. I'm sure openzfs overcame that. In the freebsd world it's native on root straight out of the box

[–] avidamoeba@lemmy.ca 1 points 2 months ago (1 children)

Yeah there's no essential problems with it in itself as free open source software. Legally it doesn't seem compatible with the Linux kernel source code, as in you can't compile it into the kernel but it seems to be okay to load it as a binary module, prebuilt or built on demand.

[–] ryannathans@aussie.zone 3 points 2 months ago* (last edited 2 months ago) (1 children)

Yet practically no distros support it out of the box

And on root? Can practically forget it

Sad

[–] avidamoeba@lemmy.ca 1 points 2 months ago

Well Ubuntu is the most popular distro and it supports it out of the box. It's had experimental ZFS-on-root support since 2020. Unfortunately it needs more work to be to be promoted from experimental status. But yeah, I don't know of any other diatros supporting it on root out of the box. Which is sad.

[–] drwho@beehaw.org 1 points 2 months ago

I didn't mean the license. I meant, it was a "fuck you" from Oracle.

[–] ghjones@beehaw.org 2 points 2 months ago (1 children)

I feel your pain on the CDDL (although I think it is still considered a “free” license), and while I love to hate Oracle, I think the CDDL decision was originally Sun’s, even if Oracle could “free” it now to be GPL.

[–] drwho@beehaw.org 1 points 2 months ago

I don't 'love' to 'hate' Oracle. For much of my career it seems like they've gone out of their way to make things more difficult than they need to be. If I had to calculate how much time fighting with their projects cost me (compared to everything else), they'd be at the head of the list (with one more zero at the left of the decimal point than Microsoft).

[–] Psyhackological@lemmy.ml 2 points 2 months ago* (last edited 2 months ago) (1 children)

Holy xfs is probably not close to that?

[–] non_burglar@lemmy.world 5 points 2 months ago (1 children)

XFS is simply a journalling filesystem.

ZFS is a COW filesystem and volume manager with compression, block management, and an adaptive read cache.

Kind of an apples-to-oranges comparison.

[–] theroff@aussie.zone 1 points 2 months ago

Technically XFS is also a CoW filesystem, but it doesn't have the vast array of features that ZFS does like volume management, snapshots, send/recv etc. It does have reflink support which I guess is a kind of snapshot for a file.

[–] youRFate@feddit.org 0 points 2 months ago (1 children)

Well, encryption is very much not a strong point of zfs. I agree on all other points tho.

[–] ScottE@lemm.ee 3 points 2 months ago (1 children)

Actually native encryption has been a feature of ZFS for a few years now. It's nice not having to have an extra LUKS layer.

[–] ghjones@beehaw.org 2 points 2 months ago (1 children)

Yeah, but it’s had some actual data corruption bugs related to sending encrypted snapshots (off the top of my head).

[–] ryannathans@aussie.zone 0 points 2 months ago

Not really bugs, the process for zfs send differs with encrypted snapshots. Make sure you consult the docs. Always test your backups to make sure you cloned properly