What is the FAT (File Allocation Table), and how does it track file blocks?

Last updated 5 July 2026

  • FAT is a linked-allocation table indexed by block number. Entry N holds the next block after N, so each file forms a chain ending in an EOF marker.

  • The directory stores only the first block. Caching the FAT in memory makes walking the chain (even for random access) fast.

  • It is simple and portable (FAT12/16/32 on USB and SD cards). Downsides: table corruption is catastrophic (so it is usually mirrored) and files fragment.

  • https://www.tpointtech.com/os-file-allocation-table
  • https://ebooks.inflibnet.ac.in/csp3/chapter/file-allocation-methods/
  • https://medium.com/@dirghpatodia14/file-system-of-windows-3d180294bf2c
  • https://www.geeksforgeeks.org/operating-systems/difference-between-fat32-and-ntfs/
  • https://www.scaler.com/topics/file-allocation-methods-in-os/
  • https://medium.com/@karanegi076/all-you-need-to-know-about-operating-systems-day-4-067225fa9ff1
  • https://www.geeksforgeeks.org/operating-systems/operating-systems-interview-questions/
  • https://medium.com/@parul947a/file-management-in-os-ef1bb127c4d1
All Operating Systems interview questions