Techniques for DiskPart partitioning under WinPE

Source: Internet
Author: User

Did you know there was a file called DiskPart.exe under WinPE? It is a dedicated command-line tool for Disk Management in Windows XP, so it is certainly the case for managing hard disk partitions in WinPE. Let's use it below.

Enter WinPE's cmd mode, type "DiskPart" and enter the DiskPart command line, type "list disk", showing two hard drives (the second is for testing), Disk 0 and Disk 1, respectively. Type "Select Disk=1", meaning that you select the specified disk and move the focus to the disk, and the next action is for it, type "detail disk" to view the details of disk 1, and now Disk 1 is an active partition C, with a format of FAT32 and a capacity of 8G. The following is the actual operation of the disk 1 into two areas, respectively, NTFS-formatted 4G primary partition E and FAT32 format 4G logical partition F, operations are as follows:

First, perform "Select Disk=1" and turn focus to disk 1. Perform "SELECT partition 1" To move focus to partition activity E on disk 1;

Second, the implementation of "delete Partition" to the original partition e deleted;

Third, the implementation of "create partition primary size=4000", on disk 1 to create a new 4000MB primary partition, the focus will automatically go to the newly established partition;

Then execute "create partition Extended", and set up the remaining disk space on disk 1 as an extended partition;

After completing the previous step, execute "create partition logic" to create a logical partition for the extended partition that you just established;

At this point, we have already created a primary partition and a logical partition for disk 1 of the original active partition E, but the two partitions do not yet have a drive letter, performing "select partition 1" To move focus to primary partition 1, and then execute "Assign Letter=e", Assign drive letter E: to the primary partition. Perform "active" to set the primary partition as active so that it can boot the system;

Next, execute "select partition 3" To move focus to a logical partition and perform a "assign" carriage return, meaning that the system assigns the next available drive letter to the logical partition;

Viii. now we are done with the repartition of the hard disk on the machine, execute "exit" Exit DiskPart command line interpretation tool, then execute "format E:/fs:ntfs", format the disk 1 primary partition that you just created as the partition of the NTFS file format, and perform " Format f:/fs:fat32 partition F, our final operation is completed;

Nine, the implementation of "exit", and then restart the machine, you can again enter the "DiskPart" to see if the partition is correct;

The above operations basically include the deletion, creation, formatting, and management of the disk, and if you read the Help instructions carefully, make sure you don't want to use FDISK to manage the disk after you have mastered its powerful features. In fact, if you are using Windows XP, this knowledge is very practical. In addition, the most convenient place for the "DiskPart" tool is the support script, which is not described in detail here.

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.