Since Nitrux 2.8.0, the /home and /var/lib partitions use F2FS, and since Nitrux 5.1.0, we provide our own mkfs.f2fs implementation.
These F2FS-formatted partitions will also use the following additional filesystem features.
- Compression using zstd with compression at level 6. The primary goal is to reduce writes to extend flash lifetime and, potentially, slightly increase performance.
- Verify compressed blocks with a checksum to prevent corruption.
- Enable a better garbage collector and asynchronous garbage collection.
- Avoid synchronously updating access or modification times to improve I/O performance and flash durability.
- Support directory-level encryption, where different directories can use different encryption keys.
File Compression in F2FS
To compress directories on demand, run the following command.
chattr -R +c $DIRECTORY
Important Notes
Features such as compression and encryption may not be enabled if they weren’t enabled during partition creation. F2FS does not support enabling these features afterward.
