1. Home
  2. Computing & Technology
  3. PC Support

Diskpart

By Tim Fisher, About.com

What Is the Diskpart Command?:

The diskpart command 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 \Device\HardDisk0 5000

In the above example, the diskpart command creates a 5,000 MB partition on the hard drive located at \Device\HardDisk0.

diskpart /delete \Device\HardDisk0\Partition1

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

diskpart /delete G:

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

Diskpart Command Availability:

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

Diskpart Related Commands:

The following commands are related to the diskpart command:

Fixboot | Fixmbr | Bootcfg

Explore PC Support
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PC Support
  4. Glossary / Terms
  5. D
  6. Diskpart - Diskpart Command Details>

©2009 About.com, a part of The New York Times Company.

All rights reserved.