Common Windows commands

Last updated:2021-08-03 18:56:33

Mount disk partitions by using the Windows interface

  1. Open Disk Management. All disk partitions are displayed.
  2. Right-click the partition you want to mount, and select Change Drive Letter and Paths.
  3. Click Add.
  4. Click Mount in the following empty NTFS folder.
  5. Click Browse.
  6. Select the target folder, and click OK.

Mount disk partitions by using the command line interface

  1. Enter cmd to launch the command prompt window.
  2. Type diskpart.
  3. Type list disk to list all disks.
  4. Type select disk to select a disk.
  5. If the disk already contains partitions, type clean to erase all partitions.
  6. Type convert gpt to convert the MBR disk to GUID Partition Table (GPT).
    Note that this process is irreversible. To convert back to MBR, you must erase the table by using the clean command.
  7. Type create partition primary size=*** id=yyy to create a partition. In the command, id=yyy is optional and represents the GUID partition type.
    Use the command repeatedly to create more partitions.
    To create a primary partition on the disk, type create partition primary.
  8. Type list partition to check the serial numbers of partitions.
  9. Type select partition x to select a partition. x indicates the partition number.
  10. Type assign letter=x to assign a drive letter to the partition. x indicates the available drive letter to be assigned. In this example, D is used.
  11. Type exit.

The new disk partition can be used after it is formatted.
In this example, to format the disk partition D of NTFS format, type format D: /fs:ntfs /q /y. Then, the new disk partition is mounted.

Did you find the above information helpful?

Mostly Unhelpful
A little helpful
Very helpful

What might be the problems?

Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions


Please give us your feedback.


Thank you for your feedback.