Forrest logo
back to the diskpart tool

diskpart:tldr:64f33

diskpart: Run diskpart by itself in an administrative command prompt to enter its command-line.
$ diskpart
try on your machine

Diskpart is a command-line disk partitioning utility available in Windows operating systems. It allows users to manage the hard disk partitions, volumes, and drives on a computer. With this command, you can create, delete, format, and resize partitions, assign drive letters, and set partition attributes.

Diskpart provides a more advanced and powerful way to manage disk partitions compared to other built-in tools like Disk Management. It can be particularly useful for system administrators or experienced users who need fine-grained control over disk operations or want to perform batch operations.

To use Diskpart, open the Command Prompt and type "diskpart" to launch the utility. This will take you to the Diskpart command prompt where you can enter different commands to manage disks and partitions. Some commonly used commands include:

  • "list disk": Displays a list of all available disks on the computer.
  • "select disk [number]": Selects a particular disk to perform operations on.
  • "list partition": Shows a list of all partitions on the selected disk.
  • "select partition [number]": Selects a specific partition.
  • "create partition primary": Creates a new primary partition on the selected disk.
  • "delete partition": Deletes the selected partition.
  • "format fs=[filesystem] quick": Formats the selected partition with the specified file system.
  • "extend size=[size]": Increases the size of the selected partition.

Remember that Diskpart performs low-level disk operations and should be used with caution, as actions cannot be easily undone. It is recommended to have a good understanding of disk partitioning concepts before using Diskpart.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the diskpart tool