How to partition with DiskPart

Source: Internet
Author: User
Tags command line continue

Partitioning is a common practice for people who often install systems. For some low-level users always like to use some third-party partitioning tools. For example, PM, PQ, DM, Fdisk and so on, as well as the PE environment, such as zoning tools, these tools have their own advantages. Notable advantages: simple operation. But inefficient, and we are not always with the side and to download. Actually, we don't have to do that. The system's DiskPart command is well partitioned and highly efficient. No additional damage to the hard drive! For example, under the Windows 7 installation interface, we found a limit of 4 primary partitions, and in this graphical installation interface we were unable to create an extended partition. All of the partitions you create are primary partitions and can only be four. What do we do? Using Third-party tools? In fact, this time we can use the DiskPart command to solve this problem!

Steps/Methods

1. Where do you want to install Windows? Interface press and hold "shit" +f10, pull up command line interface!

2. Enter the "Diskpart" command! For information such as the version that prompts Diskpart

3. Use the "list disk" command to list all the physical disks on the current computer (this example is shown in the virtual machine for screenshots). A total of 100G disks)

Of course, a few disks will show a few disks, if you check the U disk on the computer, will also be listed. The disks are sorted from 0 onwards, sequentially. The following figure:

4. Use "Select Disk X" To select the physical disk you want to operate. Where "X" represents the number of the disk.

For example, to select 100G of disk, use select Disk 0, select the following 8G u disk, use Select Disk 1. After the command is executed, the system prompts you for the currently selected disk. The following figure:

5. Use the "Detail Disk" command to view the details of the disk, and be sure to select a disk before use (that is, select disk X)

6. Clear the physical disk for all information using the clean command

7. So far, the preparations have been completed and the formal zoning is now in place. First you need to know some basic knowledge:

Primary partitions, extended partitions, and logical partitions. A hard disk has at least 1 primary partitions, up to 4, and the extended partition can be no more than 1. and the primary partition + extended partition should not exceed 4 in total. Logical partitions can have several. After dividing the primary partition, you should divide the remaining hard disk capacity into the extended partition. Extended partitions cannot be used directly, and must continue to be partitioned into logical partitions, which means that logical partitions are partitioned from extended partitions and are part of extended partitions! The sum of the capacity of all logical partitions equals the extended partition! Hard disk capacity equals primary partition Plus extended partition capacity! The primary partition is used by the computer to start the operating system, so every operating system startup, or boot, should be hosted on the primary partition. After you understand this, you should know what to do next. Yes! Create a primary partition first!

8. Use "CREATE partition primary size=30720". Where create partition represents creating partitions. Primary indicates that the creation is a primary partition. If this position is logical: Represents a logical partition, extended: Represents an extended partition. Size: Represents partition size, Unit m

9. Use "active" to activate the primary partition and format it. Why activate? Because the partition information and the unique active partition mark are written to the hard disk partition table after activation, the BIOS detects the primary partition's operating system (Io.sys file) when the computer is started, and then the operating system starts to control the startup power.

10. The next task is to divide the remaining capacity into extended partitions. We have divided the 100G hard disk into 30G to the primary partition. 70G is left to create an extended partition.

11. Use "List partition" to view the partitions that have been created!

12. Create the first logical partition. Use the command "Create partition logical size=30720".

13. View the currently created partitions, and then create a second logical partition. Because we have created a 30G primary partition. Now intend to: 70G extended partition =30g logical partition +20 logical partition +10G logical partition +5G logical partition +5G logical partition

14. Create a third logical partition. At this point, do you want to move the focus (that is, *) to the extended partition 0. The answer is that it is not necessary. Press the UP arrow directly to bring up the command you used earlier. Change the size of the rear digits. You can continue to create logical partitions. Because logical partitions are always created under an extended partition, all the partitions we don't need to worry about are created in another partition!

15. If we accidentally create a mistake, you can use the Delete partition command to delete the partition. Of course, be aware that the current focus must be on this partition. Now we're going to remove the 1G partition 4 that was created before, as shown below

16. Create the third chapters partition (the third partition before it is wrong and recreated)

The following figure:

17. View the created partitions:

We can see that the partition created using the DiskPart command breaks through the fact that only 4 primary partitions can be created under the GUI, and the limitations of the 100M system partition are preserved.

Attention matters

First: Always pay attention to the position of the current focus. is the location of the *.

Second: The primary partition must be set to active

Third: All logical partitions are created in the extended partition.

Four: can use at any time? Get help.

Five: not familiar with the computer users, do not imitate the operation!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.