A Visual Guide aligned with Silberschatz & GeeksforGeeks Data
User interface, high-level APIs (fopen, fread).
Manages Metadata. Maintains File Control Blocks (FCB). Responsible for protection & security.
Maps logical block addresses (0..N) to physical block addresses. Manages free space.
Issues generic commands (read drive 1, cylinder 72) to device drivers. Manages buffers & caches.
Device drivers & Interrupt handlers. Translates high-level commands to hardware instructions.
Physical Hardware (HDD, SSD, Optical Disk)
How the OS maintains state on the disk versus in RAM.
Stored persistently on secondary storage.
Loaded into RAM during file system operations.
Each file occupies a set of contiguous blocks.
Pros: Excellent for sequential & direct access. Simple.
Cons: External fragmentation. File growth is difficult.
Each file is a linked list of disk blocks. Blocks can be scattered.
Pros: No external fragmentation. Easy file growth.
Cons: Slow random access (must traverse list). Pointer overhead.
Prings all pointers together into one index block.
Pros: Supports direct access. No external fragmentation.
Cons: Wasted space for small files (overhead of index block).
A list of filenames with pointers to data blocks.
Linear list with a hash data structure.
fsck).