Unhide Recovery Partition
Start Disk Management (diskmgmt.msc) on your computer and take a closer look at your hard disk. Note the disk number and the partitions.
Start DiskPart and select your disk:
DISKPART> select disk 0
List all partitions:
DISKPART> list partition
Now, select the hidden partition (see step 1)
DISKPART> select partition 1 DISKPART> detail partition
Verify that it is hidden.
Remember the Type value, this will be handy if something goes wrong.
Set the type of the hidden partition to 07.
DISKPART> set id = 07 override
If everything goes ok, you will receive the following message
“Diskpart successfully set the partition ID.“
to close DiskPart.
Check the Disk Management to see witch drive letter has been assigned to the recovery partition.
List of partition types:
07 = Windows NT NTFS, 17 = Hidden, 27 = OEM Recovery
Assuming that you have cloned your hard drive containing the system onto a new one with a different storage capacity. This has made it impossible to create a Recovery drive including the content of the recovery partition, the checkbox “Copy the recovery partition from the PC to the recovery drive” being disabled. The reason is simple: the BCD entries (Boot Configuration Data) are based on disk signature/partition addresses. Therefore, if partitions are moved/resized, BCD entries are no longer actual.
Usually, the PC comes with a hidden Recovery partition which has no assigned letter but only a name, and containing a file named install.wim (or winRe.wim). You cannot display the content of this partition in Windows Explorer because it has no letter. The only thing you might say about it is “this partition starts at a certain offset” (number of bytes from the beginning of the disk). Windows won’t be able to find it if you provide a wrong offset, and this is exactly what happens when you install a new hard drive: the recovery partition may not start at the same offset as on the former one. So you have to provide Windows with the new offset by updating the content of a system file.
First of all, you need to determine which hidden partition contains the recovery file (install.wim or winre.wim). It’s most likely the biggest and last one, and its size should be something like 14 GB or greater. In the image below, which shows the partitions of my own hard drive, the Recovery partition is named PBR_DRV and its size is 24 GB.
1 – Open a command prompt (or Windows PowerShell) with admin rights.
In case you want to make this partition visible in Windows Explorer, so that you can check its content, you need to assign a letter to it.
DISKPART> list volumes DISKPART> select volume x DISKPART> assign DISKPART> remove
2 – Open the XML file C:\Windows\System32\Recovery\ReAgent.xml. Locate the line “PBRImageLocation”. Set its offset and guid accordingly to the values you found above.
3 – Open a new command prompt or Windows PowerShell with admin rights, and enter reagentc /disable, followed by reagentc /enable.
You should now be able to create a Recovery drive with the option “Copy the recovery partition from the PC to the recovery drive” enabled.