Win7 partition

  
        

Vista and 7 are the same in the following operations

When Windows Vista is installed, it is impossible to create extended partitions and logical partitions. Only the primary partition can be created, and the disk management in the computer management is completed after the installation is completed. It is still not possible to create extended partitions and logical partitions.

Is it necessary to establish an extended partition after establishing three primary partitions? the answer is negative. We can use the DISKPART command to create extended partitions and logical partitions under the command line:

Run CMD as an administrator and enter the command line, then run DISKPART. (select disk=N (N is the disk serial number, the first hard disk is 0, the second one is 1.....)) Enter DISKPART and enter Create PARTITION EXTENDED to create an extended partition. Note: This extended partition will include all free disk space. Then enter Create PARTITION LOGICAL to create a logical partition. This logical partition will also use all the space of the extended partition. Don't worry, when we re-enter the disk management in the computer management, we can see the extended partition and the logical partition, directly delete the logical partition that takes up all the remaining space, and then Re-establish the logical partition again.

Enter diskpart at the command prompt, press Enter, the command prompt becomes DISKPART>, and the specific partition execution command line is used:

DISKPART>list disk
Use this The command lists all the physical disks and their numbers on the computer. You can see the parameters of the disk status and total space size.

DISKPART>select disk n
where n is the first disk, 0 is the first physical disk, 1 is the second, and so on. After execution, the system will prompt Disk n to be the currently selected disk, and the subsequent operations are performed for this disk.

DISKPART>create partition primary [size=n]
This is used to create the primary partition, which means that you can also create the primary partition you just created in Disk Manager from the command line. A. Size=n, which means the size of the partition, the unit is Mb. If not specified, the entire disk is the primary partition.

DISKPART>create partition extended [size=n]
This is to create an extended partition, size=n, which means the size of the extended partition is, the unit is Mb. If you do not specify the remaining space part are extended partitions. Generally speaking, you don't have to specify the size, and the rest are made into extended partitions.

DISKPART>create partition logical [size=n]
The extended partition is available. Now you can create a logical drive. Similarly, the size of each logical drive is specified by size=n. The unit is Mb. .

DISKPART>assign letter=?
After creating a logical drive, give it a drive letter. The question mark here is the letter of the drive letter. If not specified, the command will automatically assign you a The next drive letter of the last drive letter is given to this logical drive.

Again, the primary disk, extended partition, logical drive, MBR disk (also known as the disk mode) can be created on the basic disk, up to four primary partitions, or three primary partitions. An extended partition; or create up to 128 primary partitions on the GUID partition table GPT disk. Dynamic disks cannot create primary and extended partitions.

There are some other application examples:

******************************** ************************************************
Enter list partition to list the partition on the hard disk, here to confirm that Partition1 is C drive

Enter select partition 1 Select the partition, then enter delete partition override Delete partition
******** ************************************************** **********************

Command example:

create partition primary [size=n] [offset=n] [ID=byte

Copyright © Windows knowledge All Rights Reserved