DiskPart: Create Primary or Extended Partition for Windows 11/10/8/7  

DiskPart: Create Primary or Extended Partition for Windows 11/10/8/7


Table of Contents
  1. Why need to create partition?
  2. How do I create a new partition using DiskPart?
  3. The DiskPart alternative - Qiling Disk Master
    1. Method 1: create partition with Qiling Disk Master GUI
    2. Method 2: create partition with Qiling Disk Master Command-line

Why need to create partition?

Windows users know that many computer's disks are not in the best state at the first time. If you haven't partitioned your disk after you installed the system, you will find that the disk seems not reasonable. You may want to partition a part from the disk to put the data specially, thus, creating a partition for your computer is necessary. Or you may would like to create a second partition for installing another operating system (dual-boot). Even when you format disk partition, you need to create partition to use it again.

How do I create a new partition using DiskPart?

DiskPart is a disk partition management command line tool that is built-in all Windows versions, such as Windows11, Windows 10, Windows 8, Windows 7. You can use DiskPart to create primary/logical/extended partitions on GPT and MBR disks in your computer. Using the command-line can totally replace the Windows interface. DiskPart provides three types of create partition, so it has three different commands.

1. First, open a Command Prompt by clicking Start -> All programs ->Accessories -> Command prompt, or pressing "WIN+R" and typing "cmd". Type: diskpart.

2. At the DiskPart prompt, type: list disk

All the disks in current system will be listed so that you know the disk number on which you want to create a partition.

3. Type: select disk n

n means the number of the disk. To create a partition, please make sure there is unallocated space on the disk you select.

4. After selecting the disk, type one of the following command according to your requirements.

create partition primary [size=n] [offset=n] [ID=byte | GUID] [noerr]

or

create partition extended [size=n] [offset=n] [noerr]

or

create partition logical [size=n] [offset=n] [noerr]

5. Type: assign letter=H

Assign drive letter can give the partition a name.

For example, how to use DiskPart to create primary partition? You can refer to the following example.

Diskpart Create Partition

You can change the step4's command to create other types of partition. for example, if you want to use DiskPart to create extended logical partition, change command in Step4. Is DiskPart the only way to create partition? No!

The DiskPart alternative - Qiling Disk Master

DiskPart is a great disk management tool, but it does have many limitations.

◉ To perform it on the computer, you must be a member of Administrators group, or you must have been delegated the appropriate authority.

◉ You can create primary/extended/logical partitions only on basic disks.

◉ You cannot create partitions on removable media.

To overcome those limitations, find a software to replace it is an effective way. Fortunately, the Qiling Disk Master is a complete, reliable and easy hard disk partition manager which provides both GUI and command-line to partition disks in Windows 11/10/8.1/8/7/Vista/XP and Windows Server 2000/2003/2008 (R2)/2011/2012 (R2)/2016.

Method 1: create partition with Qiling Disk Master GUI

Qiling Disk Master provides you a graphical user interface (GUI) to partition hard drives. You can use it t create partition on an existing partition, or an unallocated space. With the intuitive interface, creating partition for computer should be very easy that even a noob can operate alone.

Step1. Download, Install and launch Qiling Disk Master. You will see its concise main interface with the basic environment of your hard drive(s).

Step2. As we mentioned above, you can use it to create new partition directly on an existing partition or an unallocated space. Just right-click on a partition which has enough free space, and select "Create Partition" at the drop-down menu.

Create Partition

Step3. After clicking "Create Partition", it will pop out a window where you can resize partition for your new partition by drag the arrow to left or right, or you can type the number in the box.

Resize Partition

Step4. Now, you can preview the change of your hard drive in the main interface. Don't forget to click Proceed on the toolbar to submit all operations.

Apply

Qiling partassist.exe uses the very simple command so that it can be used more easy than DiskPart, you do not need to list every disk every time, just do it with the whole commands. Besides, you can learn more how to use Qiling Disk Master Command Line, please click here.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!