Manage Disk Partitions with Diskpart Utility

Diskpart is a powerful command-line utility in Windows that allows users to manage disk partitions effectively. you want to create a new , delete partitions.

3/8/20252 min read

Introduction to Diskpart

Diskpart is a powerful command-line utility in Windows that allows users to manage disk partitions effectively. Whether you want to create a new partition, delete an existing one, or extend a current partition, Diskpart offers a straightforward way to perform these tasks. In this guide, we will take you through each process step-by-step.

Creating a New Partition

To create a new partition using Diskpart, follow these steps:

  1. Open Command Prompt as Administrator: Click on the Start menu, type 'cmd', right-click on 'Command Prompt', and select 'Run as administrator'.

  1. Access Diskpart: In the Command Prompt window, type diskpart and press Enter. This will open the Diskpart utility.

  2. List Disks: Type list disk to see all available disks. Note the disk number where you want to create the partition.

  3. Select the Disk: Type select disk [disk_number] (replace [disk_number] with the actual number) to choose the disk.

  4. List Partitions: Type list partition to see existing partitions on the selected disk.

  5. Create the Partition: Type create partition primary size=[size_in_MB] to create a new partition. Adjust the size as needed.

  6. Format the Partition: To ensure the partition is usable, format it by typing format fs=ntfs quick label=[your_label].

  7. Assign a Drive Letter: Finally, type assign letter=[desired_letter] to assign a drive letter to the new partition.

Your new partition is now ready for use!

Deleting a Partition

When you need to delete a partition, follow these steps:

  1. Open Diskpart: As before, open the Command Prompt and type diskpart.

  2. Select the Disk: Use select disk [disk_number] to select the disk containing the partition you wish to delete.

  3. List Partitions: Type list partition to locate the partition you want to delete.

  4. Select the Partition: Type select partition [partition_number] to choose the partition.

  5. Delete the Partition: Finally, type delete partition to remove the partition. If it is a system or protected partition, additional steps may be required.

The partition has been successfully deleted.

Extending a Partition

If you need to extend a partition, follow the steps below:

  1. Open Diskpart: Start by running the Command Prompt and typing diskpart.

  2. Select the Disk: Enter select disk [disk_number] to select your target disk.

  3. List Partitions: Use the list partition command to see the existing partitions.

  4. Select the Partition to Extend: Choose the partition you wish to extend by typing select partition [partition_number].

  5. Extend the Partition: Use extend size=[size_in_MB] to increase the size of the partition. Ensure there is unallocated space available to use this command.

You've now successfully extended your partition!

Conclusion

Managing disk partitions using Diskpart is an efficient way to organize your storage space in Windows. By following these steps, you can create, delete, and extend partitions with ease. Always remember to back up important data before making significant changes to your system.

a computer screen showing a computer screen with a computer screen showing a picture of a
a computer screen showing a computer screen with a computer screen showing a picture of a
a computer screen shot of a computer screen shot of a computer screen shot of a
a computer screen shot of a computer screen shot of a computer screen shot of a