hn.today

Show HN: Understanding FAT16 – an interactive filesystem explainer

fat16.asciitweezers.com8 points2 comments
Screenshot of Show HN: Understanding FAT16 – an interactive filesystem explainer

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.

Read on fat16.asciitweezers.com2 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Rust

Laravel Rust

Laravel for Rust is a full-stack web framework with routing, validation, database tools, background jobs, and real-time features. It also supports Inertia for frontend integration and is released under the MIT license. (github.com)

The Uberization of Software

The Uberization of Software

Ride-hailing apps greatly expanded demand for trips but undercut the value of taxi medallions and squeezed driver earnings by removing the supply limits that had protected them. The essay argues that software engineering faces a similar paradox: rising demand can lower workers’ pay when technology rapidly expands the supply of labor. (lsrx.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.