MFS is the first Macintosh file system, used on 400 KB and 800 KB floppies from 1984 until HFS replaced it in 1985. It has a flat directory and is found only on very early Mac disks and disk images.
Overview
MFS has a Master Directory Block at 1024 bytes, a block map packed 12 bits per entry (the allocation chain), and a flat directory of file records. There are no real folders; the Finder simulated them. Allocation blocks are chains and each file has a data fork and resource fork.
History
- Introduced with the Macintosh in 1984.
- Replaced by HFS in 1985.
Structures
Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.
Make Entry
| Offset | Size | Type | Field | Notes |
|---|---|---|---|---|
| 0x1 | 1 | u8 | Flags | |
| 0x2 | 4 | bytes | Type | |
| 0x6 | 4 | bytes | Creator | |
| 0x12 | 4 | u32 BE | Number | |
| 0x16 | 2 | u16 BE | Data Start | |
| 0x18 | 4 | u32 BE | Data Length | |
| 0x20 | 2 | u16 BE | Rsrc Start | |
| 0x22 | 4 | u32 BE | Rsrc Length | |
| 0x2A | 4 | u32 BE | Created | |
| 0x2E | 4 | u32 BE | Modified | |
| 0x32 | 1 | u8 | Name |
Try Parse
| Offset | Size | Type | Field | Notes |
|---|---|---|---|---|
| 0x0 | 2 | u16 BE | – | |
| 0x2 | 4 | u32 BE | – | |
| 0xC | 2 | u16 BE | – | |
| 0xE | 2 | u16 BE | Dir Start | |
| 0x10 | 2 | u16 BE | Dir Length | |
| 0x12 | 2 | u16 BE | Blocks | |
| 0x14 | 4 | u32 BE | Block Size | |
| 0x1C | 2 | u16 BE | – | |
| 0x22 | 2 | u16 BE | – | |
| 0x24 | 1 | u8 | – |
Constants
Mfs Volume Info
| Name | Value | Type | Notes |
|---|---|---|---|
| Signature | 0xD2D7 | ushort |