Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Open Computers
- Partition Table Format
- All machines are assumed to be little-endian.
- Expected sector size: 512 bytes.
- Using the standard OCPT EEPROM and OCPT PARTED floppy, partition 1 is assumed to be 20 sectors (10 KiB) in size and is reserved for the bootloader.
- Sector 0: OCPT header
- Sector 1: Entry 1 | Entry 2 | Entry 3 | Entry 4
- Sector 2: Entry 5 | Entry 6 | Entry 7 | Entry 8
- Sector 3: Entry 9 | Entry 10 | Entry 11 | Entry 12
- Sector 4: Entry 13 | Entry 14 | Entry 15 | Entry 16
- Sector 5+: Partition 1...
- OCPT Header (size: 60 bytes)
- Off | Length | Contents
- ----|----------|---------
- 0 | 4 bytes | Signature ("OCPT" 4F 43 50 54)
- 4 | 36 bytes | Disk UUID (same as address of disk)
- 40 | 4 bytes | Header sector
- 44 | 4 bytes | First entry sector
- 48 | 4 bytes | Last entry sector
- 52 | 4 bytes | First partition sector
- 56 | 4 bytes | Last partition sector
- 60 | 4 bytes | Number of partitions
- 64 | * | Reserved (until end of sector)
- Entry Header (size: 128 bytes)
- Off | Length | Contents
- ----|----------|---------
- 0 | 36 bytes | Partition UUID
- 36 | 4 bytes | First sector
- 40 | 4 bytes | Last sector (inclusive)
- 44 | 4 bytes | Partition type
- 48 | 4 bytes | Attribute flags
- 52 | 76 bytes | Partition name (utf-8)
- Partition Types
- Type | Content
- -----|--------
- TODO | TODO
- Partition Attributes
- Bit | Content
- ----|--------
- 0 | Read-only
- 1 | Hidden
- 2 | Bootable
- Whether or not any partition attributes are respected depend on the EEPROM.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement