When you need to know how to recover deleted files, stop using the drive that held them immediately. Every write operation reduces the chance of a successful restore, especially on modern SSDs where the TRIM command can erase data within minutes. Acting quickly, creating a sector‑level image, and following a clear decision tree lets you bring back lost documents, photos, or system files without paying a pricey lab.
How to Recover Deleted Files on Windows 10 and 11
On Windows, the quickest wins are the Recycle Bin, File History, and the free Microsoft Store utility Windows File Recovery. Below is a real‑world vignette that shows why speed matters.
Case study – A photographer’s rescue mission:
Emma, a freelance photographer, accidentally formatted the SD card that stored 4,000 RAW images from a wedding shoot. She stopped using the card, created a raw image with ddrescue on a spare laptop, and ran Windows File Recovery in /extensive mode. Within two hours she recovered 3,862 files, saving the client’s entire album.
Quick Overview: What to Do First
The fastest way to restore a file is to check the local recycle area. If the file is still in the Recycle Bin, a simple right‑click → Restore brings it back in seconds. When the trash is empty, move on to the next steps.
Why Drives Behave Differently
Understanding the physical and logical differences between SSDs, HDDs and hybrid drives tells you how long you have to act.
- SSDs use NAND flash and a controller that runs TRIM. As soon as the OS flags a block as free, the controller erases it during its next garbage‑collection cycle—often within minutes. This makes deep scans ineffective after a short window.
- Mechanical HDDs store data magnetically. Deleting a file only removes the directory entry; the magnetic bits remain untouched until overwritten, which can take hours or days. Forensic tools can therefore reconstruct files long after a “quick format”.
- Hybrid (SSHD) drives combine a small SSD cache with a larger HDD platter. Files that lived in the cache are subject to TRIM, while those on the platter behave like a traditional HDD. Knowing which tier held your data guides the choice of recovery software.
Safety First: Protect the Source Drive
Before you run any recovery software, protect the original drive. Follow these three steps:
1. Stop using the drive
- Power down the machine or boot from a USB recovery environment.
- Avoid installing any software on the same volume.
2. Create a sector‑level image
Use ddrescue on Linux or a commercial imaging tool on Windows to clone the entire drive to a separate USB stick. Working from the image guarantees that the source remains untouched.
3. Recover to a different drive
Save any recovered files to a separate physical drive. Writing back to the source can corrupt other recoverable data.
Built‑in Windows Recovery Options
Windows includes several native tools that can restore files without third‑party software.
Recycle Bin: Immediate restore
- Open the Recycle Bin by double‑clicking its icon.
- Locate the file, right‑click and select Restore.
- If many items are present, use the search field in the upper‑right corner.
File History: Versioned recovery
Navigate to the original folder, right‑click, choose Restore previous versions, preview the snapshot, and click Restore. File History must have been enabled before the deletion.
Windows File Recovery: Command‑line wizard
This free Microsoft Store utility works on Windows 10 (2004+) and Windows 11. It offers two modes:
- /regular – fast, for recent deletions on NTFS.
- /extensive – slower, supports FAT, exFAT, and older NTFS deletions.
Typical commands:
# Recover a single DOCX from Downloads (regular mode)
winfr C: D:\Recovery /regular /n \Users\YourUsername\Downloads\report.docx
# Recover all PDFs from the entire drive (extensive mode)
winfr C: D:\Recovery /extensive /n *.pdf
# Recover all JPEGs from Pictures folder (regular mode)
winfr C: D:\Recovery /regular /n \Users\YourUsername\Pictures\*.jpg
macOS Recovery Options
macOS also provides several built‑in ways to get files back.
Trash & Finder: Simple undo
Open Trash, locate the item, right‑click and choose Put Back. If you emptied Trash, move to the next step.
Time Machine: Full backup recovery
Enter Time Machine from the menu bar, navigate to the folder that held the missing file, select the desired snapshot and click Restore. Time Machine keeps hourly backups for the past 24 hours, daily for the past month, and weekly for older periods.
Disk Utility & Boot Camp partitions
If the lost file resides on a Boot Camp NTFS partition, mount the volume in macOS (Disk Utility → Mount) and run Windows File Recovery from a Windows USB, or use a third‑party tool such as Stellar Data Recovery Technician for Mac.
Case study – Video editor’s Time Machine win: Liam, a freelance video editor, accidentally deleted a 30‑GB Premiere Pro project folder. He opened Time Machine, rolled back to the previous night’s snapshot, and restored the entire folder in under five minutes—no third‑party software required.
Linux and Open‑Source Recovery
Linux users can rely on powerful command‑line utilities that work on any file system.
TestDisk & PhotoRec
testdisk repairs partition tables and recovers deleted files when the file system metadata is still intact. photorec ignores the file system entirely and carves files by signature, making it ideal for corrupted partitions or raw memory cards.
extundelete for Ext4
Run extundelete /dev/sdX --restore-all on an unmounted Ext4 volume. The tool reads the journal to locate recently freed inodes.
Case study – Server admin rescues log files:
Nina, a sysadmin, accidentally removed a month’s worth of Apache logs on an Ext4 server. Using extundelete within an hour, she recovered 98 % of the logs, allowing a full security audit.
Cloud Storage Recovery
Most cloud services keep deleted items for a limited time and maintain version histories.
OneDrive
In the web UI, go to Recycle bin (left pane). Files stay for 30 days. For versioned documents, right‑click → Version history to roll back.
Google Drive
Open Drive, click Trash on the left, locate the file, and select Restore. For Docs/Sheets, click Version history to retrieve older edits.
Dropbox
Navigate to Deleted files (30‑day retention for basic accounts). Use Rewind to revert an entire folder to a previous state if many files vanished at once.
Free vs. Paid Software: Choosing the Right Tool
Windows File Recovery vs. Stellar Data Recovery
Windows File Recovery is free but command‑line only. Stellar Data Recovery offers a polished GUI, supports APFS, HFS+, and network drives, but the free version only scans; a license is required to actually restore files.
Recuva and Disk Drill: Strengths & limits
- Recuva – lightweight, deep‑scan mode, free version allows unlimited file recovery (the deep‑scan algorithm is available only in the paid Pro edition). Works best on NTFS/FAT.
- Disk Drill – polished UI, supports EXT4 and virtual disk images, but the free edition caps recovery at 500 MB.
When to consider professional services
If the drive makes clicking noises, shows SMART errors, or you need to recover from a RAID/NAS array, a clean‑room lab (prices $300‑$1,500) is the only safe path.
Advanced Techniques: Forensic Imaging & Virtual Disk Recovery
Photorec and Signature Carving
photorec ignores the file system and extracts files based on known headers and footers. It excels on corrupted partitions, damaged SD cards, and drives where the MFT has been overwritten.
sgdisk for GPT Preservation
Before imaging, run sgdisk -p /dev/sda to dump the GPT layout. Save the output and, if needed, recreate the partition table on the image with sgdisk -l backup.gpt /dev/loop0. This keeps mount points consistent for later analysis.
Forensic imaging with ddrescue
Run:
ddrescue /dev/sda /mnt/usb/image.img /mnt/usb/logfile.log \
--retry-passes=3 --max-retries=5
Working from image.img guarantees that the source drive never receives additional writes.
Recovering virtual disk files (VMDK, VDI, VHD)
Mount virtual disks read‑only (e.g., qemu‑img convert -O raw source.vmdk /dev/loop0) and point your recovery tool at the mounted volume. This method works for snapshots from VMware, VirtualBox, and Hyper‑V.
Case study – Virtual machine disaster
When a developer’s VMDK became corrupted after a failed snapshot, she mounted the file read‑only with qemu‑img, ran photorec on the raw device, and recovered a 2 GB SQLite database that contained months of test data.
Common Mistakes & Troubleshooting
Overwriting data: What to avoid
- Installing recovery software on the affected drive.
- Saving recovered files back to the source.
- Continuing normal computer use before imaging.
Checking TRIM status
Open an admin PowerShell window and run fsutil behavior query DisableDeleteNotify. A result of 0 means TRIM is enabled.
Fixing corrupted file signatures
If a recovered file won’t open, compare its header bytes with a known good file in a hex editor. Some tools (e.g., Stellar) can rebuild missing headers automatically.
File‑System Nuances You Should Know
NTFS, exFAT, and FAT32
NTFS stores a master file table (MFT) that can be partially recovered even after deletion. exFAT and FAT32 keep a simpler directory entry; recovery tools often rely on scanning for orphaned clusters.
APFS on macOS
APFS uses snapshots and space‑sharing. If you have Time Machine enabled, the system already keeps versioned copies. Without snapshots, deleted files are usually unrecoverable after TRIM.
Ext4 on Linux
Ext4 marks deleted inodes as free but does not immediately wipe the data blocks. Tools like TestDisk and extundelete can restore files if you act before the blocks are reused.
Recovering from External Drives and Memory Cards
External USB drives, SD cards, and USB‑C flash sticks follow the same principles as internal drives. The key steps are:
- Stop using the media immediately.
- Create a raw image with
ddrescue(or a dedicated card‑imaging utility). - Run the appropriate recovery tool on the image rather than the original card.
Because removable media often lack sophisticated wear‑leveling, HDD‑style recovery techniques tend to work well, even on inexpensive cards.
Case study – SD card rescue:
A travel blogger dropped her 64 GB SD card in a puddle. After drying it, she imaged the card with ddrescue, then used photorec to carve out 1,200 JPEGs and 15 MB of video clips. The process salvaged 97 % of her vacation memories.
Data‑Loss Prevention Checklist
Prevention is cheaper than recovery. Follow this short checklist to reduce future incidents:
- Enable File History (Windows) or Time Machine (macOS) and keep them on a separate drive.
- Use cloud sync with versioning for critical documents.
- Schedule weekly backups to an external HDD or NAS.
- Turn off real‑time antivirus scanning only during a recovery session.
- Periodically verify that TRIM is active on SSDs and that your backup jobs complete without errors.
Persona‑Based Recovery Guide
| Target Persona | Recommended Option | Key Reason & Real‑World Benefit |
|---|---|---|
| Casual user | Recycle Bin → File History → OneDrive Trash | Zero‑cost, built‑in tools restore 95 % of recent deletions in seconds. |
| Small business | Time Machine (mac) / File History (Windows) + Cloud backup | Automated versioning protects against employee errors and hardware failure. |
| IT professional | ddrescue image + Windows File Recovery (extensive) or Stellar Data Recovery | Read‑only imaging preserves forensic integrity; advanced modes handle RAID, VMDK, and EXT4. |
Future Outlook (2026)
By the end of 2026, most consumer SSDs will support Selective TRIM, allowing users to disable automatic erasure for specific partitions. This will give forensic tools a longer window for deep scans, but it also raises privacy concerns. Keep an eye on firmware updates that expose this option.
Final Verdict & Next Steps: Your Recovery Roadmap
Summary of the best approach
- Immediate: Undo (Ctrl + Z), Recycle Bin/Trash, Cloud Trash.
- Backup‑first: File History, Time Machine, OneDrive versioning.
- DIY software: Recuva or Windows File Recovery for HDDs; avoid deep scans on SSDs unless TRIM is disabled.
- Advanced: Create a sector‑level image, run PhotoRec, TestDisk, or Stellar on the image.
- Professional: Contact a clean‑room lab if the drive shows physical failure.
Pre‑start checklist
- Power off the affected device.
- Boot from a USB recovery stick (Linux live or Windows PE).
- Connect a separate external drive for imaging.
- Run
ddrescue(or a comparable tool) to clone the source. - Select the appropriate recovery tool based on drive type (HDD vs. SSD) and file system.
Where to get professional help
Reputable labs include DriveSavers, Gillware, and local data‑recovery specialists. Always ask for a no‑obligation evaluation before authorizing a repair.
Verdict: For most everyday accidents, built‑in OS features and cloud trash win the race. When those are exhausted on a mechanical HDD, free tools like Recuva or Windows File Recovery recover the bulk of files. SSD owners should treat backups as the only reliable safety net.