How to merge partitions under windowns diskpart

Source: Internet
Author: User

Partition resizing is a method to increase extra space for a partition when the space of the partition cannot meet the usage requirements. Many friends usually use partitionmagic to do this. But in fact, users using Windows XP/Server 2003 can use the built-in disk management function of the system to "increase" the partition space ". Next we will discuss it with examples.

1. Draw free space

Assume that you need to increase the size of disk D by 50 MB. This space needs to be extracted from disk E. First, we need to split the 50 MB space from the edisk. The procedure is as follows:

First, transfer all data on the e-disk to another partition, click Start> Run, enter "diskmgmt. msc", and press enter to open the "disk management" window. Right-click an edisk and choose delete logical drive from the shortcut menu. In the pop-up box, click "yes" to continue. After the operation is completed, the available space of the same size as the deleted partition will appear in the "disk 0" column.

2. Add capacity to a partition

At this time, please note that the current size of the d disk is 855 MB. Now we will add 50 MB. Click Start>Program→ Attachment → command prompt ". In the window that is opened, enter the following commands:" diskpart "," list volume "," select Volume 2 ", and" extend size = 50.

The "diskpart" command is used to call the DOS disk management program, "diskpart /?" Command to view the Chinese help information under the DOS command. "List volume" is used to display the details of all disks on the system, so as to know the volume number of the required extended partition. Here we can see that the volume of disk D is "2"; the "select Volume 2" command is used to select the volume. Here we select Volume 2 according to the prompt obtained in the previous step; "extend size = 50" is used to increase the size of the d disk. The source space for this increase is of course the free space. From the command execution result "diskpart successfully expanded the volume", we can see that we have successfully increased the space of the d disk ,.

Finally, in the "disk management window", select the remaining available space and click the "Operation> all tasks> new logical drive" command in turn, assign a drive letter and format the space as prompted.

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.