The information about primary partitions and an extended partition is contained in the Partition Table, a 64-byte data structure, located in the same sector as the Master Boot Record (cylinder 0, head 0, sector 1). The Partition Table conforms to a standard layout, which is independent of the operating system. The last two bytes in the sector are a signature word for the sector and are always 0x55AA.
Here is a Partition Table which will be used as an example:
Physical Sector: Cyl 0, Side 0, Sector 1 0000001B0 80 01 ..............€. 0000001C0 01 00 07 FE 7F 3E 3F 00 00 00 40 32 4E 00 00 00 ...?>?...@2N... 0000001D0 41 3F 06 FE 7F 64 7F 32 4E 00 A6 50 09 00 00 00 A?.?d2N.¦P.... 0000001E0 41 65 0F FE BF 4A 25 83 57 00 66 61 38 00 00 00 Ae.??J%?W.fa8... 0000001F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA ..............U?
There are three existing and one empty entry:
Each Partition Table entry is 16 bytes long, making a maximum of four entries available. Each partition entry has fields for Boot Indicator (BYTE), Starting Head (BYTE), Starting Sector (6 bits), Starting Cylinder (10 bits), System ID (BYTE), Ending Head (BYTE), Ending Sector (6 bits), Ending Cylinder (10 bits), Relative Sector (DWORD), Total Sectors (DWORD).
Thus, the MBR loader can assume the location and size of partitions. The MBR loader looks for the "active" partition, i.e. the partition that has a Boot Indicator equal to 0x80 (the first one in this case) and passes control over to the partition boot sector for further loading.
Consider the situations which cause a computer to hang up while booting or hang up due to data loss.
1. What will happen if no partition has been set to the Active state (Boot Indicator=0x80)?
3. What will happen if a partition entry has been deleted?
4. What will happen if a partition entry has been damaged?
It contains all the necessary information about the partition so that if recovery software finds it, it can reconstruct the partition entry in the Partition Table. (see Partition Boot Sector topic for details).
In this case, a new partition would exist instead of the original one.
Everything would work properly with the exception that you could not go back to the original partition if important data is still there.
If you've created a MBR, a Partition Table, or a Volume Sectors backup beforehand (as can be done with Active@ Partition Recovery and Active@ UNERASER for example), you can virtually restore it and look for your data (in the case it has not yet been overwritten by new data).
Some advanced recovery tools also have an ability to scan disk surfaces and try to reconstruct previously deleted partition information from the pieces of left over information (i.e. perform virtual partition recovery). However it is not guaranteed that you can recover something.
This document is available in PDF format,
which requires Adobe® Acrobat® Reader
(Free download):