Blog

Relocate Windows Recovery Partition to End of Disk

I want to expand my C: volume but am currently unable to because of the recovery partition sitting in between my simple volume and the unallocated space on the disk:

Here’s how the situation looks inside Disk Management

Windows will only let you expand the volume if the space is continuous.

So, here are the steps to move the recovery partition to the end of the disk, thereby giving the C: volume access to the unallocated space of the disk:

1. Open command prompt as administrator

2. Disable the recovery partition:

reagentc /disable

3. Launch the DiskPart tool:

diskpart

4. List the disks and identify which one is your C: drive:

list disks

5. Select the correct disk (mine was 1):

select disk 1

6. List the partitions to identify the recovery one:

list partitions

7. Select the recovery partition:

select partition 4

8. Delete the partition:

delete partition override

9. Go into Disk Management and expand the C: volume to consume all the free space except 1 GB (1000 MB), which will leave enough room for the recovery partition that we recreate.

10. For the 1 GB of unallocated disk space, create a new NTFS partition without a drive letter.

11. Back in DiskPart, list the partitions once more and select the right one (it should still be the same, but just in case!):

list partitions
select partition 4

12. On GPT disks, the partition ID needs to be set to the following to help Windows identify it as a recovery partition, and then set the GPT attributes:

set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
gpt attributes=0x8000000000000001

13. Exit from DiskPart and re-enable the recovery partition:

exit
reagentc /enable

Final result:

C: has been expanded and the recovery partition is at the end of the disk where it belongs!