Tutorial: Create, Extend, or delete a disk partition using DiskPart

Source: Internet
Author: User

When basic disk operations are performed in a Windows Server environment, administrators can use tools such as disk Partition utility or DiskPart. The latter is a command-line interpreter that can be used as a disk management tool. Administrators can use DiskPart to scan newly added disks, as well as create, delete, and resize hard disk partitions and assign or reassign drive letters. Note: The inserted content is only used as a comment and is not entered with any commands.

      Using DiskPart to create a partition using DiskPart partition disk is very useful for improving I/O performance of newly added RAID array drives. Many server applications, such as Microsoft Exchange Server documentation, actually recommend that you use DiskPart to create primary or extended partitions. The primary partition can be used as a system partition, and an extended partition can only be used for additional logical drive allocations. To create a partition: At the command prompt, enter: Diskpart.exe based on the Diskpart prompt, enter: List disk (list disks), and note the drive letter you want to operate. According to the DISKPART hint, enter: Select Disk 1 (choose the disks; Enter the disk number in the second step.) According to the DISKPART hint, enter: Create PARTITION PRIMARY size=10000 (change PRIMARY to extended, creating an extended partition. If you do not set the size, such as 10GB, then all available disk space will be used as the entire partition. If you are using RAID, especially RAID 5, consider carefully whether you want to add align=64 to the end of the command line, which can improve the I/O performance of the disk. According to the DISKPART hint, enter: ASSIGN letter=d (select an unused drive letter) According to the DiskPart prompt, enter: Exit using command prompt format commands, Disk Administrator or any disk format tool (usually using NTFS) to format the drive. Use DiskPart to extend a partition when you add space to a partition or volume, the preferred way is to configure dynamic disks. Dynamic disk expansion concatenates only newly added space, meaning that they only increase disk space after the original partition and do not affect the data. The performance of each partition is separated in tandem, and the partitions configured in the RAID array do not provide fault tolerance. DiskPart allows you to restripe existing data. This is really beneficial when you set up partitions in a RAID array, because the existing partition data is scattered across all the drives in the array, not just the new space that is added like Disk Administrator. Figure 1. Use DiskPart to extend the volume Microsoft's official position is that you cannot use DiskPart to extend your system or boot partition. Note: If you want to try another method, make sure to make a full backup ahead of time. Extended partition: Verify that the new space is on the same drive and is adjacent to the partition that needs to be expanded, with no other partitions in the middle. According to the DISKPART hint, enter: Diskpart.exe according to the DISKPART hint, the outputIn: Select Disk 1 (choose disks) According to the DISKPART hint, enter: Select Volume 1 (select volume) according to the DiskPart prompt, enter: Extend size=10000 (If you do not set the size, all available disk space will be used) According to the DISKPART hint, enter: Exit Note: Normally I will restart the server to ensure that it will start normally. But this is not a necessary step. Use DiskPart to delete a partition note: You cannot delete an active system or boot partition, or a partition with an active paging file. At the command prompt, enter: Diskpart.exe according to the DiskPart prompt, enter: Select Disk 1 According to the DiskPart prompt, enter: Select Partition 1 According to the DiskPart prompt, enter: DELETE Partition according to the DISKPART hint, enter: Exit use DiskPart to wipe the disk this operation deletes all data on the disk. At the command prompt, enter: Diskpart.exe according to the DiskPart prompt, enter: Select Disk 1 According to the DiskPart prompt, enter: Clean all command deletes all partition and volume information on the hard disk. According to the DISKPART hint, enter: Exit Last note: Here are four important DiskPart related things to remember: be sure to fully back up the hard disk before using DiskPart. Be cautious when using DiskPart on a dynamic disk. Negotiate with the disk vendor before using DiskPart. Install Windows Resource Kit to get DiskPart.

TechTarget China original content, original link: http://www.searchsv.com.cn/showcontent_93270.htm
©techtarget China: http://www.techtarget.com.cn

Tutorial: Create, Extend, or delete a disk partition using DiskPart

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.