How to Recover Deleted Partition Using CMD Efficiently?

Learn how to recover deleted partition using CMD in this guide. Besides, you can get the best partition recovery software and best data loss prevention software to recover deleted partitions and prevent data loss.


By Penny / Updated on November 7, 2022

Share this: instagram reddit

Can a deleted partition be recovered?


Hello! I deleted my HDD partition through the command prompt with diskpart. But nowadays, I want to get it back. Is it possible for me to recover the deleted partition? Any help will be appreciated. Thanks.

- A user from Tomshardware

First, please calm down because there’re two accessible solutions to recover deleted partitions Windows 10. Second, let’s dig into the meaning of partition to get more details.

Disk partitioning (Disk slicing) refers to creating one or more regions on secondary storage. After that, each region can be managed separately. These regions are what we normally call partitions.

Sometimes, if you cannot access yourdesired  partition in Windows File Explorer, you can use Disk Management to view it because this tool is designed to perform advanced storage tasks in Windows. Perhaps you can find your deleted partition in the unallocated space. 


After partition loss, please put the following pertinent suggestions into practice.

  • Stop using your storage devices as quickly as you. 
  • Do not write new data on the partition.
  • Do not reformat the hard drive.
  • Do not rebuild the partition table.

Traditional: Recover deleted partition Windows 10/11 using CMD 

How to recover deleted partition using CMD? Let's show how it works.

Step 1. Press the “Windows + R” keys to open the Run window. Then enter “diskmgmt.msc” and click “OK” to open Disk Management.

Step 2. Locate your deleted/lost partition and remember its size. Then the deleted partition space will be marked as unallocated space.

Step 3. Enter “cmd” in the search bar and select the “Run as Administrator” option to open the command prompt window. 

Step 4. Type “diskpart” in the window and press “Enter”.

Step 5. Type “list disk” and press “Enter”. Then you can see all the partitions on the computer.

Step 6. Type “select disk a” and press “Enter” (a means the number of the hard drive including the lost partition).

Step 7. Type “list volume” and press “Enter”.

Step 8. Type “select volume b” and press “Enter” (b means the number of the lost partition). Type “assign letter c” and press “Enter” (c means a drive letter that can be used).


Alternative: Recover deleted partitions Windows 10/11 via partition recovery software

In this scenario, we’d like to share another troubleshooting software, AOMEI Partition Recovery Wizard.

Under the guidance of an intuitive graphical user interface and easy-to-following steps, everyone can recover the deleted/lost partitions from HDD, SSD, USB, and SD card.

Built-in AOMEI Partition Assistant Professional, before data coverage, you can also retrieve the data saved in the restored partitions. And it supports NTFS, FAT, and Ext2/Ext3/Ext4 partition recovery.   

As a disk manager, it can help you resize, move, merge, and split partitions without losing data. As you can see, it can save you from improper partition resizing. 
As a multifunction converter, it allows you to execute disk conversions between MBR and GPT/basic disk and dynamic disk/NTFS and FAT32.

Please download and try out its demo version. These steps depict how to recover deleted partitions using it.

Download Demo Win 11/10/8.1/8/7/XP
Secure Download

Step 1. Download and install it on your PC. Then launch it. Click “Partition Recovery Wizard” > select the disk that includes your deleted/lost partition > click “Next”.


Step 2. Select “Fast Search” to find your deleted/lost partition quickly. Then click “Next”.


Step 3. After scanning, you can see all the deleted/lost partitions on the hard disk. Then you can select the partition you want to restore and click “Proceed”.


Step 4. After the recovery process, you’ll see a “Congratulations” message. (You could pay attention to the helpful notes in the reference pic.) Then click “Finish” to exit.

In conclusion 

How to recover deleted partition using CMD? Please refer to the traditional solution. Besides, AOMEI Partition Recovery Wizard can help you simplify your computer disk partition management and make it safer without losing data. 

To prevent data loss, it's time for you to make automatic, full, incremental, or differential backups via free backup software for Windows, AOMEI Backupper. This tool also gives full coverage to sync and clone. 

Penny · Editor
Penny works as an editor at AOMEI Technology, while she's a tester and editor for AOMEI Data Recovery Tools. She enjoys helping users with data recovery issues on Windows and iPhones using simple and practical solutions. Outside of work, she has a strong affection for pets, particularly giant pandas.