If your C drive run out of space, you can find the best solutions here to extend c drive with free tools when diskpart cannot extend boot c drive.
When your C drive is full and you want to extend it, you may wonder whether it is possible to extend the volume using the Diskpart command.
Using the Diskpart commands, you can extend, create, delete, shrink, clean, and perform other disk resizing tasks under certain conditions, which will be illustrated in the following sections.
Truth: Regarding the expansion of the C drive, CMD Diskpart, diskpart.exe, and Powershell can only expand an NTFS C drive when there is adjacent unallocated space on the same disk. If your C drive does not meet this condition, fortunately, there is an alternative—a free tool called IM-Magic Partition Resizer, which we will introduce, along with a tutorial on how to change the volume size without losing data in this article.
Extend Volume | Diskpart | Disk Management | Partition Resizer |
Unallocated Space | Partition(NTFS) | NO | NO | |
Unallcoated Space | Partition(FAT32) | NO | NO | |
Extend Partition(NTFS) | Unallcoated Space | YES | YES | |
Extend Partition(FAT32, OS Drive) | Unallcoated Space | NO | NO | |
Extend Partition(FAT32, NON-OS Drive) | Unallcoated Space | YES | YES | |
Partition(NTFS) | Recovery | Unallcoated Space | NO | NO | |
Partition(FAT32) | Recovery | Unallcoated Space | NO | NO |
⚠Note: Diskpart can only extend C ntfs volume when there is contiguous unallocated space to the right of the drive you want to expand. No recovery partition or other partitions should be between the unallocated space and the drive you wish to extend. (The free tool Partition Resizer can help move any partitions without losing data if they are in the way.)
Here are some video guides to help you understand the basic steps of using Diskpart or Disk Management to extend a volume.
(Non-OS) Video 1 - How to Extend a Non-Boot Drive with Disk Management or Diskpart (Windows 11, 10, 8, 7 Supported)
If the unallocated space is not next to the C drive, you can delete the adjacent partition to extend your C drive. Deleting a partition means you are removing the data stored on that drive.
Here are the steps to delete the adjacent volume on the right side of the C drive using Diskpart to create unallocated space contiguous to the C drive, which will enable the extend function.
Also read: How to Delete a Partition Using Diskpart
Note: Disk Management cannot delete the system reserved partition or recovery partition. Diskpart and Disk Management cannot extend FAT32 partitions. A third-party free tool, IM-Magic Partition Resizer, can help with this.
If you're extending the C boot drive, you need to use Diskpart in Windows PE mode. Follow these steps if you have already created unallocated space right next to the C drive after booting into PE mode.
To extend the C drive using Diskpart, enter Diskpart in CMD, list the disks, select the disk, and then type "list volume":
Resize partition with CMD Diskpart
To select the C drive, type "select volume 0" (0 is the volume number in this example):
Resize partition with CMD Diskpart
To extend the C drive, type "extend size=
Resize partition with CMD Diskpart
If your unallocated space is not next to the C drive and you are unable to extend your C drive, you can use third-party software.
The basic Diskpart commands:
1. Run -> diskpart.exe: This takes you to Diskpart command mode.
2. List Disk: To view the disks connected to your system.
3. Select disk *
4. List partition
5. Select partition *
6. Extend size=1024 (1024 means 1GB; if there is 10GB of free space, you may type extend size=10240 instead)
Diskpart CMD can extend volumes under certain terms and conditions:
(OS) Video 2 - How to Extend C Drive Using Disk Management After Deleting the Adjacent Partition
This tool is free to use. The scenarios we discussed, where it is not possible to extend your C drive, are easily resolved by this tool.
For Windows 11/10/8/7 => Download IM-Magic Partition Resizer Free (100% Free)
For Windows Server => Download IM-Magic Partition Resizer Server (Free Demo)
This tool allows you to move the unallocated partition to the right side of the C drive, enabling you to extend it. With IM-Magic Partition Resizer Free Edition, you can shrink and merge partitions without losing files. The tool is designed with a rollback feature that keeps your data safe in case your computer shuts down during any resizing activity.
Resize partition with IM-Magic Partition Resizer Free
The tool is available for free for all Windows versions. For server editions, you can download the trial version.
This step-by-step guide will show you the right way to extend any volume for free on Windows 11/10/8/7 computers.
Step 1: Download, install, and launch the program.
Step 2: Right-click the large volume in Partition Resizer, select RESIZE/MOVE PARTITION from the pop-up menu, and then shrink the border of the large partition to create unallocated free space. (The large volume must be on the same disk as the target volume you want to expand; if it's a large volume from another disk, RAID must be applied to build the disks.)Shrink D drive by right-clicking D in Partition Resizer and selecting the "Resize/Move" option
Move the border of the partition to shrink it
Step 3: Then right-click C in Partition Resizer and go to the option RESIZE/MOVE PARTITION, and drag the border to acquire the free space.
Steps to resize your disk partition
Step 4: Apply the changes.
Here is a list of reasons why Diskpart cannot expand the C drive:
More Diskpart CMD Commands:
Possible Risks: Diskpart is a command-based utility, and many users may feel unfamiliar or unsure when typing commands for resizing activities. If you type a command and mistakenly press Enter, you will not be able to cancel the activity. This poses a risk when you are not familiar with Diskpart.
To resize the C drive, move unallocated space, or extend a drive without losing data, IM-Magic Partition Resizer Free Edition is a free tool that handles most important disk-related tasks.