First, DiskPart commonly used commands are:
1, select: Select the object to be manipulated, such as a disk or partition, etc.
2, Clean: Clear all partitions on this disk
3. Active: Mark a partition as Aactive, that is, activate the partition to make it a system disk
4. Delete: Delete partition
5, Exit: Exit DiskPart state
6, Extend: The capacity of the partition to expand
7, Help: Display the assistance information
8. List: List disk or partition
Second, the use of DiskPart command to partition the hard disk
1, with Windows7 installation CD-ROM to start the computer, to the following image interface, in the keyboard press SHIFT+F10 key combination;
2, and then in the Open Command Prompt window to enter DiskPart, start the partition program;
3, then enter the "list disk", displaying information on the disks, number 0, size 158G, has not been used, if there are other disks on the computer, will also be displayed, and given different numbers, as shown in the following figure;
4, then enter "select Disk 0", select the disk number 0, and then enter "clear", clearing all partitions on the disk;
5. Create primary partitions and extended partitions:
(1) Enter the "create partition Paimary Size-40960" to create the primary partition 40GB;
(2) Enter "active" to activate the primary partition;
(3) Enter "format quick" to quickly format the primary partition;
(4) input "Create partition EXtended", divided into extended partition;
(5) Enter "create partition logical Size-80000", create logical partition 78;
(6) Enter "format quick" to quickly format logical partitions;
6. Create a second logical partition:
(1) input "Create partition logic" to divide the disk remaining space into the second logical partition;
(2) Enter "format quick" to quickly format the second logical partition;
(3) Enter "Exit" and Exit "Distpart";
(4) Enter "Exit" to exit the command prompt;
7, want to create a logical partition, you can refer to the previous step to create, and then exit the command command prompt will return to the Windows7 installation interface, continue to "next", where you can see the results you just now.
8, and then use the DiskPart command to the hard disk partition is done.