Insights Technical Hub How to add a partition using Diskpart

How to add a partition using Diskpart

Introduction:

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

Requirements:

Access to the Windows command line.

Procedure:

From the TaskBar, search for:

cmd

From the command line, enter the command:

diskpart

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

or

help create partition

or

help create partition primary

Let's make your job easier

Sign up to get insightful content