*Edit: I have figured out how to use BTRFS and enable what it calls “transparent file compression”, and I’m going to use that on most of my old storage devices. The only problem I’m having is that I want to use F2FS on my oldest storage device, as BTRFS takes up too much space on the device and I was told by multiple users that F2FS also supports transparent file compression, but I can’t get files to compress and I’m not getting any error messages to try and fix it. Based on what the documentation says, I’m supposed to do something like this:
sudo mkfs.f2fs -f -O extra_attr,inode_checksum,sb_checksum,compression /dev/mmcblk0p1
sudo mount -o compress_algorithm=zstd,compress_extension=* /dev/mmcblk0p1 '/home/j/mountpoint/128mb'
chattr -R +c '/home/j/mountpoint/128mb'
The device will mount like this but files aren’t compressing when added, nor are they compressed if using the last command after they’ve been moved.*
I’m rewriting the old portion for clarification:
In Windows, there’s a file/folder option called “Compress contents to save disk space”. What it does is it compresses the files, as the name suggests, but leaves them accessible as though they aren’t. This doesn’t really have much of a benefit on newer storage devices but on older storage devices, in addition to saving space, it allows files to potentially read faster.
As I have some old storage devices that I want to run games from, I think this will be a great option to have if I could find something similar for Linux. I tried looking online myself but search engines are terrible and I couldn’t find anything though them. So, I decided to post about this here, to see if anyone knows of anything I could try.


https://btrfs.readthedocs.io/en/latest/Compression.html
You know this takes 5 minutes with web search to find out? Or ask Le Chat.
I can tell that you didn’t read my post before commenting. But regardless, I’ll have to try that later as the device I’m testing first is too small for btrfs and I’m currently trying zfs first before I try one of my other storage devices.
Your skill of knowing what people did is as good as your skill of doing research I see.
And to really prove the point, Does Linux have any sort of “compress files to save disk usage” like in Windows? is the second Google result when looking for ‘Linux file system compression’ (so you no magical keywords necessary) and the first comment points to btrfs.
Yes, I can read what OP wrote in response to my message. This information wasn’t provided in the post. What is your point?
that you write things i’m trying to understand the relevance of, like “This information wasn’t provided in the post.” and “the first comment points to btrfs”. The Reddit link you gave also points towards btrfs as well as very undetailed mentions of zfs. ze says “i’ve tried btrfs and it doesn’t work so i’m looking into zfs”, and you reply “use btrfs use btrfs or look into zfs”, a message whose helpfulness I struggle to understand.
The relevance is that it’s easy to find answer to OP’s question on the Internet. Despite OP’s claims in the post or his remarks in his answer. And as it turns out, the device wasn’t too small far btrfs I guess.
well what you said after zir reply didn’t demonstrate any of that