I made this explorable explanation of the FAT16 filesystem. This was largely to satisfy my own childhood curiosity about the defrag screen, but I thought others might appreciate it too.

It's very text heavy but there are a number of interactive pieces that let you make changes, read files, and see the underlying bytes. The first one is in section 2.

There's also a minigame at the end where you can defragment a disk by hand.

Would love to hear corrections, feedback, or just historical color.


• compiler-guy 4 hours ago

Terrific, reminded me of many nights watching norton do its thing.

A bonus for the game might be to defrag in such a way that the free space is all contiguous. I seem to recall that all files were moved to the lowest cluster numbers, which maximizes contiguous free space at the end.

Anyway brought back some good memories.

• Firehawke 2 hours ago

Correct. You'd prefer a full defragment putting free space at the end so that new files written to the drive have a much higher chance of not being fragmented from the start. It often takes a fair bit longer to do a full defrag, though, so most people went with quick defrags and only used full when the free space was getting too fragmented.

• abeauvois 2 days ago

such an emotion! Amiga, FAT16 & 32 ...colored DOS screen, I remember the boot viruses that used to change the first pointer to the boot code. The FAT backup saved my day several times.