December 1, 2024
122023_1828_FixWindowsS1.png
When you try to extend the C drive from the Disk Manager tool but the Extend volume greys out, the recovery partition prevents the C drive from extending the volume.

When you try to extend the C drive from the Disk Manager tool but the Extend volume greys out, the recovery partition prevents the C drive from extending the volume.

Today, I will show you how to solve it.

122023 1828 FixWindowsS1 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

1. Mount the Windows Server 2022 (2019) ISO image file.

2. Open the Command Prompt as administrator.

3. Type diskpart and press the Enter key.

122023 1828 FixWindowsS2 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

4. Type list disk and press the Enter key.

122023 1828 FixWindowsS3 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

5. Type select disk 0 and press the Enter key.

122023 1828 FixWindowsS4 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

6. Type list partition and press the Enter key.

122023 1828 FixWindowsS5 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

7. Type Select Partition 4 and press the Enter key.

122023 1828 FixWindowsS6 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

8. Type delete partition override and press the Enter key.

122023 1828 FixWindowsS7 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

9. Type exit to leave DiskPart and press the Enter key.

122023 1828 FixWindowsS8 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

10. Type the below command to mount the deployment image and management tool, and press the Enter key.

DISM /MOUNT-Image /IMAGEFIle:E:\Sources\Install.wim /index:1 /mountdir:c:\Temp /Readonly /optimize

Note:

You need to create the Temp folder manually.

122023 1828 FixWindowsS9 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

11. Type the below command to Robocioy the Recovery data.

Robocopy /MIR c:\Temp\Windows\System32\Recovery\ c:\Windows\System32\Recovery

122023 1828 FixWindowsS10 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

12. Type the below command to reset the recovery image.

reagentc /setreimage /path c:\windows\system32\recovery

122023 1828 FixWindowsS11 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

13. Type the below command to unmount the deployment image and management tool.

122023 1828 FixWindowsS12 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

14. Type the below command to check the Windows RE and system configuration.

122023 1828 FixWindowsS13 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

15. Type the below command to enable the Windows RE.

reagentc /enable

122023 1828 FixWindowsS14 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

16. Type the below command to review the status.

122023 1828 FixWindowsS15 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

17. Open the Disk Management tool and right-click C drive. You can now select Extend Volume for C drive.

122023 1828 FixWindowsS16 - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

I hope you enjoy this post.

Cary Sun

X: @SifuSun

Web Site: carysun.com

Blog Site: checkyourlogs.net

Blog Site: gooddealmart.com

Amazon Author: Amazon.com/author/carysun

ca16fbd3199de5f66b829b87082fb970?s=80&d=retro&r=g - Fix Windows Server 2022 (2019) Recovery partition to prevent C drive extend volume issues

Author: Cary Sun

Cary Sun has a wealth of knowledge and expertise in data center and deployment solutions. As a Principal Consultant, he likely works closely with clients to help them design, implement, and manage their data center infrastructure and deployment strategies.
With his background in data center solutions, Cary Sun may have experience in server and storage virtualization, network design and optimization, backup and disaster recovery planning, and security and compliance management. He holds CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1999. Cary is also a Microsoft Most Valuable Professional (MVP), Microsoft Azure MVP, Veeam Vanguard and Cisco Champion. He is a published author with several titles, including blogs on Checkyourlogs.net, and the author of many books.
Cary is a very active blogger at checkyourlogs.net and is permanently available online for questions from the community. His passion for technology is contagious, improving everyone around him at what they do.

Blog site: https://www.checkyourlogs.net
Web site: https://carysun.com
Blog site: https://gooddealmart.com
Twitter: @SifuSun
in: https://www.linkedin.com/in/sifusun/
Amazon Author: https://Amazon.com/author/carysun