Can You Recover Deleted Files from a USB Flash Drive?
In this article
Yes. On a USB stick without TRIM, deleted data can stay on the memory chips until something overwrites it. Here's what to do.
- Stop writing to the drive immediately: don't save files, create folders, or even open files from it
- Check the Recycle Bin / Trash and any backup first
- If the stick reads normally, run free software like Recuva (Windows) or PhotoRec (Win/Mac/Linux)
- Save recovered files to a different drive, never back to the same USB
If the drive is snapped, physically damaged, or still isn't recognized on a second computer, stop there. With professional flash drive recovery, we can try to read the memory directly.
When the stick itself won't work, we need readable memory to get your files back. Even if we can read the chip, we still have to correct errors and put the pieces back in the order the controller used. Encryption can keep those files locked.
At MDRepairs' data recovery lab, we offer USB flash drive recovery. This guide walks through every option, from free software you can try right now to what professional recovery looks like when the drive itself is broken.
The Short Answer: What Happened to Your Files?
Before we get into the how, here's a quick look at what each situation means for your files.
| Scenario | Recovery conditions | Details |
|---|---|---|
| Accidentally deleted files (haven't used the drive since) | Readable deleted data | Recovery requires the original file contents to remain readable. |
| Formatted the drive (quick format) | Depends on the format operation | Recovery depends on what the format changed and whether file contents remain. |
| Formatted the drive (full format in Windows) | Overwritten data | A completed full format overwrites the whole volume. Look for another copy of the files. |
| Deleted files, then saved new files to the drive | Depends on what was overwritten | New data may have overwritten some deleted files. Recovery depends on which data was overwritten. |
| Drive not recognized by computer | Does the computer see the stick itself? | A missing drive letter alone doesn't mean the memory has failed. If the stick is intact, try another USB port. |
| Physically broken drive (snapped, crushed, water damage) | Readable memory | We need to read the chip, correct its errors and piece the files back together. Encrypted files also need their key. |
| Drive was securely erased (overwritten with zeros) | No | If a secure erase tool overwrote every sector, the original data is gone. |
Why USB Flash Drives Are Different from SSDs
You might've heard that flash storage makes recovery difficult or impossible. That can be true for SSDs and iPhones, but a basic USB flash drive can be a different animal. Here's a quick look at why.
The TRIM Factor
SSDs inside your laptop or desktop can use a feature called TRIM. When you delete a file, your OS can send a TRIM command telling the SSD which data blocks aren't needed anymore. The SSD's controller can then erase those blocks in the background. Great for performance. Terrible for data recovery, because the old contents can stop being readable even before you save another file.
A regular USB stick may never get that TRIM command. On a stick without TRIM, deleting a file doesn't tell the drive to erase the contents. The file system just marks that space as free. Some USB drives have an SSD controller and do support TRIM.
This is one difference between USB flash drive recovery and SSD recovery. Without TRIM, deleted files can stay on a USB stick until something writes over them. That matters in hard drive recovery too.
IllustrationHow USB Deletion Actually Works
When you delete a file from a USB flash drive and it doesn't go to the Recycle Bin or Trash, here's what happens:
- The file system entry is marked as deleted. On FAT32 or NTFS, the old entry can still hold clues to where the file starts. It's like ripping a page out of a book's table of contents. The chapter's still there, you just can't find it through the index anymore.
- The data blocks get marked as "available." The space those files occupied is now considered free by your OS. New files can be written there.
- The actual data can stay on the NAND chips. On a stick without TRIM, the ones and zeros that made up your file can still be there after its name disappears. New files can take over that space.
That's why it matters what you do next. Every file you save to the stick can overwrite part of the one you deleted.
How This Compares to iPhones
For comparison, recovering deleted data on an iPhone works differently. An iPhone uses hardware encryption to protect each file. Reading the memory alone won't give you a deleted photo you can open. A USB stick without encryption doesn't have that extra layer.
How to Recover Deleted Files from a USB Drive (Free Methods)
If your USB drive is working normally (your computer sees it and you can open it), you can try recovering deleted files yourself with free software. Here are the best methods, starting with the easiest. Save recovered files to your computer so you don't overwrite anything still on the USB stick.
IllustrationMethod 1: Check the Recycle Bin First
Sounds obvious, but check anyway. Windows skips the Recycle Bin by default for sticks it treats as removable. Shift+Delete skips it too. Open the Recycle Bin on your desktop and look for your files. If they're there, drag them to a folder on your computer.
On macOS, files you move to Trash from an external drive can stay on the drive itself. With the USB drive still plugged in, open Trash in the Dock. If you see your files, drag them to a folder on your Mac.
If your files aren't in the Recycle Bin or Trash, check the computer or phone you copied them from and any backup. If you find a copy, you can skip recovery software.
Method 2: Recuva (Windows, Free)
Recuva is a free recovery tool for home use on Windows. Its wizard walks you through looking for deleted files on your USB drive.
1 Download and install Recuva
Download Recuva Free to your computer. Install it on your computer's hard drive, NOT on the USB drive you're trying to recover from. This is important because installing software on the USB drive could overwrite your deleted data.
2 Launch Recuva and select your USB drive
Open Recuva and click Next. The wizard will ask what type of files you want to recover. Select "All Files" to look for every file type, then click Next. On the next screen, choose "In a specific location" and select your USB drive letter (e.g., E:).
3 Enable Deep Scan
Click Start with "Enable Deep Scan" unchecked for the first pass. If your files don't show up, run the wizard again, check "Enable Deep Scan" and click Start. This takes longer and can find files by their contents even when their names are missing.
4 Review the results
Recuva shows a list of the files it found. The colored circles tell you what Recuva thinks of their condition.
- Green circle: Excellent condition
- Orange circle: Recuva has flagged a possible problem with the file.
- Red circle: Recuva's strongest warning. You can still select the file if it's one you need.
5 Recover files to a DIFFERENT location
Check the boxes beside the files you want to recover, click "Recover", and save them to your computer's hard drive or another storage device. Never save recovered files back to the same USB drive, as this could overwrite other deleted files you haven't recovered yet. Open the copies on your computer. Look through the last pages of a document or play a recovered video to the end.
Method 3: PhotoRec (Windows, Mac, Linux, Free)
PhotoRec is free, open-source, and works on Windows, macOS, and Linux. Don't let the name fool you. It recovers way more than photos, including documents, videos, archives, and databases. It recognizes over 480 file extensions. The command-line interface can be intimidating if you're not technical.
1 Download PhotoRec (comes with TestDisk)
Download the stable release for your operating system from CGSecurity's TestDisk download page. PhotoRec is included in the TestDisk package. Extract all the files to a folder on your computer.
2 Run PhotoRec
Open the extracted folder. On Windows, double-click photorec_win.exe and approve the administrator prompt. On a Mac, open photorec and enter your Mac password if asked. On Linux, open a terminal in the extracted folder, type sudo ./photorec_static and press Enter. You'll see a text-based interface. Use the arrow keys to navigate.
3 Select your USB drive
PhotoRec will list the drives it can see. Select your USB flash drive from the list. Be careful to pick the right drive as the sizes are shown alongside each device. Press Enter. If a working stick is missing on a Mac, open System Settings, choose Privacy & Security, then Full Disk Access. Click +, add the photorec program from the extracted folder and reopen it.
4 Choose the partition and file system
Select the partition that held your files, choose Search and press Enter. Choose Other for FAT32, exFAT, NTFS or a Mac file system. For Linux ext2, ext3 or ext4, choose ext2/ext3. For deleted files, choose Free if offered to search the space marked unused. After a quick format, choose Whole. If there is no Free option, PhotoRec searches the whole partition.
5 Choose a destination and start scanning
Select a folder on your computer's hard drive where recovered files will be saved. Use the arrow keys and Enter to open that folder, then press C to start the recovery. PhotoRec will search the space you chose and extract files it recognizes. This can take a while on larger drives.
Method 4: TestDisk (for Formatted or Corrupted Drives)
TestDisk (bundled with PhotoRec) handles lost partitions and corrupted file systems. If your USB drive shows up as "RAW" or "unformatted" in Windows, cancel any offer to format it. If the stick stays connected at the right size, TestDisk can look for the old partition. If it can list your files, you can copy them with their original names.
Open the TestDisk program from the folder you extracted on your computer. That's testdisk_win.exe on Windows or testdisk on a Mac. On Linux, open a terminal in that folder and run sudo ./testdisk_static. Approve the administrator prompt if asked.
Choose Create for the log. Select the USB disk by size and press Enter. Accept the detected partition type with Enter, then choose Analyse and Quick Search. Highlight the partition it finds and press P to list the files. Highlight a file, press lowercase c, open a folder on your computer and press uppercase C to copy it there.
Fair warning though: TestDisk is more advanced and can cause issues if used incorrectly. Quit without selecting Write, which changes the partition table on the stick. If you're not comfortable with partition-level stuff, skip this method and use PhotoRec on a stick that reads steadily.
Method 5: Windows File History
If you had Windows File History turned on and the folder was included in the backup, you might be able to restore previous versions. Connect your File History backup drive if you use one. Right-click the folder where the files used to be, pick "Restore previous versions", and look for a version that has your deleted files. If the folder itself is missing, right-click the folder or drive that held it.
Click the arrow beside Restore, choose Restore to... and pick a folder on your computer. If you copied photos from your PC's Pictures folder to the stick, check that folder's previous versions too.
Best Free Recovery Software for USB Drives
Here's how the best free tools stack up. These are all genuinely free, not trial versions that make you pay to actually save your files.
| Software | OS Support | Ease of Use |
|---|---|---|
| Recuva | Windows | Very easy. Wizard-based. Best for beginners. |
| PhotoRec | Windows, Mac, Linux | Moderate. Command-line, but well-documented. |
| TestDisk | Windows, Mac, Linux | Advanced. Best for partition recovery. |
| Windows File Recovery | Windows 10 (version 2004 or later), Windows 11 | Moderate. Microsoft's command-line tool. |
Our recommendation: Start with Recuva if you're on Windows. Friendliest interface. If Recuva doesn't find what you need, run PhotoRec as a second pass on a healthy stick. It looks for files by their contents, which helps when their names and folders are gone.
To try Microsoft's tool, install Windows File Recovery and open it from Start. Select Yes at the administrator prompt. For JPG photos on a FAT32 or exFAT stick at E:, type winfr E: C: /extensive /n *.jpg and press Enter. Use your USB letter first and a different drive with room for the photos second. Press Y to continue. Look for a folder starting with Recovery_ on the destination drive.
On a Mac? PhotoRec's a free option. You can save the files it finds without buying a paid tool.
When DIY Recovery Won't Work
You can try recovery software when the USB drive is physically healthy and your computer can see it. But there are situations where no software in the world will help. Here's when you need professional recovery.
The Drive Isn't Recognized by Your Computer
You plug in the USB drive and nothing happens. No drive letter, no notification. On Windows, right-click Start and open Disk Management. Look for the stick by size and cancel any offer to initialize or format it. If an intact stick is missing there too, try a different USB port, then a different computer. If neither computer sees it, or the stick shows up with a total size of 0 bytes, the controller chip or a connection on the board could have failed. Recovery software can't scan a drive your computer can't even see.
Broken or Damaged USB Connector
USB drives get bent, snapped, or broken right at the connector. Sometimes the metal plug breaks off entirely. If that happens, leave the drive unplugged. If the memory chip is intact and readable, we can try to bypass the broken plug and read the chip directly.
IllustrationNAND Flash Chip Failure
Flash memory chips have a limited number of write cycles. Some cheap drives are actually counterfeit or fake flash drives that report a larger capacity than they actually have, which leads to data loss even before any real failure. Corrupted files, a drive going read-only, or the wrong capacity are reasons to stop scanning. If the controller can't read the chips reliably anymore, we can try to read them directly if the memory is intact.
Water or Heat Damage
USB drives that went through the washing machine, got dropped in a puddle, or sat in a hot car may have damaged components. Don't plug in a wet stick to see if it works. Water or detergent can damage the connections on the board. If the memory is still readable, we can try to get the files back.
The Drive Was Encrypted
Some USB drives have hardware encryption, like an IronKey. If yours is locked, use the password or recovery option you set up for it before you scan. Don't keep guessing or reset the drive. Some models erase their data after too many wrong attempts. If the encryption key is lost, the data's gone.
How Professional USB Recovery Works
When software can't do it because the drive is physically damaged or the controller's dead, our data recovery lab can work on the connection or try to read the flash memory chips directly.
Chip-Off Recovery
If we can't get the stick working through its original connection, we can try reading the memory directly. On a stick with a separate memory chip, we lift it off the board to read it. Then we have to correct read errors, undo the controller's scrambling and put the pieces back in order. If the errors are beyond what we can correct, even a full read of the chip can leave a file that won't open.
This works because the data lives on the NAND chip, not the controller.
IllustrationNAND Reading and Reconstruction
Reading raw NAND data is only half the battle. The USB drive's controller spreads writes across the memory, keeps track of where each piece went and corrects errors when it reads. When we read a NAND chip directly, we get raw data in the controller's internal format, not the nice organized file system you see when you plug the drive into a computer.
We use specialized software to work out where each piece belongs and rebuild the original files and folders. Different controllers can put the pieces in a different order. It's tedious, detail-oriented work, right down to opening the recovered files to see whether they're usable.
Controller Repair
First we identify the controller and see whether repairing the original connection will let the stick read normally again. If we need to read the memory directly, the design matters. On a stick where the controller and memory share one package, tiny contacts on that package can give us a way to reach the memory.
What It Costs
Flash drive and SD card recovery at MDRepairs runs from $299 to $1,750+. What it costs depends on whether the stick needs physical work. Check our data recovery pricing page for current rates.
- File and Folder Problems ($299 - $1,500). If the stick needs no physical work, it's $299 up to 64GB, $500 for 128GB, $1,000 for 256GB and $1,500 for 512GB.
- Chip Access & Reconstruction ($1,750+). We read the memory chip directly and piece the files back together.
We start with a $100 diagnostic, credited toward a successful recovery. You approve the estimate before recovery work starts. If we can't get any files back, there's no recovery fee.
Common Mistakes That Make Recovery Harder
Deleted files from your USB drive and want them back? Don't make these mistakes. Any one of them could overwrite files you want back or damage the drive.
1. Continuing to Use the Drive
Every file you save to the drive and every folder you create could overwrite deleted data. Even opening a file can do it if the app saves a temporary file on the stick. The moment you realize files are missing, stop using the drive. Don't save your recovery software to it. Don't save "test files." Don't even browse it in Windows Explorer if you can avoid it, because Windows sometimes writes hidden metadata files to removable drives.
2. Running CHKDSK on the Drive
If Windows detects issues with your USB drive's file system, it may prompt you to "scan and fix" the drive. Do NOT do this if you're trying to recover deleted files. CHKDSK in repair mode can change the records that recovery software uses to find your files.
When Windows pops up that dialog, hit "Cancel." Run your recovery software first. Fix the file system afterward if needed.
3. Formatting the Drive Again
A second format can overwrite more of what recovery software needs. Formatted by mistake? Stop. If the stick still reads normally, run recovery software before you try to use it again.
4. Using Unreliable Recovery Software
Some "data recovery" programs let you scan your drive and show you previews, then ask you to pay to save the files. Stick with the free tools listed above. Recuva Free for home use, PhotoRec, and TestDisk let you save the files they find.
5. Attempting Physical Repairs Yourself
Don't try to straighten a bent plug or solder it back on at home. If we need to read the chip directly, we keep a copy of that first read, correct the errors we can, and put the pieces back in order. Then we test the recovered photos, videos or documents. Seeing a filename doesn't tell you whether the whole file opens.
How to Prevent USB Flash Drive Data Loss
USB flash drives are convenient but risky. They're small (easy to lose) and portable (easy to damage). Here's how to protect yourself.
1. Back Up Important Files
Simplest protection there is: never keep the only copy of important files on a USB drive. Copy anything important to your computer's hard drive, a cloud service (Google Drive, Dropbox, OneDrive, iCloud), or a second USB drive. USB drives are great for moving files between devices, but they shouldn't be your only storage for anything you can't afford to lose.
2. Always Safely Eject the Drive
Yanking a USB drive out while files are still being written can corrupt them. On Windows, right-click the "Safely Remove Hardware and Eject Media" icon in the system tray, select Eject for your drive and wait for the safe-to-remove message. On Mac, drag the drive to the Trash (which becomes an eject icon) or right-click and select "Eject." Wait until the drive disappears before you unplug it.
3. Avoid Cheap, No-Name Drives
Not all USB drives are equal. Stick with reputable brands like Samsung, SanDisk, Kingston, or Corsair, and buy from the maker or an authorized seller. A counterfeit stick can claim to hold more than it really can. You wouldn't store important documents in a cardboard box in the rain. Don't store the only copy on a gas station USB drive either.
4. Use Cloud Sync for Working Files
If you're regularly moving files between computers, consider a cloud sync service instead of (or alongside) a USB drive. Google Drive, Dropbox, or OneDrive keep files synced across your devices and maintain version history. If you accidentally overwrite something, look for an earlier version while the service still has it.
5. Don't Carry a USB Drive on Your Keychain
USB drives on keychains take a beating. The connector can loosen over time, solder joints can crack from vibration, and the casing can split open. If you carry a USB drive in your pocket or bag, use one with a retractable connector or a protective cap. Better yet, keep it in a small case.
6. Replace Old Drives
Flash memory doesn't last forever. Each memory cell can take only so many writes. If a drive starts dropping files or turning read-only, get your files safe before replacing it. USB drives are cheap. Your data isn't.
Frequently Asked Questions
Can you recover deleted files from a USB flash drive for free?
Yes. Recuva Free (Windows, for home use) and PhotoRec (Windows, Mac, Linux) both let you save recovered files for free. Stop using the drive immediately after deletion and save anything you recover on a different drive.
Why is USB flash drive recovery easier than SSD recovery?
It comes down to TRIM. On a USB stick without it, deleted data can stay on the memory chips until something overwrites it. On SSDs that receive TRIM commands, the controller can erase those blocks in the background. Once the drive stops returning the original data, recovery software can't read it. See our complete guide to recovery by device type for how every storage type compares.
How long do deleted files stay on a USB flash drive?
There's no timer that starts when you delete a file. On a working stick without TRIM, the data can still be there as long as that space hasn't been reused. Flash memory can lose data in storage, too. If it's been a year since you deleted the files, you can still try a scan on a stick that reads normally.
Can you recover files from a formatted USB drive?
After a quick format, you can try scanning a working USB stick. The format creates a new file system, but some file contents may still be there. A completed full format in Windows overwrites the whole volume. If that's what happened, look for a backup. Don't format the stick again.
What should I do if my USB drive is not recognized by my computer?
If the drive is wet, bent, or getting unusually hot, leave it unplugged. If it looks intact, try a different USB port. Then try a different computer. If you're using a cable, try a known working data cable. If neither computer sees the stick itself, software can't scan it. Our professional flash drive recovery starts with finding out whether we can read the stick through its connector or need to reach the memory directly.
Is it worth paying for professional USB drive recovery?
Depends on what's on the drive. Professional recovery makes sense when the drive's physically damaged, your computer doesn't recognize it, or free software came up empty. At MDRepairs' data recovery lab, the initial fee goes toward a successful recovery. The $100 diagnostic is non-refundable once diagnostics start, and donor drives or replacement parts you approve are non-refundable once ordered, even if recovery fails. You approve the estimate before recovery work starts.
Can I recover files from a USB drive that went through the washing machine?
If the memory is still readable, we can try. Leave the stick unplugged, even if the outside looks dry. Detergent can leave residue on the connections inside. We can diagnose the damage and, if the connection can't be restored, try reading the memory chip directly.
Do USB drives wear out?
They do. Flash memory cells have a limited number of write cycles, and the limit depends on the type of memory. Using a stick daily to save and change files puts more wear on it than occasional transfers. If files get corrupted, the drive goes read-only, or it reports the wrong capacity, stop using it for storage.
When USB deleted-file recovery should stop
To look for deleted files, you need a stable USB drive and data that hasn’t been overwritten. Stop using the drive immediately. Do not save recovery software, scan results, or recovered files back onto the same USB stick. If the drive asks to be formatted, shows RAW, disconnects during scans, gets hot, or appears with the wrong capacity, the problem may be more than deletion.
In that situation, repeated scans can stall or stress failing electronics, and a repair can overwrite useful file records. MDRepairs performs USB flash drive recovery for deleted files, corrupted file systems, broken connectors, and failed controllers. Customers can send the device to our Lincroft, New Jersey lab through our mail-in recovery process. Print the packing slip for the box. For addresses on the mainland or on islands you can drive to, the form also gives you a free UPS 2nd Day Air label (contiguous US) to send us your drive. The $100 diagnostic is credited toward a successful recovery. You review and approve the estimate before recovery work begins.
Can You Recover Deleted Files from a USB Without Software?
You can recover deleted files from a USB drive without recovery software only in a few specific situations: the files are still in Recycle Bin or Trash, a backup contains them, File History or Time Machine captured them, or another device still has a copy. If none of those apply, there is no hidden Windows button that undeletes a USB drive. At that point, recovery requires scanning the USB storage, either with software or with lab tools.
Start with the checks that do not write to the USB drive. On Windows, open Recycle Bin while the USB drive is connected and look for the deleted files. On macOS, connect the USB drive and check Trash, because external-drive deletions can be tracked there depending on how the files were deleted. Then check cloud sync folders and their trash, email attachments, recent exports, Windows File History, Time Machine, and any computer or phone where you saved the originals.
If the file is still in OneDrive but you've overwritten it, right-click it and choose Version history. Open the three dots beside the version you want and click Restore. For originals backed up from a folder on your Mac, open that folder, open Time Machine, go back to a date before deletion, select the files and click Restore.
What you should not do is create new folders, copy test files, format the USB drive, or save recovered files back onto it. A USB stick without TRIM can leave deleted data in place, but it can reuse that space when new data is written. Even a small write can overwrite part of a deleted document, archive, or photo set.
If the no-software checks fail and the USB drive is undamaged, stays connected and shows the correct capacity, use recovery software from your computer's internal drive and recover files to another device. If the USB drive is not recognized on another computer, shows the wrong size, gets unusually hot, or has a broken connector, do not keep trying utilities. If Windows asks to format it, cancel. A damaged stick may need USB flash drive recovery to get around a failed part and read the memory directly. Without software, you can restore from existing copies only. To recover deleted data that exists only on the USB stick, the storage has to be scanned.
Can Command Prompt recover deleted files from a USB without software?
No. If files disappeared without being deleted, you can look for hidden files without changing them. In Windows 11 File Explorer, choose View, then Show and Hidden items. In Windows 10, select Hidden items on the View tab. Commands like attrib can change file attributes, and chkdsk can repair some file system errors, but neither undeletes a file. If files were truly deleted, you need a backup, Recycle Bin or Trash, recovery software, or lab recovery.
Is it safe to keep using the USB drive after deleting files?
No. Saving even a few new files to the USB drive can overwrite part of the deleted data. Stop using the drive, check Recycle Bin or Trash and backups first, then scan the USB stick from your computer and save the files elsewhere if the stick still reads normally.
Sources
- Windows File Recovery
- Storing Files
- Keyboard shortcuts in Windows
- How to Recover Deleted Files on Windows and MacOS
- Delete files and folders on Mac
- Using the Recuva Wizard
- Using Deep Scan for those hard to find files
- Using Recuva's Advanced Mode
- Recovering your files
- TestDisk Documentation
- Backup and restore with File History
- Format
- Format-Volume
- Kingston’s Garbage Collection methodologies for greater SSD performance for client workloads
- Flash Voyager® GTX USB 3.0 256GB Flash Drive
- FLASH MEMORY GUIDE
- Data Protection in Apple devices
- Kingston IronKey Vault Privacy 50 Series
- Disk Management in Windows
- Troubleshoot Disk Management
- chkdsk
- Safely remove hardware in Windows
- Connect and use other storage devices with Mac
- Product Verification
- Check activity & file versions
- File Explorer in Windows
- Restore a previous version of a file stored in OneDrive
- Restore items backed up with Time Machine on Mac
