Accidentally deleted a partition in Windows? You’re not the first one. Usually, it happens when someone tries to “fix” something; there’s always a thread out there with the same story. But it can also go missing because of a corrupted partition table or a glitch during setup.
The important thing is, it’s not necessarily gone. We’ve handled plenty of these cases, and in most, recovery is absolutely possible. Today, we’ll walk you through the exact steps that actually work.
When we say a partition is “deleted,” we’re not talking about physically erasing the data on your drive. A deleted partition usually means the entry that told the system where that partition started and ended, basically, the coordinates, got wiped from the partition table.
Here’s how it works under the hood. Your disk stores partition info in one of two ways: either using the older Master Boot Record (MBR) system or the newer GUID Partition Table (GPT). In both cases, there’s a list (a literal table) that maps out each partition’s location on the drive. Delete a partition, and what you’re really doing is removing one of those entries. The data itself isn’t touched, at least not immediately.
That’s why recovery is possible. As long as you don’t write new data to the disk (which could overwrite the old partition’s contents), the structure of the deleted partition often remains intact. We’re talking about everything from the file system (NTFS, FAT32, exFAT) to individual files, even folder hierarchies.
So here’s what not to do:
If the partition is still there under the surface, the only thing standing between you and your data is a table entry and a little patience.
Before any recovery tools or command-line utilities, check what Windows is actually seeing. Sometimes the partition didn’t disappear completely; it might just be missing a drive letter or showing up in a weird state that’s fixable without any third-party software.
Open Disk Management. Hit Win + X and choose Disk Management from the menu. Or hit Start and search for Create and format hard disk partitions.
Now take a look:
These are quick visual clues that tell you what kind of recovery path you're on. This step saves time. No need to fire up TestDisk or scan the whole drive if it’s just a missing drive letter. So always start here.
Now we’ll show you the different ways you can recover a lost partition in Windows - step by step, with screenshots where it matters. Each method tackles a different kind of scenario, so we’ll include a quick note about when it makes the most sense to use it.
Some tools try to bring back the partition itself (as in, they restore it to the partition table so it reappears in Disk Management). Others go straight for the files, which is useful when the partition is too damaged to rebuild properly.
📝 Note. These methods work for both HDDs and SSDs. But deleted partition recovery on SSDs is often harder due to the TRIM command, which wipes data blocks shortly after deletion. We mention this to keep expectations realistic. It’s still worth running a scan, especially if the SSD is external or TRIM wasn’t triggered right away.
📁 When to use: Think of this as the command-line alternative to Disk Management. Use it if the partition is still there but not showing up in File Explorer; maybe it’s missing a drive letter or was accidentally hidden. It’s especially useful if Disk Management throws an error, or you’re working from a recovery environment where the graphical interface isn’t available.
If the partition still exists on the drive but doesn’t show up in File Explorer, and Disk Management didn’t help, DiskPart might do the trick. It’s a built-in Windows tool that works from the command line, and while it looks a bit intimidating, it’s actually pretty straightforward once you know the right commands.
Here’s how to do it:
Once you do that, Windows will assign a drive letter, and the partition should show up in File Explorer again.
⚠️ Note. If the partition doesn’t appear in list volume, or if the disk shows unallocated space instead, DiskPart can’t help in that case. You’ll need to use recovery tools like TestDisk (Method 3) or scan the whole disk as shown in Method 2.
📁 When to use: This is the most universal method for getting your data back. If the partition itself is toast, or you don’t care about restoring the partition structure and just want the files, this is the simplest way to go. It works whether the partition shows as Unallocated or RAW. As long as the drive itself still shows up in Disk Management, you can use this method.
We’ll use Disk Drill for this example because it supports NTFS, FAT32, exFAT, and many others, and shows results in a way that’s easy to browse. It also lets you preview files before recovering them, which saves a ton of time.
It’s a partner product we trust; it’s been on the market for over a decade and consistently delivers strong recovery results. It also recently got a major upgrade to version 6, which improved scanning speed, file previews, and data recovery across the board.
💡 By the way. If you followed the Windows prompt and formatted the partition, don’t give up. You can (and should) still try to scan it. By default, Windows performs a Quick Format, which doesn’t erase the actual data; Disk Drill can still recover most or even all of your files.
Here’s how to use Disk Drill to recover files from a deleted disk partition:
Give it a few minutes, and you’ll have your files back in a folder, ready to go. Even if the partition itself is unrecoverable, this method often saves the data, which is usually what matters most.
After that, you can safely format the drive and start fresh. Windows probably prompted you to do it earlier, but if it didn’t, the next method will walk you through how to make the partition usable again so you can get back to work.
📁 When to use: Use TestDisk if you want to undelete the partition itself, not just extract the files. It works well on drives that show as Unallocated/RAW in Disk Management, or where the partition table was damaged but the file system is still intact.
Another great tool that often helps in cases where people deleted a partition by mistake is TestDisk. It’s free, open-source, and works directly with the partition table.
In the context of lost partition recovery, it offers some genuinely powerful features. It can fix a damaged partition table and restore a deleted partition so it reappears in Windows like nothing happened. If you’re dealing with FAT-based volumes, it can recover a lost FAT32 boot sector from its backup, rebuild broken FAT12, FAT16, or FAT32 boot sectors, and even repair corrupted FAT tables.
If the drive shows as Unallocated or RAW, and you haven’t formatted or overwritten it, TestDisk often finds the lost partition and restores access to the original data. It works well with both MBR and GPT disks.
But fair warning: TestDisk is a command-line tool, so forget about slick buttons or drag-and-drop menus. We’ll guide you through it.
Here’s how to undelete a lost partition using TestDisk:
After you're done and TestDisk writes the recovered partition to the disk, you might need to reboot your computer for the changes to take effect. Sometimes the new partition shows up right away in File Explorer, but other times Windows needs a restart to fully recognize and mount it.
📁 When to use: Try this if you don’t need to recover the old data, or already pulled it out using Method 2. This is more about making the drive usable again.
If the partition was deleted but the space still shows as Unallocated in Disk Management, you might be able to bring it back with just a few clicks. This method will restore access to the space by creating a brand-new partition, but it won’t bring back your old files, folder structure, or anything that was previously stored there. It’s a clean start.
⚠️ Heads up. This doesn’t restore your old files. If you format over the space without recovering anything first, it may overwrite important data. Only use this method after you’ve finished recovering what you can, or if you’re 100% sure there’s nothing worth saving.
Here’s how to do it:
If you don’t see unallocated space or the deleted partition, open the Action menu in Disk Management and select Rescan Disks, as covered in Microsoft’s official guide. This makes Windows recheck all connected drives and often reveals partitions or changes that didn’t load properly the first time. It happens sometimes, especially with external drives, but this simple refresh usually fixes it fast.
We’ve seen a lot of cases like this: accidentally deleted partitions, sudden "Unallocated" drives, vanished partitions after a setup gone sideways. Most of the time, it’s not hardware failure. People delete the wrong partition while trying to install Windows. They click through Disk Management too fast. Or a third-party tool messes with the partition table. It happens. And more often than not, recovery works, if you move fast and avoid making things worse.
To recap, there are basically two ways to handle deleted partition recovery.
Both paths can work, and honestly, you don’t have to lock yourself into one approach. If the files on that partition matter to you, we always recommend starting with data recovery first. That way, if your data’s still there, you’ve got it backed up no matter what happens next.
Once your files are safe, you can take your time and try TestDisk or rebuild the partition in Disk Management without stressing about doing more damage. We’ve seen plenty of people jump straight into “fixing” the partition and accidentally make the situation worse.
So yeah, grab your files first. It gives you a safety net, and from there, you’ve got options.