ποΈ Common File Systems (ext4, NTFS, Btrfs, ZFS)

If youβve ever formatted a drive on Windows or macOS, youβve dealt with file systems.
Hereβs a quick guide to the most common ones: NTFS, ext4, Btrfs, ZFS, and APFS.
π§ What Is a File System?
A file system decides:
π How files are stored
ποΈ How folders work
π Permissions and security
πΎ Data protection after crashes
Think of it as the manager of your disk.
π File Systems Overview
Windows β NTFS
macOS β APFS
Linux β ext4
Advanced/Servers β Btrfs, ZFS
macOS sits between Windows simplicity and Linux flexibility.
π NTFS β Windows Default
Stable, mature, handles large files β
Permissions & encryption supported π
βThe normal file system most people never think about.β
Linux note: Supported but Windows-centric.
π ext4 β Linux Default
Used by most Linux distros π§
Fast, stable, low maintenance β
Linux equivalent of NTFS
Limitation: β No built-in snapshots.
π Btrfs β Modern & Flexible
Snapshots π, compression π¦, rollbacks β©οΈ
Used by some Linux distros
Like NTFS + System Restore + Time Machine
More features = more complexity β οΈ
π ZFS β Power Tool for Servers
Strong data integrity πͺ
Snapshots & self-healing πͺ
Prevents silent corruption βπ»
NTFS + RAID + Backup, all-in-one
Limitation: Heavy RAM usage, complex β‘
π APFS β macOS Default
SSD-first, fast β‘
Snapshots π & encryption π
Integrated with macOS features like Time Machine
Modern, fast, and invisible β it just works β¨
π§© Blocks & Storage
| File System | Typical Block Size |
| NTFS | 4 KB π |
| ext4 | 4 KB π |
| APFS | 4 KB β‘ |
| ZFS | 128 KB π³ |
Why it matters:
π Small blocks β less wasted space
β‘ Large blocks β better performance for big files
Windows & ext4 β general purpose
ZFS β servers & big data
π¦ Metadata Structures
ext4 β Inodes π§
File size, owner, permissions, block pointers
Fast & simple β
β No snapshots, inode count fixed
NTFS β Master File Table (MFT) πͺ
Metadata as files
Small files can live in MFT
Flexible, Windows-only
APFS β Object-Based π
Copy-on-write, versioned metadata
Cheap snapshots π & SSD-optimized β‘
macOS-only
ZFS β Unified Tree π³
Files, metadata, snapshots π, checksums βοΈ
Self-healing πͺ
Powerful but RAM-heavy β‘
π Linux vs Windows File Systems
ext4 relies on Unix permissions β hard to support on Windows β
NTFS metadata maps reasonably on Linux β
WSL2 avoids conflicts by letting Linux handle Linux file systems π§
Happy Learning π§.



