To recover a lost or deleted partition in Windows, leave the unallocated space alone: do not create a new partition, initialize the disk or format anything. Then run a partition search with recovery software, which looks for the old partition's file system on the disk, and copy its files to a different drive. When a partition disappears, usually only its entry in the partition table is gone; the files inside are still on the disk until something overwrites them.
Here is how to recognize a lost partition, what causes it, and the safe way to get your files back.
Signs your partition is lost
- A drive letter such as D: or E: has vanished from File Explorer.
- In Disk Management (right-click Start → Disk Management), the space where the partition was now shows as a black bar labeled Unallocated.
- A whole external drive shows as unallocated, or the drive appears with no partitions at all.
- The disk shows as Unknown and Not Initialized. That is a related problem covered in our guide to a disk that is not initialized.
Sometimes the partition is still there but has simply lost its drive letter. In Disk Management, if you see a healthy partition with a file system such as NTFS but no letter, right-click it, choose Change Drive Letter and Paths and add one. If that brings your files back, you are done.
What makes a partition disappear
| Cause | Example |
|---|---|
| Accidental deletion | Deleting the wrong volume in Disk Management or a partition tool |
| Repartitioning | Resizing, merging or splitting partitions that went wrong or was interrupted |
| Windows install or upgrade | Choosing the wrong disk or deleting partitions during Windows Setup |
| Diskpart commands | Running clean on the wrong disk, which removes the partition table |
| Partition table damage | Power cuts, malware or a failing disk corrupting the MBR or GPT |
| Connecting through a different adapter | Some USB enclosures present the disk differently, so partitions are not recognized |
If you ran diskpart clean by mistake, read our specific guide to recovering files after diskpart clean.
What not to do
- Do not create a new simple volume in the unallocated space. Windows formats it straight away, writing a new file system over the start of your old partition.
- Do not initialize the disk if Windows asks, unless you understand what it will write.
- Do not reinstall Windows onto the disk.
- Do not copy files to other partitions on the same disk if you can avoid it. It is not usually harmful, but it is safest to leave the whole disk alone until you have recovered.
How to recover a lost partition's files
Drive Restorer includes a partition search that finds partitions that have disappeared after a repartition, a failed update or a virus, and lets you recover their files even when the drive shows as empty.
- Select the physical disk, not a drive letter. The lost partition no longer has a letter, so choose the whole disk that contained it, checking the size and model.
- Run the partition search. It scans the disk, including unallocated space, for the signatures of NTFS, FAT32 and exFAT partitions.
- Open the partition it finds. Check the size and label match what you remember. If several candidates appear, the one with a sensible size and a readable folder tree is usually right.
- Browse and preview. When the partition's file system is intact, files appear with their original names and folders. Preview important files to confirm they open.
- Restore to a different drive. Copy the folders you need to another disk with enough space.
- Use a deep scan for anything missing. If parts of the partition were overwritten, a deep scan of the unallocated area can find files by their content.
Drive Restorer only reads the disk during all of this, so searching and scanning do not change the disk you are recovering from. Long scans can be saved and resumed later, which helps on large disks.
Recover the files, or rebuild the partition?
There are two approaches to a lost partition:
- Copy the files off to another drive. This never writes to the damaged disk, so it is the safest choice and works even when the partition is partly damaged.
- Rebuild the partition table entry so the partition reappears in place. This is quicker when it works, but it writes to the disk, and if the details are wrong it can make things worse.
For anything important, copy the files off first. Once they are safe, you can recreate the partition and copy them back, or experiment with rebuilding tools without the risk of losing anything.
Your chances depend on what happened after the partition was lost. If nothing was written to the disk, recovery is usually good. If a new partition was created and formatted, the start of the old partition, including its file records, may be overwritten, and more files will need a deep scan.
Lost partitions on external drives
External drives sometimes appear unallocated or uninitialized because of the USB enclosure rather than the disk. Some enclosures use a different sector size, so a disk partitioned in one enclosure can look empty in another or when connected directly. Before scanning, try the drive in its original enclosure if you moved it. If it still looks empty, scan the whole disk as described above.
If the external drive is not detected at all, see our guide to an external hard drive not showing up first.
Lost partition on the Windows system disk
If the lost partition was on the same disk as Windows, for example a D: data partition next to C:, the disk is still in use every time Windows runs. Windows itself only writes to its own partitions, so the lost area is fairly safe, but avoid any partition tools, disk cleanup utilities or Windows reinstall on that disk until you have recovered. If the PC will not start because the system partition itself was lost, connect the disk to another computer as a second drive and scan it from there.
Preventing partition loss
- Back up before any partition change, including resizing and Windows upgrades.
- Unplug external drives you do not need when installing Windows, so you cannot pick the wrong disk.
- In diskpart, always run
list diskand check sizes beforeselect disk. - Name partitions clearly so they are easy to tell apart in Disk Management.
Frequently asked questions
Why does a partition show as unallocated?
Usually because the partition table entry that described it was deleted or damaged, for example by a repartition, a failed update or malware. The files are often still on the disk.
Should I create a new partition in the unallocated space?
Not before recovering. Creating and formatting a new partition writes new file system data over the area you are trying to recover.
Can I recover files without restoring the partition itself?
Yes. Copying the files to another drive is the safest way. You can recreate the partition afterwards once your data is safe.
