Filesystem Layout
How a filesystem arranges its metadata and data on disk — which blocks hold the superblock, inode tables, bitmaps, and user data.
A simple filesystem might lay everything out sequentially: superblock (position 0), inode table (blocks 1-100), block bitmap (blocks 101-102), user data (blocks 103+). More sophisticated filesystems (ext4, NTFS) divide the disk into block groups or zones: each region contains a mini-superblock, local inode table, local bitmap, and data. This keeps inodes and data for the same file close together — fewer disk seeks.
Layout is determined when the filesystem is formatted (mkfs). Poor layout means inode reads always require long seeks from the data region, or fragmentation becomes inevitable. Good layout minimizes this by clustering related metadata. Tools like `filefrag` and `debugfs` reveal the layout and can spot fragmentation issues.