DISKPART

 < Day Day Up > 



Allows management of disk partitions.

Use

Type DISKPART followed by the appropriate switches and parameters. Run without switches and parameters, DISKPART starts the Windows Setup partitioning program. You'll recognize the program if you have installed NT 4.0, 2000 or XP.

Switches and Parameters

/add followed by the device name and the desired size, in MB, of the partition: Creates a new partition. For example, to add a 10-MB partition, type:

DISKPART /add \Device\HardDisk0 10

Device name is defined after the /delete switch.

/delete followed by the drive letter, partition name, or device name: Deletes an existing partition. Partition name and device name are defined here:

Device name: An identifier for the hard drive that uses a direct naming convention. This precludes the confusion that can come about due to drive letters than can change. To get this, run the MAP Recovery Console command with no switch and ignore the partition portion of the output. A typical device name is \Device\Harddisk0. The device name is valid only with both the /add and /delete switches.

Partition name: This uses the same naming convention as the device name, but has the added partition number at the end. A typical partition name is \Device\Harddisk0\Partition1. The partition name is valid only with the /delete switch.

Deletion Examples

DISKPART /delete \Device\HardDisk0\Partition2 DISKPART /delete E: 



 < Day Day Up > 



PC Repair and Maintenance(c) A Practical Guide
PC Repair and Maintenance: A Practical Guide (Charles River Media Networking/Security)
ISBN: 1584502665
EAN: 2147483647
Year: 2004
Pages: 175

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net