Moving Windows Server 2022 Recovery Partition

Moving Windows Server 2022 Recovery Partition

When doing a scratch install of Windows Server 2022, some brainiac at Microsoft thought it was a good idea to place the recovery partition at the end of the Disk 0 Volume. So, when you need to extend your "C" drive, you end up with the recovery partition blocking the way. Here are the steps to resolve this issue (and I'm assuming you've already added space to the virtual disk).

Step1:

Run CMD as Administrator and execute the following command: reagentc /disable

C:\>reagentc /disable

Next, run DiskPart and execute the following commands:

diskpart

list disk

select disk 0 (or whatever happens to be the disk ID with the recovery partition)

list partition

select partition 4 (again, select the appropriate partition listed as the Recovery Partition)

list partition (ensure the recovery partition has a * beside it)

delete partition override (this deletes the recovery partition)

list partition (the recovery partition should now be deleted)


Step #3: Go into Computer Management and navigate to Disk Management

Right click on the "C" partition and select "extend" and click Next

Reduce the size of the extension by 1GB (see image below as example) to reserve space for the new recovery partition.

Finish task. Now, the "C" partition should be larger and there should be at least 1GB left at the end.



Step #4: Create a New Recovery Volume

Right-click on unallocated space

Choose Simple Volume

NTFS

No Drive Letter

Leave Partition Name Blank

Finish task.

Step #5: Return to CMD as Administrator and DiskPart

Run the following commands:

List Disk

Select Disk 0 (or other as appropriate)

List Partition

Select Partition 4 (this should be the new partition you just created in disk manager)

set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac

gpt attributes=0x8000000000000001


Step #6: Exit DiskPart and Return to Administrative Command Prompt; Re-Enable Recovery Partition

C:\>reagentc /enable

Return to Computer Management->Disk Management

Partition should now show as Healthy (Recovery Partition)


Izak Le Roux

IT Nework and Security Manager at Country Bird Holdings Ltd

3 周

Absolute life saver! Almost had to redo our entire VDC because of some brain donor at MS. Crazy!

回复

要查看或添加评论,请登录

Charles Crampton的更多文章

社区洞察

其他会员也浏览了