Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to manage disks using the diskpart command

Shulou Source: shulou.com Published: 2022-06-01 22:17:56 10月04日 Update

This article shows you how to use the diskpart command to manage disks. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Start Diskpart

In Windows installation mode:

Use the shortcut key Shift+F10 to call up the command prompt

Enter diskpart at the command prompt and enter.

Under the Windows system:

Use the shortcut key Win+R to bring up the run window, enter diskpart in the input box, enter, and then grant UAC permission.

List disks / partitions / volumes

Before we manage the disks, we usually need to list the disks / partitions / volumes on our computer, which can be done through the list command.

Command:

List disk

Function:

List the physical disks installed on your computer

Example:

Command:

List volume

Function:

List all volumes

Example:

Command:

List partition

Function:

List the partitions on a physical disk

Example:

Select disk / partition / volume

Before we can operate on a target, we usually need to select it, and you can use the select command to do this.

Command:

Select disk 0

Function:

Select the 0th disk

Example:

Command:

Select volume 3

Function:

Select the third volume

Example:

Command:

Select partition 6

Function:

Select the sixth partition in the current disk

Example:

Erase the whole plate

There are times when we need to clear all the contents of a disk, and we can do this with the clean command.

Command:

Clean

Function:

Clear all contents of the currently selected disk

The above is how to use the diskpart command to manage disks. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Commands disks functions examples content management input selection can be passed shortcut keys skills prompts physics computers knowledge prompts concise concise that is articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Tech Info Linux Huawei OPPO Reno