Position: Resource - Data Recovery - How to Recover Files After Formatting a Hard Drive, SD Card or USB Drive?
Formatting a drive does not destroy your files. After a quick format, which is the default in Windows 10 and 11, the data itself is still on the disk. Hard recovery software can usually get most of it back, sometimes all of it. Your odds drop sharply if the drive is an SSD, if a full format was run, or if you kept using the drive after the format.
Stop using the formatted drive right now. Every write operation makes recovery less likely.
This guide covers internal and external hard drives, USB flash drives and SD cards. It explains what formatting actually does, what determines whether your files can be recovered, and how to get them back with DiskGenius step by step. If you are in a hurry, skip to the recovery steps.
In most cases, yes. But "formatted" covers several very different situations, and your chances depend on which one you are in.
After a quick format, the file system's index is rebuilt while the file data is left untouched. Recovery is usually very successful, especially if nothing has been written to the drive since. After a full format on any modern Windows system, the entire volume is overwritten with zeros and the old data is gone in practice. Secure erase and disk wiping tools destroy data on purpose, and nothing is bringing that back.
What to do immediately after formatting a drive?
Before you download anything, take one minute to protect what is left. The rule that matters more than any tool: stop writing to the formatted partition, right now.
Every file system keeps a table of contents. It records which files exist, where they start on the disk, how big they are and which folder they belong to. When you format a drive, that table of contents is rebuilt from scratch. The old one is wiped clean.
The chapters themselves, meaning the data clusters where your photos, documents and videos actually sit, are left alone. At least on a quick format.
Think of a library where someone burned the card catalog. Every book is still on its shelf. You lost the ability to look anything up, but nothing in the building changed. Recovery software is the person who walks through the stacks reading every spine and rebuilding the catalog from scratch.
This distinction makes a real difference to your recovery prospects.
A quick format simply reinitializes the file system's index. On NTFS, the Master File Table headers get rewritten. On FAT32, the File Allocation Table is cleared. The data area of the disk is not touched at all. Windows does this by default unless you deliberately uncheck the "Quick Format" box.
A full format goes further. On any modern Windows system, it writes zeros across the entire volume and runs a bad sector check. The process is much slower, and the data it overwrites is genuinely gone. (Note that before Windows Vista, a full format did not write zeros, so the old data might still be there. On Windows 10 and 11, assume it is gone.)
That said, a full format is not always complete. On large drives the format may have been interrupted, or certain sectors may have been skipped because of errors. In those cases some files can survive even a full format. It is worth scanning before you give up.
Secure erase and disk wiping software are a different category. They are built to destroy data permanently and they do it well, overwriting every sector on purpose. A quick format is an accident waiting to be undone. Secure erase is a decision that cannot be undone. If one of these tools ran on your drive, recovery is realistically off the table.
Not all formatting disasters are equal. Some are practically guaranteed to work out, some are a coin flip and a few are probably hopeless.
This is the single biggest factor. Every byte of new data written to the formatted drive is a byte that might land on top of a file you wanted back.
If you realized the mistake and stopped everything, the old data is largely intact. If you spent hours browsing the internet with that drive connected, temporary files and browser caches may have scattered themselves across the volume. If you installed an operating system on it or copied a batch of large files, a big chunk of the original data is overwritten for good.
The ideal sequence is simple: notice the mistake, stop writing, run recovery software before the drive sees another write operation. On a secondary data drive that does not see frequent writes, old data can survive for weeks or months. On a drive that is in daily use, that window can shrink to hours.
Solid state drives add a complication that mechanical hard drives do not have.
Modern SSDs support TRIM, a command the operating system sends to the drive controller after files are deleted or a partition is formatted. TRIM tells the drive which blocks are no longer in use. During the next garbage collection cycle, the SSD proactively erases those flash cells to keep write performance up.
On a spinning hard drive, deleted data just sits there quietly until something overwrites it. On an SSD with TRIM, that data can be zeroed out within minutes. Some drives process TRIM almost instantly, others batch the commands and run them periodically. The recovery window shrinks from months to hours, sometimes to minutes.
This also explains something that confuses a lot of people: on an SSD, your files can become unrecoverable even if you never wrote a single new file to the drive. TRIM and garbage collection are writes of their own kind, and they happen at the controller level, invisible to Windows.
Still, it is usually worth attempting the scan. TRIM does not always execute perfectly, some systems batch commands, and some drives process them more slowly than others. If you caught the mistake quickly and stopped using the drive immediately, you may still get back a good part of what you lost. Speed is everything here. Disconnect the drive if you can and start the scan now instead of debating the odds.
Software cannot fix hardware. If the drive has bad sectors, the scanner will struggle to read parts of it, and the files living in those areas will come back damaged or not at all.
Watch for warning signs: clicking or grinding noises, the drive dropping the connection over and over, file transfers that hang forever, or the drive not being recognized at all. These point to a mechanical problem rather than a logical one. Continuing to scan a physically failing drive can push it over the edge and take your data with it. If you hear unusual noises or the drive keeps disconnecting, stop everything. Cases like that are better handled by a professional data recovery service with a clean room, because every extra power cycle makes things worse.
Once you have stopped all writes to the drive and prepared a destination disk, the actual recovery takes 4 steps.
Download DiskGenius and install it on a drive other than the one you are recovering, ideally on a different physical disk. If the formatted drive is the only drive in the machine, use the portable version from a USB stick.
Select the formatted partition → click "File Recovery" on the toolbar.
Click “Start” to begin scanning.
Before the scan starts, two options in the dialog deserve a look:
Complete Recovery is the mode you want after a format. When a partition is formatted, the original file system metadata may be rebuilt or damaged, and a standard scan can come up empty. Complete Recovery is designed for exactly this situation. It analyzes files from the file system structures that are still left on the disk.
Extra Search for Known File Types is the deep scan option. It scans for file signatures, the recognizable headers that mark the start of a PDF, a JPEG or a Word document, and can find files whose file system records are gone entirely. The tradeoff is that files found this way usually come without their original names and folder paths.
Let the scan run to completion. Depending on the size and speed of the drive this can take a while, and interrupting it may cost you files.
When the results appear, take a moment to understand what you are looking at. You will see the original folder tree when the software managed to rebuild it. You may also see items named "Orphaned Files".
Orphaned items are the most misunderstood part of formatted drive recovery. When a drive is formatted, the records that linked files to their folders are often the first casualty. Recovery software can still find the file contents, but it cannot always rebuild the original directory structure or file names. Those files get grouped under "Orphaned Files" instead.
The important thing: orphaned does not mean corrupted. These files can be perfectly intact. They simply lost their address. Check the preview to see whether the content is still good, and if it is, recover it. Renaming and reorganizing a few folders afterward is a small price for getting the files back.
Orphaned folders work the same way one level up. The folder lost its parent, but the files inside it may still be fine.
Double-click any file in the scan results to preview its contents. Check photos, videos, documents and archives before you commit to recovering them.
This step matters more than people think. A file showing up in the scan results does not guarantee that it is intact. The file's data clusters may have been partially overwritten, in which case the preview will show garbled images, broken thumbnails or truncated documents. Previewing saves you from recovering a pile of corrupted junk and then discovering the problem hours later.
1. Select the files and folders you want to recover. Right-click and choose "Copy To".
2. Choose a destination on another physical drive or storage device. Not a different folder on the formatted drive.
3. When the copy finishes, browse recovered files and verify that they actually work.
The free edition of DiskGenius lets you run the full scan and preview every file it finds. That is the part you need to make an informed decision: after scanning and previewing, you will know exactly which of your files are intact and worth recovering.
Saving recovered files to disk is what requires the registered version. So the sensible order is: scan first, preview second, register only when you have confirmed that your important data is actually there. If the preview shows that the files you need are gone for good, no recovery tool can help, and you have not spent anything to find that out.
The recovery process for flash drives and memory cards is the same as for hard drives, and the differences lie in the devices themselves.
Whatever the device, one rule is identical: recover to a different device. Never copy recovered files back onto the card or flash drive you are recovering from.
USB flash drives are usually the easiest case. They tend to be small, they are rarely used as system drives, and people often stop using them right after the mistake.
If that is you, plug the drive in, run the steps from the section above, and save the recovered files somewhere else.
SD and microSD cards get formatted in cameras, drones and phones more often than anyone would like. The camera asks whether you want to format the card, a tired thumb taps "Yes", and every photo from the trip is gone.
Stop shooting immediately. Any new photo or video written to the card is direct overwrite.
Take the card out of the device and connect it to the PC with a card reader rather than a USB cable through the camera or phone, and flip the physical write protection switch if the card has one.
A note on FAT32 and exFAT recovery. Memory cards use these file systems almost exclusively, and both are simpler than NTFS. Their directory structures are easier to overwrite and rebuild, which means file names and folder paths are more often lost during recovery, even when the file contents survive. The practical consequence: expect more orphaned files and more manual renaming than you would get on an NTFS drive. The next section covers how each file system behaves in detail.
Not all file systems leave the same breadcrumbs behind. The structure of a file system decides how much of the original context, meaning file names, folder paths and timestamps, survives a format.
NTFS
NTFS keeps a Master File Table with a record for every file, and format operations on NTFS often leave traces of those records behind. This is why recovering from a formatted NTFS drive tends to give the best results: file names, folder structure and timestamps are frequently recovered intact along with the files.
FAT32 and exFAT
FAT32 and exFAT use simple directory entries instead of a master table. These entries are small and scattered, which makes them easy to overwrite with the next batch of files. After a format and some use of the drive, file names and folder structures are often the first thing to go, while the file contents themselves remain recoverable.
EXT4
EXT4 sits in between. It journals metadata changes and uses inodes, which gives recovery tools more to work with than FAT does. Expect decent results on a freshly formatted EXT4 drive and diminishing returns as new data is written. Linux users recovering EXT4 volumes should note that some distributions also trigger TRIM on SSDs during formatting.
Sometimes the scan finds hundreds of files and half of them will not open. That is normal, and there are four usual suspects.
Data overwritten. New data written after the format landed on top of some of the old clusters. Partially overwritten files usually show up as broken images, videos that stop halfway through, or documents with garbled sections.
Fragmented files. Files that were stored in fragments across the disk are harder to reconstruct. When the file system metadata that maps those fragments is gone, the recovery tool may grab the first fragment and not the rest. In the worst case, chunks of different files get stitched together and nothing opens correctly.
Damaged sectors. If part of the file sits on a bad sector, that part simply cannot be read. The file recovers incomplete no matter which tool you use.
Lost file system metadata. Even when the contents are fine, missing metadata can leave files unnamed and unsorted, as orphaned files with no folder context.
This is exactly why DiskGenius includes file preview. Scanning to a file is not the same as recovering a working file. Preview before you recover, and judge each file by what you actually see.
1. Can I recover files after formatting twice?
In many cases, yes. Two quick formats in a row mostly just rebuild the file system index twice. The data area still may not have been touched. However, any use of the drive between or after the formats reduces your chances, because the files you want back may have been overwritten by new data.
2. Can I recover files after reinstalling Windows?
Sometimes, but expectations should be low. A Windows installation writes tens of gigabytes to the drive and overwrites a large portion of whatever was there. Files stored in areas the installation did not touch can still be recovered, so it is worth running a scan, but a significant part of the old data is likely gone.
3. Can I recover a formatted external hard drive?
Yes, and external drives are often the best case. People usually notice the mistake and stop using the drive right away, which keeps the data intact. Connect the drive to your PC, run DiskGenius to scan the drive, and save the recovered files to a different disk.
4. Can I recover data after a full format?
On Windows Vista and later, a full format writes zeros to every sector, and the old data is gone in practice. The two exceptions worth checking: a full format that was interrupted before finishing, and older systems that did not write zeros during a full format. In those cases a scan may still find something.
5. Can I recover formatted files from an SSD?
It depends on TRIM. If the SSD has been idle since the format and you moved quickly, a scan may still recover a good amount of data. If the drive has been running for hours, TRIM and garbage collection have likely erased much of it. The only way to know is to scan, so it is always worth trying before you accept the loss. Learn more about SSD data recovery.
6. How long does it take to recover files from a formatted hard drive?
It depends on the size and speed of the drive and on the scan options you choose. A 1 TB hard drive typically takes anywhere from under an hour to several hours, and adding the file type search extends the scan further. Previewing files does not add much time and is worth every second of it.
Accidentally formatting a drive feels catastrophic in the moment. But in the vast majority of cases, especially quick formats on healthy drives, the data is right where you left it. Invisible to the operating system, but still there.
DiskGenius makes the data recovery process straightforward. Scan the drive, preview what was found, recover what looks good, save it somewhere safe. Four steps. The preview feature removes most of the uncertainty. You see the actual file content before you commit, which means no unpleasant surprises after the fact.
Act quickly. Stop using the formatted drive. Save recovered files to a different location. Follow those three rules and your odds of a full recovery are excellent.
DiskGenius is a one-stop solution to recover lost data, manage partitions, and back up data in Windows.
Download