Partition Table: Difference between revisions

no edit summary
No edit summary
 
No edit summary
Line 3: Line 3:
The information about primary partitions and an extended partition is contained in the Partition Table, a 64-byte data structure located in the first sector (cylinder 0, head 0, sector 1) of the hard drive. The Partition Table conforms to a standard layout that is independent of the operating system. Each Partition Table entry is 16 bytes long, making a maximum of four entries available. Each entry starts at a predetermined offset from the beginning of the sector, as follows:
The information about primary partitions and an extended partition is contained in the Partition Table, a 64-byte data structure located in the first sector (cylinder 0, head 0, sector 1) of the hard drive. The Partition Table conforms to a standard layout that is independent of the operating system. Each Partition Table entry is 16 bytes long, making a maximum of four entries available. Each entry starts at a predetermined offset from the beginning of the sector, as follows:


 
{| {{wikitable}}
<verbatim>
|-
Partition 1 0x01BE (446)
! Partition number
Partition 2 0x01CE (462)
! Offset
Partition 3 0x01DE (478)
|-
Partition 4 0x01EE (494)
|Partition 1
</verbatim>
|0x01BE (446)
|-
|Partition 2
|0x01CE (462)
|-
|Partition 3
|0x01DE (478)
|-
|Partition 4
|0x01EE (494)
|}




Each entry has the following structure:
Each entry has the following structure:


<verbatim>
<pre>
Element  Size    Description
Element  Size    Description
-------------------------------------------------------------
-------------------------------------------------------------
Line 29: Line 39:
  8        dword  Relative Sector (to start of partition)
  8        dword  Relative Sector (to start of partition)
12        dword  Total Sectors in partition
12        dword  Total Sectors in partition
</verbatim>
</pre>
839

edits