CyberGrind // Orange Book // Sections 03 + 04

File Systems & Partitioning

How operating systems organize, store, and access data on disk

// File System Features
๐Ÿ—œ๏ธ
Compression
Re-encodes data to consume less space. Fifty consecutive zeros can be stored as "50ร—0" rather than fifty individual bits.
Transparent to the user in most implementations
๐Ÿ”
Encryption
Converts file data so it cannot be read without the correct decryption key. Protects sensitive files from unauthorized access.
NTFS uses EFS; APFS has native full-volume encryption
๐Ÿ”‘
Permissions
Controls which users can read, write, move, or delete each file. Managed via an Access Control List (ACL).
Critical for multi-user and server environments
๐Ÿ““
Journaling
Logs every file change before writing to disk. Allows the system to recover to a consistent state after a crash or power failure.
Used by NTFS, ext3/4, HFS+, APFS
๐Ÿ“
Size Limits
FAT32 caps individual files at 4 GB. NTFS supports up to 16 exabytes per file โ€” enough for virtually any foreseeable use case.
Modern FS limits are effectively non-limiting
๐ŸŒ
File Sharing
Allows users to share folders with others on the same network (P2P). Microsoft Workgroups are one implementation of this.
Cloud sharing preferred for persistent availability
// File Systems by Operating System
๐ŸชŸ
Windows
NTFS Current
Supports journaling, encryption (EFS), ACLs, and 16 EB max file size. Default for all modern Windows installs.
FAT32 Legacy
Max 4 GB file size. Still used for USB drives and SD cards due to broad cross-platform compatibility.
exFAT Current
FAT32 successor for removable media. Removes the 4 GB file size limit while keeping cross-platform support.
๐ŸŽ
macOS
APFS Current
Default since macOS 10.13 (High Sierra). Optimized for SSDs with native encryption, snapshots, and cloneable files.
HFS+ Legacy
Hierarchical File System Plus. Used in older Macs. Still supported for compatibility with older Time Machine backups.
๐Ÿง
Linux
ext4 Current
Standard for most distros. Delayed allocation, reduced fragmentation, and larger volume/file support over ext3.
ext3 Legacy
Introduced journaling to the ext family. Still supported; largely replaced by ext4.
BtrFS Emerging
The future of Linux filesystems. Transparent compression, drive pooling, online defrag, and live snapshots.
// Feature Support Matrix
File System Journaling Encryption Permissions Compression Max File Size OS
NTFS โœ“ โœ“ โœ“ โœ“ 16 EB Windows
FAT32 โœ— โœ— โœ— โœ— 4 GB Universal
exFAT โœ— โœ— โœ— โœ— 16 EB Universal
APFS โœ“ โœ“ โœ“ ~ 8 EB macOS / iOS
ext4 โœ“ ~ โœ“ โœ— 16 TB Linux
BtrFS โœ“ โœ“ โœ“ โœ“ 16 EB Linux

~ = partial or via external tools  |  โœ“ = native support  |  โœ— = not supported

// Partition Styles: MBR vs GPT
MBR โ€” Master Boot Record
Legacy scheme ยท stored in sector 0
MBR
Primary 1
Primary 2
Primary 3
P4
Boot sector
Primary partition
Extended
Max partitions4 primary
Max disk size2 TB
Boot modeBIOS / Legacy
RedundancyNone
Usage (2023)~43% of drives
GPT โ€” GUID Partition Table
Modern scheme ยท UEFI required
Prot
HDR
Part 1
Part 2
Part 3
โ€ฆ 128
Bak
Protective MBR
Partition
Backup header
Max partitions128 (Windows)
Max disk sizeVirtually unlimited
Boot modeUEFI
RedundancyBackup header at end of disk
Usage (2023)~57% of drives
// Understanding File Paths
Hierarchical File System โ€” Path Examples
C:\Users\Documents\photo.jpg
Windows path โ€” drive letter โ†’ folders โ†’ file. Backslash (\) separates levels.
/home/logan/documents/photo.jpg
Linux / macOS path โ€” root (/) is the top-level directory. Forward slash (/) separates levels.
Root Directory โ€” top-level, contains all subdirectories
Subdirectory โ€” folders that group related files
File + Extension โ€” determines type and application association