Posts tagged ‘receovery’

Windows server 2022 – Cannot extend C: partition

Those who are installing new Windows 2022 server , may realize that the C: drive cannot be extended . This is due to the recovery partition is created next to the C: drive.

Most of the google search references pointing out to use a 3rd party tool to modify the disk or delete the recovery partition via diskpart utility using the override switch and then extend the C: drive. However , This deletion will lead you to a situation you lose the recovery partition and unable to recover the server via the recovery media or similar methods. Thus I would recommend the below approach to safely transfer the recover partition to C: drive after deleting the original recovery partition.

Step1: Mount the Windows 2022 Image to the C:\Temp folder

DISM /Mount-image /imagefile:D:\sources\install.wim /Index:1 /MountDir:C:\temp/readonly /optimize

Step2: Transfer the recovery media to C: drive

robocopy /MIR C:\temp\Windows\System32\Recovery\ C:\Windows\System32\Recovery

Step3 : Set the recovery partition to C:\Windows\System32\Recovery

reagentc /setreimage /path C:\Windows\System32\Recovery

Step4: Unmount the Windows 2022 Image and verify the recovery partion status

Dism /Unmount-image /MountDir:C:\temp /discard

Run the command reagent /info to verify the Recovery partition Image

Advertisement

April 10, 2023 at 2:43 pm Leave a comment


Archives

Categories

Follow Hope you like it.. on WordPress.com

Blog Stats

  • 68,224 hits

%d bloggers like this: