USB drives make it easy to store and share files. But what happens when your flash drive becomes corrupted? Well, that depends on your next steps because it’s often possible to recover data from a corrupted USB drive, but you need to act quickly and use the right solution. 

corrupted flash drive

In this article, we explain how to recover files from corrupted flash drives and how to fix corrupted flash drives in a language that regular users can understand. 

Causes of Flash Drive Corruption

USB flash drives can become corrupted for multiple different reasons, and it helps to understand them to determine the best data approach to recover data from a dead USB drive (you can’t access it at all) or one that’s merely not functioning as it should (some files are missing or impossible to open). 

Cause of corruption Explanation Solution
Bad blocks Flash-based storage devices are divided into many small blocks. These blocks have a limited lifespan, and they can stop working correctly when they exceed it.  When dealing with a flash drive with too many bad blocks, it’s often best to salvage as much data as possible from it using data recovery software before it becomes completely inaccessible.
⏏️ Improper removal There’s a good reason why modern operating systems encourage users to safely eject their flash drives before removal: not doing so can lead to corruption as a result of read/write processes being suddenly interrupted.  A USB flash drive that has been improperly removed can sometimes be repaired using native Windows and macOS tools.
🔌 Power issues If your flash drive is not getting enough power, or if you suddenly experience an outage, then there’s a good chance that some data will become corrupted due to their transfer being interrupted.  You may be able to recover files lost due to a power issue using the File History feature. 
🪲 Software bugs Application, operating system, and driver bugs can all cause flash drive corruption by preventing files from being saved correctly or damaging the integrity of the file system. Files that have disappeared from a flash drive corrupted by software bugs can sometimes be recovered using the ATTRIB command
🔨 Physical damage Physical damage and manufacturing defects can compromise the ability of a USB flash drive to maintain a stable connection, which can lead to corruption.  When dealing with a physically damaged flash drive containing important files, the best solution is to pay for professional data recovery services

How to Restore Corrupted USB Flash Drive

When faced with a corrupted USB flash drive, the key to successful data recovery lies in a methodical, step-by-step approach. 

Step 1: Create a Backup Image of Your Corrupted USB Flash Drive

Before attempting any recovery or repair process on a corrupted USB flash drive, the most critical step is to create a backup image of the entire drive. Why? There are three main reasons: 

  • A backup image acts as a safety net. If the recovery process causes further data corruption, you can go back to the backup image and try again. 
  • Creating a backup image captures the exact current state of your flash drive, including potentially recoverable data that might not be initially visible.
  • With a backup image, you can attempt data recovery multiple times using different methods or tools without risking the integrity of the original data.

You can effortlessly and without spending any money create a backup image of your corrupted USB flash drive with the help of USB data recovery software called Disk Drill and its byte-to-byte backup feature:  

  1. Download the free version of Disk Drill and install it on your computer. Disk Drill is available for Windows and macOS.
  2. Launch Disk Drill and select the Drive Backup tool (called Byte-to-byte Backup on macOS) in the left pane. disk drill drive backup feature highlighted
  3. Select your corrupted USB flash drive and click the Byte-to-byte Backup button. disk drill byte-to-byte backup button highlighted
  4. Choose where you want to store the backup image and click OK.disk drill backup image path highlighted
  5. Wait until the backup image is created. 

Step 2: Address the Corruption by Fixing File System Issues

With your corrupted USB flash drive backed up, you can safely proceed to address any file system issues that might be causing the corruption.

As a Windows user, you can use the CHKDSK utility that comes with your operating system to verify the file system integrity of a volume and attempt to fix logical file system errors.

CHDKS is a command-line tool, which means that it doesn’t have a graphical user interface, so it has to be invoked from Windows Terminal, PowerShell, or CMD. Here’s how: 

  1. Make sure the corrupted flash drive is connected to your computer. 
  2. Press Win + X on your keyboard and launch Windows Terminal, PowerShell, or CMD as administrator.
  3. Enter the following command and press enter: chkdsk X: /f (replace X with the letter assigned to the corrupted drive).chkdsk in windows 11 terminal

