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, Diskpart CMD or diskpart.exe cannot operate on the boot volume, i.e., the C drive. Fortunately, there is a replacement—a free tool called IM-Magic Partition Resizer—that we will introduce, along with a tutorial on changing volume size without losing data later in this article.
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)
(OS) Video 2 - How to Extend C Drive Using Disk Management After Deleting the Adjacent Partition
If the unallocated space is not next to the C drive, you can delete the next 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: Diskpart and Disk Management cannot delete the system reserved partition or recovery partition. 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 some 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:
Here is a list of reasons why Diskpart cannot expand the C drive:
More Diskpart CMD Commands:
List disk: To view the disks on the computer.
Select disk *: To select the target disk; * means the disk number from the "list disk" command. For example, if you want to select disk 1 and change the partition in disk 1, first type "list disk" and then "select disk 1."
List partition: To view the partitions on the computer.
Select partition: To select a partition. If you want to perform any disk activity on any partition, you must select it first.
Shrink: To shrink the drive. This creates unallocated space that can be added to another drive.
Extend: To extend your drive.
Format: To format the partition.
Merge: For merging partitions.
Create: To create a partition.
Delete: Use this command to delete a partition.
Possible Risks: Diskpart is a command-based utility. Many users may feel uncomfortable and 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.
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 (Trial)
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 technique 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, and for server editions, you can download the trial version. You can learn more about IM-Magic Partition Resizer Free Edition by visiting the website below:
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 produce 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 for building 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.