Windows Diskpart Command

Diskpart is a Recovery Console command used to create or delete partitions on hard drives.

Diskpart Command Syntax
diskpart /add
/add = The /add option will create a new partition on the specified hard drive.
diskpart /delete
/delete = This option will remove a specified partition on a specified hard drive.
Diskpart Command Examples:

diskpart /add DeviceHardDisk0 10000

In the above example, the diskpart command creates a 10,000 MB partition on the hard drive located at DeviceHardDisk0.

diskpart /delete DeviceHardDisk0Partition1

In the above example, the diskpart command will remove the Partition1 partition located on the hard drive DeviceHardDisk0.

diskpart /delete E:

In the above example, the diskpart command will remove the partition currently assigned the drive letter E.

Note:
The diskpart command is only available from within the Recovery Console in Windows 2000 and Windows XP.

Diskpart Related Commands

Leave a Reply

Your email address will not be published.