Updated 2026-11-16 · 5 min read
How to Unformat a Hard Drive or USB on Windows and Mac
Accidentally formatted the wrong drive? Here is how to undo a quick format and recover your files, folder structures, and photos.
Accidentally clicking 'Format' on the wrong external hard drive, USB flash drive, or camera SD card is one of the most common data disasters. In a matter of seconds, hundreds of gigabytes seem to vanish.
The good news: a standard Windows or Mac 'Quick Format' does not actually erase your files. It simply writes a clean filesystem index, leaving the underlying data clusters untouched until new data overwrites them.
What Actually Happens During a Format?
Windows and macOS perform a Quick Format by default. A quick format overwrites only a tiny fraction of the disk (the Master Boot Record, partition table, and empty Master File Table or inode tables).
Unless you explicitly ran a full zero-fill format (which takes hours), your photos, documents, and videos are still physically resting on the drive sectors.
Crucial Rule: Zero Writes After Formatting
Do not copy new files, do not install software on the drive, and do not use the drive to store temporary files. Any new write will permanently crush the old, unindexed data.
How DiskMend Reconstructs Formatted Volumes
DiskMend looks for the previous file system’s boot records (including their backup copies), reads leftover NTFS file records and FAT/exFAT directory entries, and then searches the whole drive by content. Folder trees and original names come back wherever those records survive; files found only by content get generic names.
Step by step
- 1
Do not write to the drive
Keep the drive plugged in but do not save or copy anything to it.
- 2
Open DiskMend
Select the formatted drive from DiskMend’s device list.
- 3
Scan for pre-format files
DiskMend scans for prior filesystem records and raw content signatures.
- 4
Preview found files
Check photo previews and each file’s intact or partial status.
- 5
Recover to a different drive
Export the files to another safe hard drive or SSD.
| Format Method | What Happens to Sectors | Recovery Likelihood | Software Recovery |
|---|---|---|---|
| Quick Format (Windows) | Only metadata tables reset | High | Fully supported (DiskMend) |
| Erase (macOS APFS/HFS+) | New file system written | Good for photos, videos and documents | Content search (no original names) |
| Full Format (Zero-Fill) | Every sector written with 0s | 0% (Data destroyed) | Impossible by any tool |
Frequently asked questions
Can I undo a format in Windows?+
Windows has no native 'unformat' button, but data recovery software like DiskMend can scan the unallocated sectors and reconstruct your pre-format files.
Does quick format delete everything permanently?+
No. Quick format only marks the space as available. The actual contents remain until new files overwrite them.
Can DiskMend recover original filenames after format?+
Yes. DiskMend checks residual directory indexes ($MFT records, FAT directory trees, and INDX slack space) to restore original names and paths.