| < Day Day Up > |
|
Allows management of disk partitions.
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.
/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.
DISKPART /delete \Device\HardDisk0\Partition2 DISKPART /delete E:
| < Day Day Up > |
|