Advertisement
Guest User

Untitled

a guest
Feb 4th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. Open Computers
  2. Partition Table Format
  3.  
  4. All machines are assumed to be little-endian.
  5. Expected sector size: 512 bytes.
  6. 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.
  7.  
  8. Sector 0: OCPT header
  9. Sector 1: Entry 1 | Entry 2 | Entry 3 | Entry 4
  10. Sector 2: Entry 5 | Entry 6 | Entry 7 | Entry 8
  11. Sector 3: Entry 9 | Entry 10 | Entry 11 | Entry 12
  12. Sector 4: Entry 13 | Entry 14 | Entry 15 | Entry 16
  13. Sector 5+: Partition 1...
  14.  
  15. OCPT Header (size: 60 bytes)
  16. Off | Length | Contents
  17. ----|----------|---------
  18. 0 | 4 bytes | Signature ("OCPT" 4F 43 50 54)
  19. 4 | 36 bytes | Disk UUID (same as address of disk)
  20. 40 | 4 bytes | Header sector
  21. 44 | 4 bytes | First entry sector
  22. 48 | 4 bytes | Last entry sector
  23. 52 | 4 bytes | First partition sector
  24. 56 | 4 bytes | Last partition sector
  25. 60 | 4 bytes | Number of partitions
  26. 64 | * | Reserved (until end of sector)
  27.  
  28. Entry Header (size: 128 bytes)
  29. Off | Length | Contents
  30. ----|----------|---------
  31. 0 | 36 bytes | Partition UUID
  32. 36 | 4 bytes | First sector
  33. 40 | 4 bytes | Last sector (inclusive)
  34. 44 | 4 bytes | Partition type
  35. 48 | 4 bytes | Attribute flags
  36. 52 | 76 bytes | Partition name (utf-8)
  37.  
  38. Partition Types
  39. Type | Content
  40. -----|--------
  41. TODO | TODO
  42.  
  43. Partition Attributes
  44. Bit | Content
  45. ----|--------
  46. 0 | Read-only
  47. 1 | Hidden
  48. 2 | Bootable
  49.  
  50. Whether or not any partition attributes are respected depend on the EEPROM.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement