DiskPart is a command-line utility that is used to manipulate, view, create or resize the disk partitions from the command line. It was included by Microsoft in all versions of the Windows NT operating system line from Windows 2000 onwards, which replaces the fdisk which was used in MS-DOS based operating systems. It can be used to extend the existing partitions by using the unallocated space displayed in Disk Management.

DiskPart is more powerful utility than fdisk. It is basically a command-line tool that is equivalent to the Disk Management utility, which is useful in certain situations like when Windows won’t start. Also, the UI of the DiskPart is similar to the graphical interface of the Microsoft Management Console (MMC) Disk Management snap-in. Unlike the Disk Management tool, it facilitates explicit control of partitions and volumes.

Features of DiskPart utility

  • DiskPart command supports the use of scripts to automate its usage
  • It can be used to convert a basic disk to a dynamic disk, or vice versa
  • Does not operate in a single-line mode; instead DiskPart commands are read from standard input / output (I/O)
  • It even includes an error handling protocol that users can turn on or off as necessary

Users can type the DiskPart commands directly to configure storage, or can script the DiskPart via a text file script to perform multiple commands. For example, the following text file script can be sent to DiskPart to create a new partition:

create partition logical size=2048
assign letter=E

This script will create a 2 GB logical partition and assigns it the drive letter E:.

General Commands used:

To run DiskPart utility, type “diskpart” at the command prompt and press Enter. Then user can run commands inside the DiskPart environment. After completion, just type “exit” to leave the DiskPart environment. Some of the commands that are associated with the DiskPart are as listed below:

  • List Disks: It lists all the drives that are connected to the system, so that user can determine get complete details about the drives.
  • Select Disk n:  To select destination disk where image will be stored. (n represents the Disk number to be selected)
  • Detail Disk: If the user is unsure of the disk selected, this command will give you more information about it
  • List Volume To list the volume(s) on your selected disk
  • Select Volume n: Select the volume to where the image will be stored. (n represents the Volume number to be selected)
  • Delete partition: It deletes the partition with focus on the basic disk.
  • (Note: The system partition, boot partition, or any partition that contains the active paging file or crash dump cannot be deleted)

  • Clean: Removes any and all the partition or volume formatting from the disk
  • Exit : To exit DiskPart, but keeps the prompt open

If you have deleted or lost your dynamic partition that contains your vital data then, click on the link given to know the procedure to perform dynamic partition recovery effectively within a short while.

Why Choose Remo?