Skip to content

Diskpart Command in Windows: A Beginner’s Guide

4 December 2023
Diskpart Command in Windows

If you’re a Windows user, you’ve probably come across the term “Diskpart” at some point. Diskpart is a powerful command-line tool that allows you to manage your disks and partitions. While it may seem daunting at first, Diskpart is actually quite easy to use once you get the hang of it.

This blog post will provide you with a beginner’s guide to using Diskpart. We’ll cover the basics, such as how to list disks and partitions, and how to create and format partitions. We’ll also cover more advanced topics, such as how to extend partitions and convert disks.

What is Diskpart?

Diskpart is a command-line tool that allows you to manage your disks and partitions. It is included with all versions of Windows, and it is a powerful tool that can be used to perform a wide range of tasks.

To use Diskpart, you must first open a Command Prompt window with administrator privileges. To do this, click the Start button, type “cmd” into the search bar, and then right-click on the Command Prompt icon and select “Run as administrator”.

How to Use Diskpart

Once you have opened a Command Prompt window with administrator privileges, you can start using Diskpart. To do this, type “diskpart” into the Command Prompt window and press Enter.

Once you have started Diskpart, you will be prompted to enter a command. To see a list of all available commands, type “help” and press Enter.

Basic Diskpart Commands

Here are some of the most basic Diskpart commands:

  • list disk: Lists all of the disks on your computer.
  • select disk <disk number>: Selects the specified disk.
  • list partition: Lists all of the partitions on the selected disk.
  • select partition <partition number>: Selects the specified partition.
  • create partition primary size=<size in MB>: Creates a new primary partition.
  • format partition fs=<file system> quick: Formats the selected partition.

Advanced Diskpart Commands

Here are some more advanced Diskpart commands:

  • extend partition: Extends the selected partition.
  • shrink partition size=<size in MB>: Shrinks the selected partition.
  • convert disk dynamic: Converts a basic disk to a dynamic disk.
  • convert disk basic: Converts a dynamic disk to a basic disk.

Using Diskpart to Manage Your Disks and Partitions

Diskpart is a powerful tool that can be used to perform a wide range of tasks. Here are a few examples of how you can use Diskpart to manage your disks and partitions:

  • Create a new partition to install a new operating system.
  • Format a partition to make it usable.
  • Extend a partition to increase the amount of storage space available.
  • Shrink a partition to free up storage space.
  • Convert a disk from basic to dynamic or vice versa.

Conclusion

Diskpart is a powerful tool that can be used to manage your disks and partitions. It is a bit more advanced than some of the other tools that are available in Windows, but it is not too difficult to learn. If you are comfortable using the Command Prompt, you should be able to learn Diskpart fairly easily.

I hope this blog post has helped you to learn more about Diskpart. If you have any questions, please feel free to leave a comment below.