Updated 2026-11-15 · 4 min read
How to recover a deleted or lost partition and its files
A partition disappeared or now shows as Unallocated in Disk Management? The files are usually still there. Learn why partitions get lost and how to recover the data safely on Windows.
You open Disk Management and a whole partition is gone: the space is shown as black “Unallocated”, the drive letter has vanished and File Explorer no longer lists it. This happens after deleting the wrong volume, a failed resize, a Windows reinstall, a diskpart clean or a damaged partition table.
In almost all of these cases only the small table that describes the partitions was changed. The file system and your files are still sitting on the disk.
How partitions get lost
- Deleting the wrong volume in Disk Management or diskpart.
- A Windows installation or reset that repartitioned the disk.
- An interrupted resize, move or merge in a partition tool.
- diskpart clean, which wipes the partition table at the start of the disk.
- A damaged MBR or GPT after a power cut, a virus or a failing disk.
In each case the partition table is the part that changed. The partition table only says where each volume starts and how long it is; the volume itself begins with its own boot sector, which describes the file system.
Why the files are still there
An NTFS, FAT32 or exFAT volume starts with a boot sector that holds its size, cluster size and the location of its file table. NTFS and exFAT also keep a backup copy of the boot sector. Deleting the partition does not touch any of this.
Recovery software that ignores the partition table and scans the disk for these boot sectors can find each lost volume, read its file table and list the files with their names and folders. DiskMend does this lost-partition search automatically during a scan.
Rebuild the partition or copy the files?
Some tools offer to write the old partition entry back. That can work, but it writes to the disk you are trying to save, and a wrong guess can make things worse. Copying the files to another disk first is the safer order: once your data is safe elsewhere, you can repartition the disk however you like.
When recovery is not possible
If a new partition was created and formatted over the space, its new file table overwrote the start of the old one; content search can still find many files, but without names. After diskpart clean all, a full format or a disk wipe, every sector was overwritten and the data cannot be recovered by software.
Step by step
- 1
Leave the unallocated space alone
Do not create a new volume, format or initialize the disk.
- 2
Prepare a destination drive
Have another disk with enough free space for the files you want back.
- 3
Scan the whole disk
Select the physical disk, not a drive letter, so the scan can search outside the partition table.
- 4
Review the found volumes
Check the recovered folders and previews of the lost partition’s files.
- 5
Copy the files
Save them to the destination drive.
- 6
Repartition afterwards
Only when the files are safe, create and format a new partition in Disk Management.
| Action | Partition table | Files | Recoverable |
|---|---|---|---|
| Delete volume (Disk Management) | Entry removed | Untouched | Yes |
| diskpart clean | Wiped | Untouched | Yes |
| New partition + quick format | New entry | File table partly overwritten | Partly, often without names |
| diskpart clean all / full format | Wiped | Overwritten with zeros | No |
Frequently asked questions
Can I recover a deleted partition?+
Yes. Deleting a partition only removes its entry from the partition table; the files inside stay on the disk and can be recovered with software.
What does Unallocated mean in Disk Management?+
It means no partition entry points to that space. Any data that was there is usually still on the disk.
Should I initialize a disk Windows asks to initialize?+
Not before recovering. Initializing writes a new partition table, which makes recovery harder.
Does diskpart clean delete my files?+
diskpart clean erases only the partition table, so files can usually be recovered. diskpart clean all overwrites the whole disk and they cannot.
Will I get folder names back?+
Usually, if the old volume’s file table is intact. Files found only by content search get generic names.