Accidentally deleting important documents, pictures, videos, or other files from a USB flash drive can be frustrating, especially when you do not have another copy. Fortunately, deleted files are not always permanently lost. In some situations, the data remains on the flash drive until new information overwrites the space it occupied.
If you want to recover deleted files from a USB flash drive, the most important thing is to stop using the device immediately. Avoid copying new files, formatting the drive, or installing recovery software directly onto it. You can then try Windows File Recovery, PhotoRec, or TestDisk to search for recoverable data.
This guide explains how USB file recovery works, the tools you can use, and the steps to follow when your files disappear. It also covers what to do if your flash drive has been formatted, becomes inaccessible, or is no longer detected by your computer.
Can You Recover Deleted Files from a USB Flash Drive?
Yes, you can sometimes recover deleted files from a USB flash drive, even when you cannot find them in File Explorer. However, successful recovery depends on what happened to the files and whether their original storage space has been overwritten.
When a file is deleted, the file system may mark the space it occupied as available for new data. The original information can remain on the storage device until another operation uses that space.
This means that deleting a file does not always immediately destroy its underlying data.
However, recovery becomes more difficult when:
- You have copied new files onto the USB drive after deleting the original files.
- You have formatted the flash drive.
- The drive has developed file system corruption.
- The storage device has physical damage.
- The original file data has already been overwritten.
According to Microsoft’s Windows File Recovery documentation, minimizing computer activity after deleting files can improve the chances of successful recovery because normal computer operations may overwrite available storage space.
You can read the official Microsoft Windows File Recovery guide for additional information.
What to Do Immediately After Deleting Files from a USB Drive
Before attempting any recovery method, take a few precautions. These steps help protect the remaining data and reduce the possibility of making recovery more difficult.
1. Stop Using the USB Flash Drive
Remove the flash drive from your computer when it is safe to do so. Do not continue saving documents, downloading files, or transferring pictures onto it.
New data may occupy the same storage space previously used by your deleted files, making recovery difficult or impossible.
2. Do Not Format the Flash Drive
If Windows displays a message asking you to format the USB drive before using it, do not immediately accept the request, especially when the device contains important missing files.
Formatting can change the file system structures needed to locate your data and may reduce recovery opportunities.
3. Prepare Another Storage Location
Have another USB drive, external hard drive, or computer storage location ready. Recovered files should be saved somewhere other than the affected flash drive.
This precaution prevents the recovery process from overwriting other deleted information that may still be recoverable.
4. Avoid Unnecessary Repair Operations
Do not immediately run formatting, partition repair, or file system repair commands on a drive containing valuable lost files. Some repair operations can modify the storage structures that recovery tools need to examine.
How to Recover Deleted Files from a USB Flash Drive
There are several ways to attempt USB file recovery. The best method depends on your computer, the flash drive’s file system, and whether the files were simply deleted or the drive was formatted.
Method 1: Use Windows File Recovery
Windows File Recovery is Microsoft’s command-line recovery application for Windows 10 and Windows 11. It can attempt to recover deleted files from local storage devices, including USB flash drives.
This is a useful option if you want to use an official Microsoft recovery tool rather than immediately downloading a third-party application.
Step 1: Download Windows File Recovery
Open the Microsoft Store on your Windows computer and search for Windows File Recovery.
Download and install the application.
Step 2: Identify Your USB Drive Letter
Connect the affected USB flash drive if it is not already connected.
Open File Explorer, select This PC, and identify the drive letter assigned to the flash drive.
For example, Windows may identify your USB drive as E:.
Also identify a separate destination drive where recovered files can be saved. For example, you could use C:.
Make sure the source and destination drives are different.
Step 3: Open Windows File Recovery
Press the Windows key, search for Windows File Recovery, and open the application.
Allow the application to make changes to your device when Windows requests permission.
Step 4: Enter the Recovery Command
Windows File Recovery uses the following general command structure:
winfr source-drive: destination-drive: /mode /n filter
For example, if your USB drive is E: and you want to recover Word documents to C:, you can try:
winfr E: C: /extensive /n *.docx
To search for PDF files, use:
winfr E: C: /extensive /n *.pdf
To search for JPEG pictures, use:
winfr E: C: /extensive /n *.jpg
These examples assume that E: is the correct USB drive and C: is a separate destination drive. Replace the letters and file extensions with those that match your situation.
Step 5: Confirm the Recovery Process
Follow the instructions displayed in the command window. When prompted to continue, enter Y and press Enter.
Allow the scan to finish. Depending on the storage capacity and the amount of data being examined, the process may take some time.
Step 6: Check the Recovered Files
Windows File Recovery automatically creates a recovery folder on the destination drive. Open the folder and examine the recovered documents, pictures, and other files.
Check whether the files open correctly before considering the recovery complete.
Important: Microsoft recommends different recovery modes depending on the file system and circumstances. For NTFS drives, Regular mode is suitable for recently deleted files, while Extensive mode is recommended for older deletions, formatting, and corrupted file systems. FAT and exFAT drives require Extensive mode.
Method 2: Recover Deleted Files Using PhotoRec
PhotoRec is a free, open-source data recovery application developed by CGSecurity. It can search storage devices, including USB flash drives, for recoverable files.
Unlike ordinary file recovery methods, PhotoRec uses file signatures to identify and retrieve data. This makes it useful when the file system is damaged or other recovery methods have not located the missing files.
However, PhotoRec has an important limitation: it generally does not preserve original filenames or folder structures.
Step 1: Download PhotoRec
Visit the official CGSecurity website and download the TestDisk and PhotoRec package.
Extract the downloaded files into a folder on your computer. Do not install or extract the recovery application onto the affected USB flash drive.
Step 2: Launch PhotoRec
Open the extracted folder and run the appropriate PhotoRec application for your operating system.
On Windows, administrator privileges may be necessary to access storage devices directly.
Step 3: Select the USB Flash Drive
PhotoRec displays the available storage devices.
Carefully identify your USB flash drive using its displayed capacity and device information. Select the correct device before proceeding.
Choosing the wrong storage device can result in scanning the wrong location.
Step 4: Select the Appropriate Partition
Choose the partition containing the deleted files. If you are unsure about the file system, consult the application’s documentation before changing advanced settings.
PhotoRec allows you to select the file types you want to recover through its File Opt option.
Step 5: Choose the Recovery Destination
Select a folder on your computer or another storage device as the destination for recovered files.
Never select the affected USB flash drive as the recovery destination.
Step 6: Start the Scan
Start the search and allow PhotoRec to examine the selected storage area.
As files are recovered, PhotoRec places them into folders such as recup_dir.1 and recup_dir.2.
When the process finishes, examine the recovered files and identify the documents, photographs, videos, and other information you need.
Because PhotoRec may assign new filenames, you might need to open individual files to identify their original contents.
For detailed instructions, consult the official PhotoRec recovery documentation.
Method 3: Use TestDisk to Recover Deleted Files
TestDisk is another free, open-source recovery utility from CGSecurity. Unlike PhotoRec, which primarily searches for file signatures, TestDisk can attempt to recover deleted files from supported file systems while preserving their original filenames when the necessary file system information remains available.
It supports file recovery on FAT, exFAT, NTFS, and ext2 file systems.
Step 1: Download TestDisk
Visit the official CGSecurity website and download the TestDisk package.
Extract the files onto your computer.
Step 2: Launch TestDisk
Open the extracted folder and run TestDisk with the appropriate permissions.
Follow the on-screen instructions to create a log if requested.
Step 3: Select the USB Flash Drive
Identify the USB device from the available disk list. Carefully check its storage capacity before selecting it.
Step 4: Select the Relevant Partition
Choose the partition containing the deleted files and proceed to the file recovery options supported by the detected file system.
TestDisk provides an undelete function for supported FAT, exFAT, and NTFS file systems, with the exact steps depending on the file system.
Step 5: Select the Files You Want to Recover
Browse the available files and select the items you want to retrieve.
Use the application’s copy function to transfer the selected files to a different storage device or partition.
Step 6: Verify Your Recovered Files
Open the destination folder and check whether the recovered files are complete and accessible.
For additional guidance, read the official TestDisk file recovery documentation.
Method 4: Restore Files from an Existing Backup
If you previously copied your USB files to another location, restoring them from that backup may be easier and safer than running recovery software.
Check the following locations:
- Your computer’s Documents, Pictures, or Downloads folders.
- An external hard drive or another USB flash drive.
- Google Drive or another cloud storage service.
- OneDrive or Dropbox.
- Previous backup folders created manually or through backup software.
If you locate the original files, copy them to a safe storage location. Keep the affected USB drive untouched until you are certain that the missing information has been recovered or is no longer needed.
How to Recover Files from a Formatted USB Flash Drive
Formatting a USB flash drive does not always mean every file has been permanently destroyed. In some situations, recovery software may still locate information that has not been overwritten.
However, the outcome depends on the type of formatting, file system changes, storage activity, and the condition of the flash drive.
If you accidentally formatted your USB drive, follow these precautions:
- Stop using the flash drive immediately.
- Do not copy new files onto it.
- Do not format it again.
- Connect it to a computer without performing unnecessary repair operations.
- Use a suitable recovery application to examine the drive.
- Save recovered information to another storage device.
For formatted or corrupted drives, PhotoRec may be useful because it can search for recognizable file signatures even when the original file system is damaged.
Nevertheless, recovery is not guaranteed, particularly when the original data has been overwritten or the storage device has experienced serious physical damage.
What If Your USB Flash Drive Is Not Showing Up?
Sometimes the problem is not simply deleted files. Your USB flash drive may fail to appear in File Explorer, display an incorrect capacity, or produce an error when you try to open it.
Before attempting recovery, determine whether Windows can detect the physical device.
Check the USB Drive in Disk Management
- Connect the flash drive to your computer.
- Press Windows + X.
- Select Disk Management.
- Look for the USB device in the list of connected storage devices.
- Check whether its capacity and partition information appear correctly.
If the drive appears in Disk Management but has no assigned drive letter, the issue may involve Windows drive-letter assignment or the file system.
Do not format the device or create a new partition if you are trying to recover important files.
If Windows does not recognize the device at all, you can consult our separate guide on how to fix a USB device that is not recognized in Windows.
If the flash drive is physically damaged, repeatedly disconnects, becomes unusually hot, or is not detected by multiple computers, professional data recovery assistance may be the safer option.
Why Some USB Files Cannot Be Recovered
Although recovery software can retrieve many deleted files, there are situations where the original information may no longer be available.
Understanding these limitations helps you avoid wasting time on recovery methods that cannot solve the underlying problem.
1. The Deleted Files Have Been Overwritten
When new information occupies the storage space previously used by a deleted file, the original data may become impossible to retrieve.
2. The Flash Drive Has Physical Damage
A damaged USB connector, failing memory chip, or electrical fault can prevent recovery applications from accessing the stored information.
3. The Drive Has Been Securely Erased
Secure erasure methods are designed to make previously stored information difficult or impossible to recover.
4. The File Was Already Corrupted
Sometimes a file becomes damaged before or during deletion. Recovery software may locate the file but still fail to restore a usable version.
5. The Recovery Software Cannot Identify the Original Data
Different recovery applications use different techniques. A tool that cannot locate a particular file may not necessarily mean every possible recovery method will fail.
How to Prevent Losing Files from a USB Flash Drive
Recovering deleted information can be time-consuming, and successful recovery is never guaranteed. The best approach is to develop habits that protect important files before something goes wrong.
- Maintain regular backups: Keep additional copies of important documents and photographs on another storage device or a trusted cloud service.
- Use Safe Eject: Eject the flash drive safely when transferring files to reduce the risk of interrupted write operations.
- Avoid accidental formatting: Check the selected storage device carefully before formatting or deleting files.
- Organize important documents: Keep essential files in clearly labelled folders so they are easier to manage and back up.
- Use reliable storage devices: Purchase USB flash drives from reputable sellers and avoid suspiciously cheap storage devices.
- Keep another copy of critical information: Never rely on one flash drive as the only storage location for valuable files.
Frequently Asked Questions About Recovering Deleted Files from a USB Flash Drive
Can I recover permanently deleted files from a USB flash drive?
Yes, sometimes. Permanently deleted files may remain on the flash drive until their storage space is reused. Recovery software such as Windows File Recovery, PhotoRec, or TestDisk may be able to retrieve them if the underlying data has not been overwritten.
Can I recover deleted files from a USB flash drive without software?
You may be able to restore files from an existing backup or another copy stored on your computer or cloud account. However, if no backup exists, dedicated recovery software may be necessary to search for deleted data.
Can I recover files from a formatted USB drive?
Yes, recovery may still be possible after formatting, depending on the formatting process, file system condition, and whether new data has overwritten the original information. Stop using the drive and attempt recovery using an appropriate tool.
Is Windows File Recovery free?
Windows File Recovery is Microsoft’s recovery application available through the Microsoft Store. It can be used to attempt recovery of deleted files from supported local storage devices, including USB drives.
Which is better for USB recovery: PhotoRec or TestDisk?
Both tools serve different purposes. PhotoRec searches for recognizable file signatures and can be useful when the file system is damaged. TestDisk can recover deleted files from supported file systems and may preserve original filenames and folder information when available.
Can I recover deleted files from a USB flash drive on another computer?
Yes. You can connect the affected flash drive to another compatible computer and attempt recovery there. However, avoid copying new files onto the USB drive and save recovered information to a separate destination.
Why are my recovered files not opening?
A recovered file may be incomplete or corrupted because some of its original data was overwritten or damaged. Recovery software cannot always restore every part of a deleted file.
Should I format my USB drive if Windows says it needs formatting?
No, not if you still need the files stored on it. Formatting can make recovery more difficult. First investigate the drive and consider using an appropriate recovery tool or a professional data recovery service.
Final Thoughts on Recovering Deleted Files from a USB Flash Drive
Losing important files from a USB flash drive does not always mean they are gone permanently. Depending on the condition of the device and whether the original data has been overwritten, recovery software may help you retrieve deleted documents, pictures, videos, and other information.
For Windows users, Windows File Recovery provides an official recovery option, while PhotoRec and TestDisk offer additional recovery capabilities for different situations.
Most importantly, stop using the affected flash drive immediately and save recovered files to another storage location. Avoid formatting the device or performing unnecessary repair operations before attempting recovery.
Finally, make regular backups of your important information. A second copy of your files can save you considerable time and frustration when accidental deletion or storage problems occur.