Included with Windows NT | Replaces fdisk | |
diskpart is a command-line disk partitioning utility included in Windows 2000 and later, replacing its predecessor, fdisk.
Contents
This utility prevents creating multipartition layout for removable media such as flash drives. It is also used for partitioning internal hard drives.
How it works
diskpart supports the use of scripts to automate its usage. For example, the following text file could be supplied to diskpart to create a new partition:
create partition logical size=2048 assign letter=FThis will create a 2 GB logical partition at the beginning of the free space on the disk and assign it the drive letter F:, provided that space requirements are met.
The installed disks and their associated volumes and/or partitions can be viewed by these commands:
list disk list volume list partitionRecovery Console
On the Recovery Console, which is included in all Windows 2000, Windows XP and Windows Server 2003, there is a diskpart command which is significantly different from the one included in the actual operating system. It only provides functionality for adding and deleting partitions, but not for setting an active partition.
Versions
Some of the known versions of DiskPart are named "Microsoft DiskPart version 6.1.7601" "Microsoft DiskPart version 6.2.9200" and "Microsoft DiskPart version 6.3.9600".