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
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
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:
(Note: The system partition, boot partition, or any partition that contains the active paging file or crash dump cannot be deleted)
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.