This article introduces how to extend C drive with DiskPart command in Windows 10. The introduction, precondition, steps to extend and limitations.
What is diskpart command
Diskpart is a command-line utility used to manipulate disk partitions in all versions of Windows clients and Windows Server beginning with Windows XP and Windows Server 2003. The utility adds capability to the Windows Disk Management snap-in. Users can type Diskpart commands directly to configure storage, or script Diskpart to perform multiple commands via a text file script, such as create, delete, format partition, convert basic disk to dynamic.
How to run Diskpart in Windows 10
There are two common ways to run diskpart command.
- Press Windows and R on the keyboard.
- Type diskpart and press Enter.
- Open C:\Windows\System32
- Double click diskpart.exe
Precondition to extend with Diskpart
Only when there is adjacent Unallocated space on the right side, you can extend C drive, otherwise, you'll receive error message 'There is not enough usable free space on specified disk(s) to extend the volume.'
Windows 10 diskpart has shrink command, but it cannot make Unallocated space on the left side when shrinking D, so extend command cannot extend C drive. The only option is by deleting the adjacent volume D.
However, it is not a good idea especially when Windows Services and applications are running from D. After delete, all shortcuts and part of programs will stop working even if you transfer all files in D to other partition.
How to extend C drive with diskpart cmd
Step 1: Type list volume in diskpart command prompt window and press Enter, you'll see all partitions but NO Unallocated space.
Step 2: Type select volume 1 to give focus to the system C: drive.
Step 3: Type extend to proceed extending.
If you extend C drive again, you'll receive error message 'There is not enough usable free space on specified disk(s) to extend the volume.'
Limitation of diskpart when extending C drive
- Only when there is adjacent Unallocated space on the right side, extend command is valid.
- Only NTFS partition is supported to extend.
- Unallocated space is not displayed in command window, so you don't know whether there is and where it is.
- Volumes are shown as list without structure.
- Operations cannot be undone, incorrect operation could cause data loss.
Because of the limitations, DiskPart command is not the best tools to resize partition and extend C drive on Windows 10. To do this, professional partition software is better choice.
Download NIUBI Partition Editor, you'll see all disks with partition structure on the right, available operations are listed on the left.
Step 1: Right click drive D and select "Resize/Move Volume", drag left border towards right in the pop-up window.
Step 2: Right click drive C and select "Resize/Move Volume" again, drag right border towards right in the pop-up window.
This software is designed to work in its virtual mode, all operations you do will be listed as pending. So if you did something wrong, simply click Undo to cancel. To change real disk partitions, click Apply to execute.
Besides resizing and extending disk partitions, NIUBI Partition Edition can help you do many other disk/partition management operations, such as merge, copy, convert, defrag, wipe, repair, scan, set Active partition, etc.