December 21, 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.

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.

4. Type list disk and press the Enter key.

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

6. Type list partition and press the Enter key.

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

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

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

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.

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

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

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

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

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

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

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

reagentc /enable

16. Type the below command to review the status.

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

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

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