Reset/Uninitialize a disk via CLI (DISKPART)

To remove all partitions and uninitialize a disk on Windows a tool called DISKPART can be used. It is installed by default on all Windows versions, to perform an uninitialization administrator permissions are required. The functionality described here is only a minimum of all the things DISKPART can do.

Firstly run DISKPART within an Admin CMD:

DISKPART

Then list all disks by running LIST DISK:

LIST DISK

Select the disk that should be uninitialized by running: SELECT DISK <ID>

SELECT DISK <ID>

Finally CLEAN the disk, all data will be destroyed!

clean

This tool/way to reset won't replace the whole disks with zeroes, it will just delete the partition table as well as the initialization format (like gpt).

To reuse the disk a reinitialization is required, this can be done graphically by entering the disk partition manager.

  • windows/windows-tutorials/reset-disk-via-cli.txt
  • Last modified: 2024/10/09 13:30
  • by Zyzonix