This page covers multiple Diskpart commands that you can use to create partitions and volumes, as shown below:
Please provide the English content you would like translated into Chinese. I'll do my best to assist you with the translation.
Diskpart, also known as the built-in free disk tool of Windows, offers multiple disk partition management functions to Windows users for device error fixing, programming, development, and testing, etc. Due to its usability, free cost, and flexibility, Diskpart is quite popular among Windows users and often used for managing hard disk partitions.
Improper management of partitions can leave you with a lot of unallocated free space. Hence, Windows users often resort to using the Diskpart create partition command to manage their system drives and storage devices.
In Windows, you can create different types of partitions. Regardless of the partition type, you can use Diskpart and its various commands to create partitions in Windows 11/10.
Here, our article will illustrate the detailed steps of creating a partition with the Windows disk partition command.
A detailed guide on how to use Diskpart to create different volumes. Share this article to help other users encountering the same issue.
"Diskpart create partition" is an inbuilt command in the Windows operating system. With this command, you can manage, create, and edit partitions on your disk within Windows. Let's look at how to use the Diskpart command to create various partition volumes.
The Diskpart command also lets you create a system volume, which is also known as a primary partition. This is where you install the operating system and programs.
Use the diskpart command as follows to create a system volume:
Step 1: Open the Command Prompt on your Windows computer.
Step 2: Type diskpart, and then type list disk.
Step 3: Select the disk with the command select disk x. (Replace x with the number of the disk you want to select.)
Step 4: Type the command create partition primary size=20480 to create a new partition of a specific size.
Issuing the above command will create a primary system volume partition. If you need to create a logical partition, replace create partition primary with create partition logical. You can also adjust the size as needed.
5. When you're done, type exit to close Disk Management.
After you create the System Reserved partition, you can perform a clean installation of Windows or an application on it.
[Infographic] Create Partitions with Diskpart, Disk Management, or Software
Apart from Diskpart, you can also create partitions with Disk Management or third-party partition management software, such as Partition Master. Learn about the differences and detailed steps in this guide.
The boot volume is the primary partition of your operating system, also called the bootable partition. All of the operating system's files are stored in this partition. In simple terms, your operating system resides in the Boot Volume section.
To enable a computer to boot from it, you also need to mark the boot volume as active. To do this using the diskpart command in a Windows operating system, follow these steps:
Step 1: Open the Command Prompt on your Windows computer.
Press the "Windows + R" keys to open the "Run" dialog box. Type cmd, then click OK.
Step 2: Type the diskpart command in CMD to open the Disk Management utility.
Step 3: Type list disk and press Enter to list all the disks.
Step 4: Select the disk with the command select disk x (replace x with the number of the disk you want to select).
Step 5: Enter the command list volume to see the volumes available on the disk.
Step 6: Type the command select volume n to choose the volume you want to set as the boot partition. (n is your volume number.)
Step 7: Type the command active to mark the selected partition as the boot partition.
Now exit the CMD, and restart your system to see the changes.
Dynamic disks let you manage your disks more flexibly.
When you create a dynamic disk, you do not have to specify its size. The disk can grow over time.
To create a dynamic volume by using the Diskpart command, follow these steps:
Step 1: Open the Command Prompt on your Windows computer.
Step 2: Type diskpart.
Step 3: Type list disk.
Step 4: Type list volume.
Step 5: Use the command select disk x to choose the disk (replace x with the number of the disk you want to select).
Step 6: Type the command convert dynamic to convert the selected volume to a dynamic volume.
RAID 5 is a high-performance disk volume that lets you make the most of your storage space. Besides better storage management, it also provides good disk safety and performance.
Use the Diskpart command in the following way to create a RAID-5 volume:
Step 1: Open the Command Prompt on your Windows computer.
Step 2: Type diskpart.
Step 3: Type list disk to view the current disk number.
Step 4: Type create volume raid disk=1 (where 1 is the number of the disk you want to create as a RAID-5 volume. You can change this number to refer to another disk).
A mirrored system partition enables you to create a copy of data from another volume. Users primarily need it to back up device data. Here are the steps to create a mirrored system volume using Diskpart:
Step 1: Open the Command Prompt on your Windows computer.
Step 2: Type diskpart.
Step 3: Type list disk, and then use the select disk x command to choose the volume you want to mirror.
Step 4: Type list volume to list the volumes on the selected disk.
Step 5: Type the command select volume c (replace c with the letter of the volume you want to mirror) to select the volume to be mirrored to the disk.
Step 6: Type the command add disk=x, where x is the disk that contains the volume you want to back up.
Step 7: Enter the retain command to successfully create the image system volume.
The UEFI (Unified Extensible Firmware Interface) system partition holds the information needed for system initialization and booting. You can create a UEFI system partition with diskpart using the following commands:
Step 1: Open the Command Prompt on your Windows computer.
Step 2: Type diskpart in the CMD, and press Enter.
Step 3: Type the list disk command, and then select the disk x to choose the disk.
Step 4: Convert the selected disk to GPT using the convert gpt command.
Step 5: Create the UEFI system partition with the command: create partition efi size=100
That's it – this command will create an UEFI system partition on the drive you chose.
With the Diskpart create partition command, you can create any type of volume partition. However, this method is not suitable for beginners and those unacquainted with the command-line interface.
Another solution is to use AOMEI Partition Assistant Free, a reliable disk partition software that can perfectly replace Diskpart.
"Partition Master Free" can help you convert partitions, manage them, and create new ones. It's a graphical tool, so you don't have to remember or type any commands.
With just a few clicks, you can easily create the partition volume of your choice. It is highly recommended because any user with computer experience can use this software with ease.
How to Use a Partition Master Tool
Step 1. Launch Partition Master. On the main interface, right-click on the unallocated space on the hard drive or external storage device and select "Create".
Step 2. Adjust the size of the new partition, the file system (choose a filesystem as needed), label, etc., and click OK to proceed.
Step 3. Click the Run 1 Task button and create the new partition by clicking Apply.
Watch the following video tutorial to learn how to create a partition on an NTFS, FAT, or EXT file system.
In Windows operating systems, several types of partitions exist, such as Boot Volume, System Volume, Dynamic Volume, RAID-5 Volume, Mirrored System Volume, and UEFI System Partition.
The Diskpart create partition command helps you create these partitions in Windows. The Diskpart tool is built-in, so you can access it through CMD without installing any software.
Unfortunately, not everyone likes to type commands to create partitions. For those who aren't comfortable with that, there's a simpler way to create partitions in Windows.
Another option is to use the tool Partition Master Free Edition, which can do everything the diskpart command can, but with a few mouse clicks.
Aside from the tutorials above, you might have other questions about creating different types of partitions with Diskpart. Check out the questions below, and hopefully, you'll find the answers and solutions you need here.
**1. How to create a GPT partition using Diskpart?** In the Windows operating system, you can create a GPT (GUID Partition Table) partition using the built-in command-line tool called Diskpart. Follow these steps: 1. Open Command Prompt (run as administrator): - Press `Win + X`, then choose "Command Prompt (Admin)" or "Windows PowerShell (Admin). 2. Enter the following commands and press Enter to list all disks: ``` diskpart list disk ``` 3. Select the disk where you want to create the GPT partition, for example, if the disk number is 1, type: ``` select disk 1 ``` 4. Clear the disk data (this will delete all data on the disk, make sure you select the correct one!): ``` clean ``` 5. Create the GPT partition: ``` convert gpt ``` 6. Create a new GPT partition (e.g., allocate 100 GB of space): ``` create partition primary size=100GB ``` 7. Assign a drive letter or path to the new partition (optional): ``` assign letter=X ``` Replace `X` with the drive letter you want to assign. 8. Finally, exit Diskpart: ``` exit ``` Now, you should have successfully created a GPT partition. Note that these actions will permanently remove data from the disk, so make sure to back up your data before proceeding.
If the answer is yes, proceed with the following steps:
If not, back up all your data to another drive, then continue with the steps here.
How to create an MBR partition using Diskpart?
If the answer is yes, please follow these steps:
If not, back up all important data to another drive, and then follow the steps in this article:
How to Create Multiple Partitions Using Diskpart
Repeat the process to create more partitions on the target disk. Note that an MBR disk only allows a maximum of 4 primary partitions. If you want to create more than 4 primary partitions on a disk, you need to first convert the MBR disk to GPT.