How to add a partition using Diskpart

How to add a partition using Diskpart


It is possible to create partitions in Windows using the built in command line utility Diskpart.


Access to the Windows command line.


From the TaskBar, search for:


From the command line, enter the command:


Allow Diskpart to run, if prompted. Enter the command:

list disk

Example output:

DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 119 GB 0 B

Enter the command:

select disk 1

but replace the “1” with the number of the desired disk you would like to create a new partition on. Enter the command:

create partition primary size=10000

The ten-thousand in the argument is in Megabytes.

More Information:

Within diskpart, type:

help create


help create partition


help create partition primary

for more information.