| diskpart | |
|---|---|
| Developers | Microsoft, Lee Schroeder |
| Operating system | Windows,ReactOS |
| Platform | Cross-platform |
| Predecessor | fdisk |
| Type | Command |
| License | Windows:Proprietarycommercial software ReactOS:GPLv2 |
| Website | learn |

diskpart command
diskpart commandIncomputing,diskpart is acommand-linedisk partitioning utility included inWindows XP and laterMicrosoftoperating systems, replacing its predecessor,fdisk.[1][2] The command is also available inReactOS.[3]
Thediskpart utility is used for partitioning internal hard drives but can also formatremovable media such asflash drives.[4]
It has long been possible, theoretically, to partition removable drives – such as flash drives or memory cards – from within Windows NT 4.0 / 2000 / XP; e.g., during system installation. In reality, however, it was not possible to create, for instance, a recovery console, for such a device. A message would appear: 'Cannot format removable disk'. Microsoft noticed this error and responded by disabling the functionalities of creating and viewing partitions on the device from within Windows, beginning with Vista up to[clarification needed] Windows 10.[citation needed]
Withdiskpart, scripts are supported to facilitate such functions. For example, the code below would create a new partition:
create partition logical size=2048assign letter=F
Specifically, the above will create a 2 GB logical partition, provided that adequate space is available, and assign it thedrive letter 'F:'.[5]
The installed disks and their associated volumes and/or partitions can be viewed using these commands:
list disklist volumelist partition
Thesel command will select them.The commandclean will perform a "quick" disk wipe,andclean all zeroes out the entire partition/disk.The ReactOS version was developed by Lee Schroeder and is licensed under theGPLv2.[6]
On the Recovery Console, which is included in all Windows 2000,Windows XP andWindows Server 2003, there is adiskpart 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 anactive partition.[7][8]
Thiscomputer data storage-relatedsoftware article is astub. You can help Wikipedia byadding missing information. |