An interactive explainer uses a small, visualized FAT16 disk to show how this long-lived filesystem organizes and retrieves data. It places FAT16 in the history of the FAT family: FAT began in 1977, FAT16 extended it in 1984 as storage grew, and later versions included FAT32 and exFAT. Its staying power comes from a simple, widely supported design that was practical for early floppy disks and remained useful for removable media and sharing files across operating systems. The explainer focuses on FAT16B, the standard version introduced in 1987, and invites readers to explore the filesystem while it runs, from formatting to defragmentation.
The key idea is that a disk contains raw bytes, while the filesystem keeps track of which bytes belong to files. FAT16 divides a volume into a boot sector, one or more File Allocation Tables, a fixed-size root directory, and a data area made of clusters. The boot sector stores parameters such as cluster size and includes limited bootloader code; the FAT links the clusters belonging to files and tracks free space; directory entries provide names, sizes, and each file’s first cluster. Formatting initializes these structures, and a quick format leaves old data in the data area untouched. Cluster size trades bookkeeping efficiency against wasted space, while 16-bit cluster entries limit the number of clusters; with historical sector and cluster constraints, FAT16 volumes top out at about 2 GB. The demos simplify a disk to 16 clusters so these mechanics are easy to inspect.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.