Reallocate Windows Recovery Partition

Posted by John Liu on Wednesday, July 24, 2024

After install Window, it will create a recovery partition following the system boot partition. If you want to reallocate the recovery partition, do the following.

Disable existing Windows Recovery Partition use command line:

reagentc /disable

In command line window, run diskpart to remove the recovery partition:

list disk
select disk # (where # is the disk needing the recovery partition to be removed from. You can use Disk Management to confirm disk #)
list partition
select partition # (where # is the recovery partition)
delete partition override (which will force delete the recovery partition)

Now, expand your volume using Disk Management, and leave the similar size (~1024MB or as you see in the above list paritition) at the end of the drive for recreating the recovery partition.

Create a New Simple Volume for the leftover space above, format as NTFS and don’t assign drive letter.

Back in diskpart:

list partition
select partition # (where # is the new recovery partition)
(for GPT disk, run this two lines:)
    set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
    gpt attributes=0x8000000000000001
(for MBR disk, run this line:)
    set id=27

To know if your disk is GPT or MBR partition style, in Disk Manager, right-click on the Disk# and select Properties, go to Volumes tab and check Partition Style.

Now, re-enable recovery partition by running this command line:

reagentc /enable