Follow the instructions below to discover which letter has been assigned to your flash drive:

  1. Launch File Explorer and click on “This PC.” We’ll be able to see all of the drives in the system. In this example, we have C:, D:, E:, and L:how to fix corrupted usb windows 11
  2. Plug the drive into the computer. If the computer recognizes it, we’ll see the drive show up in our File Explorer.
    flash drive recovery software
  3. Look at the list of drives in File Explorer.  If the USB drive doesn’t display, it means that Windows doesn’t recognize the drive, or perhaps the partition map has been corrupted. One way to find out is to launch the program “Disk Management” which is built into nearly every version of Windows.  It will display drive partitions even if they haven’t been assigned a drive letter. It’s one way to verify that Windows recognizes the drive:how to retrieve data from corrupted flash drive

If you’re using macOS instead, then you can fix files system issues using the First Aid feature present in Disk Utility instead:

  1. Launch Disk Utility (you can find it in Applications -> Utilities). 
  2. Select your corrupted USB flash drive in the left pane and then click the First Aid button in the toolbar.first aid button disk utility
  3. Click the Run button and then wait for the First Aid feature to finish.first aid run button confirmation

At this point, you might be able to access the contents of your USB flash drive in File Explorer or Finder and recover files from it directly. If you can’t find all of your files, then there’s still one last step: you can use USB data recovery software to find hidden, deleted, and corrupted files. 

Step 3: Recover Lost Files from Your Corrupted USB Flash Drive

Now it’s time to take out the big guns: data recovery software. Once again, Disk Drill provides a straightforward and powerful solution that you can use to perform USB file recovery in no time. The software employs smart algorithms that can detect corrupted drives with unreadable sectors and handle them accordingly to deliver the best data recovery results possible. 

Disk Drill
Data recovery for free
Your Companion for Deleted Files Recovery

How to recover files from a corrupted USB drive using Disk Drill:

  1. Start Disk Drill and select the USB drive you want to recover. Alternatively, you can click the Attach disk image option below the list of connected storage devices and use it to mount and scan the backup image created in Step 1. By scanning only the backup image, you can avoid further wear and tear on your USB drive.kingston usb drive selected in disk drill
  2. Begin the recovery process by clicking the Search for lost data button. Wait as Disk Drill scans the corrupted pen drive. It will start to display information about recovered files as the process continues. You can click Review found items at any point to see all found files. As the screenshot below illustrates, Disk Drill will automatically alert you to the presence of any bad blocks on your USB flash drives. Take this warning seriously. disk drill scanning usb flash drive bad blocks
  3. Select lost files and click recover them. Select the files we want to recover by clicking on the checkbox to the left of the file name. You can focus on specific file types using the filters in the left pane and the toolbar above scan results. When you’ve selected all lost files, click the Recover button and choose a suitable recovery destination.disk drill photos selected for recovery
  4. Wait for Disk Drill to display a completion message; it will look like this:

    disk drill recovery success message
  5. Navigate to the recovery directory using File Explorer or Finder and look for the recovered files.recovered files in file explorer
  6. Open a file to verify that it has been successfully restored.image recovered with disk drill previewed

The above-described steps to recover files from a USB drive on Mac with Disk Drill are the same as the steps to do the same on Windows, so you can put them to good use regardless of which operating system you use. 

Other Ways to Recover Files from a Corrupted Flash Drive

Data recovery software like Disk Drill can deliver excellent results in a short amount of time, which is why we recommend you always start with it. That said, there are other ways to recover files from a corrupted flash drive. Let’s take a closer at some of them.  

Method 1: Use TestDisk to Recover Partition Access

testdisk corrupted usb flash drive selected

USB flash drive corruption can cause whole partitions to go missing and make it impossible to access the files they contain. That’s where TestDisk comes in. This free, open-source tool may not have a graphical user interface, but it does know how to fix broken partition tables to recover lost partitions. 

To use TestDisk for recovering files from a corrupted USB flash drive, it’s recommended to follow the detailed step-by-step guide provided on their official website. This guide will walk you through the process so that you always know what to do next.

The process involves several key steps, starting with selecting the affected drive, choosing the partition table type, and then scanning for lost partitions. Once TestDisk identifies the lost partitions, you can proceed to rebuild the partition table or recover the lost partitions. 

