Get the App
SLTechnology News&Howtos  ›  Servers  › 

[diskpart] hard disk operation command

Shulou Source: shulou.com Published: 2022-06-03 08:37:14 12月06日 Update

Using DISKPART, diskpart is Microsoft's own disk management tool that can complete operations that graphical interfaces cannot.

help command.

1. Disk management, new disk prompt: due to the policy set by the administrator, the disk is offline.

1. Run: cmd

2. Input: DISKPART

3.DISKPART> san

4.DISKPART> san policy=onlineall

5.DISKPART>list disk

6.DISKPART> select disk 1

7.DISKPART>attributes disk clear readonly

8.DISKPART>online disk

Second, can not delete the hard disk hidden partition

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> list partition

Partition ###Type Size Offset

------------- ---------------- ------- -------

Partition 3 reserves 1024 KB 17 KB

Partition 1 reserves 127 MB 1041 KB

Partition 2 Data 59 GB 128 MB

DISKPART> select partition 1

DISKPART> delete partition override

Tags: Disk administration command hard drive graphics size tools data status interface policy administrator administrative tools type offset help prompts offline input run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Huawei NVidia Shulou Information Microsoft