Windows comes with Disk Management tool--diskpart

Source: Internet
Author: User

Today to help a colleague installed system because the pre-installed is win10, a lot of software is not enough to be installed into Win7, but in the Win8 and after the system disk partition is the use of GPT boot mode, want to use the lower version of the system will be the new partition table conversion changes, However, a lot of third-party tools and PE are not very good for the management of the disk modification, then the use of Windows with the DiskPart tool to manage the disk, it is well known that the database is based on the product of the disk, then the management disk is the same as the database, DiskPart is a command in a Windows environment that requires support for system services when the command is run normally: Logical Disk Manager Administrative Service (dmadmin), Logical disk Manager (Dmserver), Plug and Play (plugplay), Remote Procedure Call (RPC) (RPCSS). The dependencies of these four services are: Dmserver relies on Plugplay and rpcss,dmadmin/relies on dmserver. If these four services are not running, then it is not possible to run DiskPart successfully, so under the pure DOS is not able to run the command, but in WinPE can run DiskPart, now many ODM manufacturers in the installation of the operating system using the WinPE environment, Just because the hard drive can be easily manipulated under WinPE (the WinPE environment itself starts in memory), here's a simple way to say DiskPart is used.

In the Command prompt window (i.e. "cmd") using DiskPart to enter the interactive interface of DiskPart, we can get the following help information by helping, the instruction is not sensitive to case:

active      -  marks the selected partition as an active partition. add         -  Add the mirror to a simple volume. assign      -  assigns a drive letter or mount point to the selected volume. attributes  -  manipulates volume or disk properties. attach      -  connect the virtual disk file. automount   -  enables and disables automatic loading of basic volumes. break       -  interrupts the mirror set. clean       -  clears configuration information or all information from disk. compact     -  attempts to reduce the physical size of the file. The convert     -  is converted between different disk formats. create      -  Create a volume, partition, or virtual disk. delete      -  delete the object. detail      -  provides object details. detach      -  Detach the virtual disk file. exit        -  exit  diskpart. extend      -  the extended volume. expand      -  Expand the maximum size available on the virtual disk. filesystems -  displays the current and supported file systems on the volume format      -  format the volume or partition gpt          -  assign properties to the selected  GPT  partition. help        -  displays a list of commands. import      -  Import disk Groups. inactive    -  marks the selected partition as inactive. list        -  displays a list of objects. merge       -  merges the child disk with its parent disk. online      -  bring the object that is currently marked offline online. offline     -  to take offline objects that are currently marked online. recover     -  refreshes the status of all disks in the selected package.                try to recover the disk in the invalid package and                 Resync with obsolete plex or parity data                 mirrored volumes and  RAID5  volumes. rem         -  does not play any role. Used to annotate the script. remove      -  Delete the drive letter or mount point assignment. repair      -  fixes a  RAID-5  volume with failed members. rescan      -  rescan your computer to find disks and volumes. retain      -  place a reserved partition under a simple volume. san         -  displays or sets the  SAN  policy for the operating system that is currently started. select      -  moves the focus to the object. setid       -  change the partition type. shrink      -  decreases the selected volume. uniqueid    -  displays or sets the disk's  GUID  partition table (GPT) identifier or master boot record (MBR) signature.

Such as:

Diskpart> list disk# View the list of disks diskpart> select disk 0# use the disks numbered 0, note that if a disk is used and the list is in front of the result there is an * number, which is the focus diskpart> clean# Clear all the information on the physical disk, note that here when all the information, including partition information, so when used to note diskpart> convert mbr# conversion disk to MBR format # Basic These are enough to use, The rest if trouble can be modified by third-party tools diskpart> create partition primary size=30720# creates a 30GB primary partition, where the size of the unit is mbdiskpart> active# Set the primary partition previously created as the active partition diskpart> format quick# Quick format diskpart> create partition extended# all the rest of the space is created as an extended partition diskpart> List partition# View partition list diskpart> Select partition # Use the partition with number 1, same as the focus diskpart> create partition logical size=30720# To create a 30 logical partition, note that if you create the second, the focus will automatically offset diskpart> delect partition# Delete partition, it is important to note that this deletion is the partition on the current focus, to be removed before you can adjust the focus

Basic general management, such as, when necessary can be written as a script, the use of other instructions can be accessed through help, here will not repeat the

This article is from the "Technical essay" blog, please be sure to keep this source http://jim123.blog.51cto.com/4763600/1868759

Windows comes with Disk Management tool--diskpart

Related Article

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.