CP/M was the dominant 8-bit microcomputer operating system (1974), and its disk format holds no parameters on disk, so the geometry must be known. It is found on Kaypro, Osborne, Amstrad PCW and similar floppies, and in retro-computing and business-data recovery.
Overview
CP/M stores no parameters on disk. A directory of 32-byte entries (user number, name, extent, record count and allocation block numbers) sits after the reserved system tracks. Block size, sector skew, directory size and pointer width differ per machine, so the implementation selects them from a table of known disk definitions. Deleted entries are marked 0xE5.
History
Created by Gary Kildall at Digital Research (1974).
CP/M 2.2 appeared in 1979 and CP/M 3 in 1983.
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.
Cpm File System
Offset
Size
Type
Field
Notes
0x1
8
bytes
Label
0x9
3
bytes
Label
0xC
1
u8
Label Flags
Group Files
Offset
Size
Type
Field
Notes
0x0
1
u8
Key
0x1
8
bytes
Key
0x9
3
bytes
Key
0xC
1
u8
–
0xE
1
u8
–
Stamp
Offset
Size
Type
Field
Notes
0x0
2
u16 LE
Days
0x2
1
u8
Hour
0x3
1
u8
Inute
Classify
Offset
Size
Type
Field
Notes
0x0
1
u8
User
0x1
11
bytes
–
0xC
1
u8
–
0xE
1
u8
–
0xF
1
u8
–
Other fields read
Read in
Offset
Size
Type
Field
Notes
Block Pointers
(16 + 2 * i)
2
u16 LE
–
Constants
Implementation limits
Class
Name
Value
Notes
Cpm Detector
MaxImageBytes
2 * 1024 * 1024
Cpm Entry Kind
Name
Value
Invalid
(next)
Empty
(next)
File
(next)
Deleted
(next)
Label
(next)
Timestamps
(next)
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.