Skip to main content

Command Palette

Search for a command to run...

πŸ—ƒοΈ Common File Systems (ext4, NTFS, Btrfs, ZFS)

Published
β€’3 min read
πŸ—ƒοΈ 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 SystemTypical Block Size
NTFS4 KB πŸ“„
ext44 KB πŸ“„
APFS4 KB ⚑
ZFS128 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 🐧.