Method 2: Use the File History Feature in Windows

windows file history iconThe Windows operating system comes with a local backup tool called File History. In Windows 10 and earlier, it’s possible to tell File History to back up a custom folder, including one that’s located on a USB drive.

If your lost files were at some point located in the locations backed up by Windows 11 File History, or if you’re a Windows 10 user and have manually added your USB drive as an additional File History backup location, then you can follow the instructions below to recover them:

  1. Open the classic Control Panel.
  2. Navigate to System and Security > File History.file history windows 11 select
  3. Click the Restore personal files option in the left pane.restore personal files windows 11 select
  4. Navigate to the location where the lost file was present and select it.
  5. Click the green Recover button to restore the selected file.

Method 3: Use the ATTRIB Command

Flash drive corruption can have many different forms. For example, it can cause file attributes to change,  which can result in the affected files becoming invisible. The good news is that this problem is fairly easy to fix: 

  1. Press Win + X on your keyboard.
  2. Launch Windows Terminal, PowerShell, or CMD as administrator.
  3. Enter the following command to recover hidden files: ATTRIB -H -R -S /S /D X:*.* (replace X with the letter assigned to your flash drive).Executing the attrib command.
  4. Exit Command Prompt and open your USB drive in File Explorer.

Method 4: Try Windows File Recovery

windows file recovery iconWindows File Recovery is a data recovery tool developed by Microsoft, and it works on Windows 10 2004 and above.

Windows File Recovery is still in its early stages, which is clearly evident from the lack of a graphical user interface. The tool also doesn’t support nearly as many file signatures as leading commercial data recovery products, such as Disk Drill.

That said, Windows File Recovery is available for free directly from the Microsoft Store, and you can use it to recover an unlimited number of files, so it’s worth giving it a shot if you want to recover files from a formatted USB flash drive or get back files that have been permanently deleted. 

  1. Download Windows File Recovery from the Microsoft file recovery windows 11
  2. Launch Command Prompt or Windows Terminal.
  3. Enter the following command to recover all deleted files from drive X to the Recovered folder on drive C: winfr X: C:\Recovered /extensivewindows file recovery windows 11 terminal

Windows File Recovery supports two main modes of operation (Regular and Extensive) as well as a number of advanced switches, and they are all explained well on its official support page.

Method 5: Pay for Professional Data Recovery

businessmanSometimes, the best solution is to let professionals recover your files for you. This is especially true when dealing with physical damage, which can hardly ever be successfully repaired at home without the necessary experience and equipment. 

Professional data recovery services do charge quite a lot of money for what they do, but some files are so important that spending a few hundred or even a few thousand dollars beats losing them forever. 

How Flash Drives Become Corrupted

Understanding how flash drives can become corrupted can help you maintain their reliability and avoid having to read data recovery tutorials in the future: 

  1. Improper ejection is the most common cause of flash drive corruption, which is why most operating systems urge their users to “eject” a drive before removal. A failure to do so can lead to interrupted file transfers and partition errors. 
  2. Flash drives rely on NAND flash memory chips to retain data even when disconnected from a computer. Unfortunately, NAND memory cells have a finite number of write and erase cycles they can endure before corruption occurs. That’s why it’s a good idea to not keep using the same old USB flash drive for as long as possible. Instead, we recommend you get a new flash drive once in a few years and use the old one for something unimportant. 
  3. And the last way that a flash drive can lose its files is through simple user error. Accidentally deleting the file on a pen drive, or when selecting what drives to format picking the wrong drive. It happens to everyone at some point, but there are still ways to get those files back.


A corrupted USB flash drive is not the end of the world, but it can feel that way. With the guidance and tools provided, there’s a strong possibility of successfully restoring a corrupted USB drive. All of the tools here, like Disk Drill, are free to download, so give them a try. Best of luck.


David Morelo

David Morelo is a professional content writer specializing in the technology niche, covering a wide range of topics from consumer products to emerging technologies and their cross-industry applications. His passion for te...

Read full bio
Approved by
Brett Johnson

This article has been approved by Brett Johnson, Data Recovery Engineer at ACE Data Recovery. Brett has a Bachelor's Degree in Computer Systems and Network, 12 years of experience.