File allocation methods
Contiguous, linked and indexed allocation, animated.
Module 4
Session 4.8
Lesson 2 of 2
File Allocation Methods
Contiguous, linked (FAT), and indexed (inodes). Trade sequential speed against easy growth.
Three maps from file to blocks
| Method | Sequential | Random | Growth | Fragmentation |
|---|---|---|---|---|
| Contiguous | excellent | excellent | painful | external |
| Linked / FAT | good if cached | walk the chain | easy | internal (block) |
| Indexed (inode) | good | good | easy | internal |
UNIX inodes: a few direct pointers, then single/double/triple indirect, so small files stay cheap.