When the Windows C drive runs out of space, system performance drops and updates may fail. If unallocated space exists on your disk, you can use DiskPart to extend the C drive without reinstalling Windows.
Quick Answer: You can extend the C drive with DiskPart only if the unallocated space is directly next to the C drive right. If the space is not adjacent, DiskPart will fail and a free tool like IM-Magic Partition Resizer is required.
Links
DiskPart is a built-in Windows command-line utility used to manage disks, partitions, and volumes. It allows advanced users to extend volumes, including the system C drive.
If another partition (such as Recovery or OEM) is between them, DiskPart will not work.
Step 1: Open Command Prompt
Search for Command Prompt, right-click it, and select Run as administrator.
Step 2: Start DiskPart
Type diskpart and press Enter.
Step 3: Select Disk and Volume
Use the following commands carefully:
Step 4: Extend the C Drive
To use all available unallocated space:
extend
To extend by a specific size (in MB):
extend size=10240
(Example: 10240 MB = 10 GB)
Step 4: Exit
Type exit to end the Diskpart.
Also read: Extend c drive using Diskpart
Cause: Unallocated space is not adjacent to the C drive
Fix: Delete or move the partition between C drive and unallocated space
Cause: File system is not NTFS or partition layout is unsupported
Fix: Convert FAT32 to NTFS or use a partition manager
Cause: Command Prompt not run as administrator
Fix: Restart CMD with admin privileges
IM-Magic Partition Resizer Free is a safe and user-friendly solution powered by Resize-C. It can extend the C drive even when unallocated space is not adjacent.
Video: How to create and move unallocated space to C drive with free tool IM-Magic Partition Resizer
For Windows 11/10/8/7 => Download Partition Resizer Free [100% Free]
For Windows Server 2025-2003 => Download Partition Resizer Server [Free Demo]
| Feature | DiskPart | Partition Resizer |
|---|---|---|
| Extend C Drive | Yes | Yes |
| Requires Adjacent Unallocated Space | Yes | YES |
| Move Partitions | No | Yes |
| 2TB Max for MBR Disk | Yes | Yes |
| NTFS C Required | Yes | No |
| User Interface | Command-line | Graphical |
| Best for Beginners | No | Yes |
DiskPart is safe when commands are used correctly, but mistakes can cause data loss. Backup is recommended.
No, DiskPart requires existing unallocated space to extend any volume.
If DiskPart fails due to disk layout restrictions, Resize-C provides a reliable alternative.
Using DiskPart to extend the C drive with unallocated space is effective only under strict conditions. When those conditions are not met, Resize-C offers a flexible and safer way to resize the system partition without reinstalling Windows.