The diskpart utility is used for partitioning internal hard drives but can also format
removable media such as
flash drives. 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 Windows 10. With diskpart, scripts are supported to facilitate such functions. For example, the code below would create a new partition: create partition logical size=2048 assign letter=F Specifically, the above will create a 2 GB logical partition, provided that adequate space is available, and assign it the
drive letter 'F:'. The installed disks and their associated volumes and/or partitions can be viewed using these commands: list disk list volume list partition The sel command will select them. The command clean will perform a "quick" disk wipe, and clean all zeroes out the entire partition/disk. The ReactOS version was developed by Lee Schroeder and is licensed under the
GPLv2. ==Recovery Console==