Accidentally deleted a partition on your Windows 10 system or external hard drive? Don’t worry since this guide provides step-by-step instructions on how to recover deleted using CMD tools like DiskPart. Whether it’s a deleted volume or a missing partition, we walk you through safe and effective recovery methods to help you restore your deleted volume without data loss.
I was trying to format a USB drive, but I accidentally deleted one of the main partitions on my external hard drive instead. Now, I can't see the drive in File Explorer, and it looks like the data is gone. Is there any way to recover deleted partition on external hard drive back without losing all my files?"
Accidentally deleting a partition is a common mistake — but it doesn’t always mean your data is gone forever. Understanding "what happens behind the scenes" when a partition is deleted can help you take the right steps to recover it safely.
1. The Partition Becomes Unallocated Space
When a partition is deleted, its space is marked as "unallocated" in Disk Management. This means the partition is no longer accessible through File Explorer (when you click on the drive, the message "you need to format the disk" will pop out ). However, the data it contained is usually still present on the disk, at least before it's overwritten.
2. Your Data Is Still There,But Vulnerable
Deleting a partition removes its reference from the partition table, "not the actual files". As long as no new data is written to that space, there is a strong chance the original files can be recovered. But the longer you wait or the more you use the disk, the lower your chances.
3. Boot Problems (If You Deleted a System Partition)
Deleting a system or boot partition can make the computer "unbootable". You might see errors such as: "Operating System Not Found", "No Boot Device Available", and more. In this case, you'll need to use recovery media or tools to repair the boot environment — or restore the partition before the system can start again.
4. Writing New Data Can Cause Permanent Loss
If you format the disk, create a new partition, or save new files to the same drive, the space formerly occupied by the deleted partition might be "overwritten". Once that happens, recovering the original data becomes significantly harder, even nearly impossible in some cases.
As we just stated earlier, when you delete a partition, the data is not erased immediately, but if you create a new partition over it right away, Windows will write a new file system structure, potentially overwriting your old data permanently. Therefore, before attempting to recover a deleted partition using CMD by creating a new one, it is strongly advised to recover any data from the deleted partition in advance.
Even if you recreate the partition using CMD or Disk Management, the original files are no longer visible in File Explorer. That’s because recreating a partition just makes the space usable again, not recovers the inside files together.
To recover deleted partition files, you can use a reliable data recovery tool named MyRecover, which can scan your entire computer to search for any missing, lost or deleted partition and restore your files safely. Next, we will demonstrate how to recover data from deleted partition on Windows 10.
1. Install MyRecover on a separate disk (not the one you’re recovering).
2. Launch the program and select "Partition Lost Recovery" under "Advanced Recovery" section. Then it will scan all existing previously but now missing partitions on your computer. Once it is finished, you can select the target deleted partition from the result and click on "Scan".
3. It will perform a deep scan to search thoroughly for lost files on the deleted volume. Then you can browse the result and check the box in front of target files. To ensure you are recovering what you need, use the "Preview" feature.
4. When you confirmed, click "Recover" to continue.
5. Choose another safe location (like a USB or external disk) to save the recovered important files.
Then wait for the process to finish. Then you will receive the success message, along with the new path you just specified in "step 5". Just click on it and you can check the recovered files. Those steps work on recovering deleted partition data on Windows 11 and other operating system as well.
👉If the deleted partition is the system drive causing the OS to fail to boot, you can first create a bootable media using MyRecover on a different working computer. Then, boot the affected computer from this bootable disk and perform data recovery in WinRE by following the steps outlined above.
Once you’ve safely recovered your datausing MyRecover, you can now recover deleted partition using CMD by recreating the partition and makingthe space usable again.
1. Launch DiskPart: Press "Win + R", type "diskpart", then press on"Enter".
2. List all available volumes: list volume
3. Select the correctvolume: select volume X (Replace "X"with the number of deleted partition).
4. Create a new primary partition: create partition primary
5. Format the new partition: format fs=ntfs quick (Replace "ntfs"with other file systems like fat32 if you like).
6. Assign a drive letter: assign letter=K (Replace "K"with other available letter).
7. Exit DiskPart: exit
Now, your deleted partition is recovered and appears as a new partition in File Explorer as a usable drive. In addition to recovering deleted volume via DiskPart command, it is also available to create a new partition on unallocated space in Disk Management, a GUI disk partition management tool snapped into Windows.
Once the new partition has been successfully created and is functioning properly, you can begin transferring the recovered data obtained in Step 1 back to this new location. Carefully copy all the important data to ensure nothing is left behind. After the transfer, double-check that all files open correctly and function as expected. This step helps confirm the integrity of the recovered data and ensures it is fully usable.
👉Optional but Recommended: To safeguard against future data loss, it's highly advisable to create a backup of this data via Windows inbuilt File History or Backup and Restore feature.
When you accidentally deletea partition, it can be stressful. Fortunately, this guide shows how to recover deleted partition using CMD. Acting quickly especially before writing any new data, thechances of a full recoveryis greatly increased.
Before creating a new partition using Diskpart commands, recovering data from the unallocated space using a professional tool like MyRecover is crucial. Whether it’s personal files or critical system data, MyRecover helps ensure your valuable information is safely retrieved and not lost for good.