DISKPART


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.

Device name and partition 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:




The A+ Certification & PC Repair Handbook
The A+ Certification & PC Repair Handbook (Charles River Media Networking/Security)
ISBN: 1584503726
EAN: 2147483647
Year: 2003
Pages: 390

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