DISKPART Commands to delete hard disk partitions | DISKPART CMD

In windows with the help of disk management, we can use it to format partitions, delete partitions, create the partition, shrink volume, expand the volume, and so on. But disk management has its limited function which means cannot do much more activities on the system partition. So, with the help of the command line we can do much more than aspect on disk management, so let’s get started.

In this post, we will be using DISKPART command line, now let’s get started

DISKPART Commands to delete hard disk partitions | DISKPART CMD


To open or Start DISKPART

1.   type CMD on start

2.   run command prompt by right click and "Run as administrator"

3.   give permission yes, which will open the command prompt

4.   Type DISKPART.

Alternative

  • 1.   “Win + R” and type cmd
  • 2.   Inside cmd type “diskpart”
  • 3.   Click on yes


In the command prompt we see

DISKPART> list disk

Disk ###  Status         Size     Free         Dyn      Gpt
--------  -------------  -------  -------  ---  ---
Disk 0    Online          250 GB      0 B            *
Disk 1    Online         1503 GB  861 GB               *


DISKPART> select disk 1

Disk 1 is now the selected disk.


DISKPART> list partition

Partitions     Type              Size     Offset
-------------  ---------------- ------- -------
Partition 1    System             260 MB  1024 KB
Partition 2    Reserved            16 MB   261 MB
Partition 4    Recovery          1000 MB  1003 GB

 

DISKPART> select partition 1

Partition 1 is now the selected partition.


DISKPART> delete partition

Virtual Disk Service error: Cannot delete a protect partition without the force
protected parameter sets.
Here we encountered an error, since the partition is system protected.
So we need to override.

DISKPART> delete partition override

Disk Part successfully deleted the selected partition.


DISKPART> list partition

Partitions ### Type              Size     Offset
-------------  ----------------  -------  -------
Partition 2    Reserved            16 MB   261 MB
Partition 4    Recovery          1503 MB  862 GB

 

I Hope You Like my post on DISKPART Commands to delete hard disk partitions If it is Helpful Please don't forget to share my post with your friends.

Post a Comment

0 Comments