How to Create a Partition Using Diskpart

Written by mickey walburg
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Create a Partition Using Diskpart
Create a hard drive partition with the Diskpart utility. (hard drive 2 image by Graham Lumsden from

Diskpart is a command-line utility that can be used to create, modify and delete partitions on a Windows-based computer. It is different from other types of command-line programs because the input to the program is self-contained instead of being a single-line utility. If you wish, you can use Diskpart to create a partition on your computer's hard drive without having to go through the Disk Management graphical user interface.

Skill level:


  1. 1

    Open a command prompt by clicking on the "Start" button, selecting "Run," typing in "CMD" and then clicking the "OK" button.

  2. 2

    Type "Select Disk X" and press "Enter," where "X" is the number of the hard drive you wish to create a partition on.

  3. 3

    Type "Create partition primary" and press "Enter" to create a primary partition on the hard drive.

  4. 4

    Type "Assign Letter=Z" and press "Enter." This assigns drive letter "Z" to the partition that you just created.

  5. 5

    Type "Format FS=NTFS Label=My_New_Partition QUICK" and press "Enter." This formats the partition with the NTFS filesystem and assigns the label "My_New_Partition."

  6. 6

    Type "Exit" and press "Enter" to quit the Diskpart utility. Your partition is now set up, formatted and fully active.

Tips and warnings

  • Use caution when modifying your hard drive partitions. Improper modification of hard drive partitions can cause you to lose data and can cause your computer to cease booting properly.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.