How to Recover Data From a Corrupted USB (Step-by-Step)

How to Recover Data From a Corrupted USB (Step-by-Step)

A corrupted USB flash drive can show up as RAW, ask to be formatted, disappear mid-transfer, or display missing files. In many cases, your data is still recoverable, but the order you follow matters. The safest approach is simple: recover first, repair later.

This step-by-step guide walks you through practical recovery on Windows, macOS, and Linux, including when to copy files directly, when to create an image, and how to use well-known recovery utilities if the file system is damaged.

Symptoms and causes of a corrupted USB

USB corruption usually means the file system, partition table, or directory metadata is damaged. Sometimes the USB hardware is failing and the “corruption” is a symptom of read errors.

Common symptoms

  • Windows: “You need to format the disk,” USB shows as RAW, “Access is denied,” or files appear as 0 bytes
  • macOS: drive won’t mount, Disk Utility shows errors, or prompts to initialize
  • Any OS: random disconnects, very slow reads, or missing folders

Common causes

  • Unplugging without ejecting during a write operation
  • Power or port instability (bad hubs, weak ports, flaky adapters)
  • File system damage (exFAT/FAT32/NTFS structures corrupted)
  • Flash wear or controller issues on older drives
  • Malware that hides files or damages metadata

Do this first (to avoid permanent data loss)

Before you “fix” anything, protect what’s still recoverable. Many recovery failures happen because users accidentally overwrite data.

Non-negotiable rules

  • Do not format the USB, even if your computer recommends it.
  • Do not run repair tools repeatedly on an unstable drive (especially if it disconnects or freezes).
  • Do not copy new files to the USB while troubleshooting.
  • Recover files to a different drive (internal disk, external HDD/SSD, or network storage).

Decide which situation you’re in

  • USB mounts and you can open folders: copy important files off first.
  • USB mounts but copying fails or is extremely slow: image the drive first if possible.
  • USB does not mount or shows RAW/unallocated: image first, then run recovery tools on the image.

Step 1: Quick hardware checks

These quick checks solve a surprising number of “corrupted USB” cases caused by connection problems.

  1. Switch USB ports
    • Avoid loose ports and try a rear port on desktops.
    • Skip unpowered hubs for now.
  2. Try a different adapter or cable
    • USB-C dongles and multiport hubs are frequent failure points.
    • If it’s an external drive enclosure, the cable matters.
  3. Test on another computer
    • If it works elsewhere, your original system likely has a driver, power, or configuration issue.
  4. Watch for failure signs
    • Repeated disconnects, freezing, or “device malfunctioned” errors can indicate hardware failure. If data is critical, move to the image-first method.

Step 2: Recover data on Windows (step-by-step)

Windows recovery starts by confirming whether the USB is detected and whether it has a readable partition. If it’s readable, copy data immediately. If it’s RAW or unstable, avoid “fixing” and move to imaging and recovery.

2.1 Check detection in Disk Management

Open Disk Management and look for the USB. Note whether it shows a file system (NTFS/exFAT/FAT32) or appears as RAW, unallocated, or unknown. Microsoft support resources: Microsoft Support.

2.2 If the USB opens, copy critical files first

  • Copy the most important folders first (documents, photos, project files).
  • If copying fails, copy smaller batches and skip problem files temporarily.
  • Copy to a different disk, not back to the same USB.

2.3 If it shows but has no drive letter

If the partition looks normal but doesn’t appear in File Explorer, assign a drive letter in Disk Management. This is a common “it’s there but invisible” fix.

2.4 If Windows prompts to format

Clicking format can reduce recoverability. If you need the data, skip formatting and move to the image-first method and recovery tools sections.

2.5 Use CHKDSK only after recovery or imaging

CHKDSK can repair file system errors, but it can also modify disk structures. If the data matters, recover first. Official CHKDSK documentation: Microsoft CHKDSK reference.

Common pattern (requires admin Command Prompt): chkdsk X: /f

Replace X with your USB drive letter.

Step 3: Recover data on macOS (step-by-step)

On macOS, you’ll typically use Disk Utility to check whether the device is detected and whether the volume can mount. If it mounts, copy files immediately. If it won’t mount, consider imaging first, then running recovery tools.

3.1 Check Disk Utility (device vs volume)

Open Disk Utility and confirm whether the USB appears as a physical device. If you see the device but not a mountable volume, file system damage is likely. Apple’s Disk Utility guide: Apple Disk Utility User Guide.

3.2 If the volume mounts, copy files off right away

  • Copy, don’t move.
  • Start with the most important folders.
  • If Finder errors, try copying smaller sets of files.

3.3 Use First Aid carefully

Disk Utility First Aid can help with some corruption cases, but it may change disk structures. If the files are important and not backed up, imaging first is often safer than repairing first.

3.4 If the USB is not readable due to file system compatibility

If the USB was formatted as a Windows-only file system, macOS may have limited support in some cases. If the drive works normally on Windows, consider copying the files from a Windows PC before making any changes on the USB.

Step 4: Recover data on Linux (step-by-step)

Linux is commonly used for recovery because it offers strong imaging and file recovery utilities. You can use Linux on a dedicated machine or via a live environment, especially when a USB drive is unstable.

4.1 Confirm the USB is detected

If the device is detected but the partition won’t mount, treat it as file system corruption and move to imaging and recovery tools.

4.2 If it mounts, copy files to another drive

  • Copy the most valuable data first.
  • If read errors appear, stop repeated attempts and use the image-first method.

4.3 If you see read errors or disconnects

Imaging with a tool designed for failing media is usually safer than repeatedly trying to browse the drive.

Step 5: Image the USB first (recommended for unstable drives)

If your corrupted USB disconnects, freezes your computer, reads extremely slowly, or shows I/O errors, your best move is often to create a sector-by-sector image and recover from that image. This reduces stress on failing flash memory and gives you a stable target to scan.

5.1 What you need

  • A second drive with free space at least equal to the USB’s capacity
  • A reliable USB port (avoid loose ports and hubs)
  • An imaging tool that can handle read errors

5.2 Recommended free imaging tool: GNU ddrescue

GNU ddrescue is widely referenced for imaging failing drives because it can skip unreadable areas, retry strategically, and resume using a map file. Official site: GNU ddrescue.

Best practice: use a mapfile so you can pause and resume without restarting the entire process.

5.3 What to do after imaging

Once you have an image file, run recovery tools against the image instead of the original USB. If the USB deteriorates further, you still have the best possible snapshot you captured.

Step 6: Recover files using free recovery tools

After imaging (or if the drive is stable enough to scan directly), choose a recovery tool based on your scenario: partition recovery, file system recovery, or deep file carving.

6.1 TestDisk (partition and boot/partition table recovery)

Best for: missing partitions, damaged partition tables, drives that show as unallocated, and some file system issues. Official project page: TestDisk (CGSecurity).

  • Use it when the USB appears but the partition is missing or incorrect.
  • It can help restore partition visibility so files become accessible again.

6.2 PhotoRec (deep file recovery by scanning raw data)

Best for: severe corruption where folders and filenames are lost. PhotoRec can recover many file types by scanning for file signatures. Official project page: PhotoRec (CGSecurity).

  • Use it when the file system metadata is too damaged to browse.
  • Expect recovered files to sometimes lose original names and folder structure.

6.3 Windows-friendly recovery options (if you prefer a GUI)

If you can connect the USB to a Windows PC and want a simpler interface for basic deletion scenarios, a GUI tool can be easier. For deep corruption and failing drives, imaging and CGSecurity tools are often more reliable.

  • Recuva official page: Recuva

6.4 Recovery destination rule

Always recover files to a different drive than the corrupted USB. Recovering to the same USB can overwrite data you haven’t recovered yet.

Step 7: Repair or reformat the USB after recovery

After you’ve recovered and verified your files, you can attempt repair or reformatting to reuse the USB. If the drive corrupts again soon after, treat it as unreliable and replace it.

7.1 Repair tools (use with care)

7.2 Reformat for cross-platform use

If you use the USB on both Windows and Mac, exFAT is commonly chosen for compatibility and support for large files. Reformat only after confirming your recovered files are safe.

When to use professional data recovery

Some USB failures are hardware-related (controller failure, damaged flash memory, broken connector). DIY tools can’t always solve these, and repeated attempts can reduce recoverability.

Consider professional recovery if

  • The USB is not detected on multiple computers and multiple ports
  • The drive disconnects constantly or causes system freezes
  • You notice physical damage (bent connector, cracked casing, water damage)
  • The data is irreplaceable and high value (business, legal, unique personal media)

Frequently Asked Questions

Can I recover data from a corrupted USB without software?

Sometimes. If the USB still mounts and you can open folders, you may be able to recover files by copying them to another drive. If the USB shows RAW, won’t mount, or disconnects, you typically need recovery tools and, ideally, an image-first approach.

Should I run CHKDSK or First Aid before recovering files?

If the files matter, it’s usually safer to recover first (or image the drive first). Repair tools can modify disk structures, which may reduce recovery options in some cases. Use CHKDSK or First Aid after you have your files or a full image.

Why does Windows say “You need to format the disk”?

This often happens when Windows can’t read the file system metadata (for example, exFAT/FAT32/NTFS corruption) or the partition structure is damaged. Formatting may make the drive usable again, but it can reduce the chance of recovering existing data, so recover first if needed.

Why are recovered files missing names or folders?

Deep recovery tools may use “file carving,” scanning raw storage for known file signatures. This can recover content but may not restore filenames or the original folder structure if the metadata was damaged.

How can I prevent USB corruption in the future?

Always eject safely, avoid unplugging during transfers, keep at least one backup of important files, and replace old or unreliable USB drives. For critical data, consider a backup strategy rather than relying on a single flash drive.

Conclusion: safest recovery checklist

If you want the best chance to recover data from a corrupted USB, follow a conservative sequence: stop writes, copy if readable, image if unstable, then recover using trusted tools, and only then attempt repairs or formatting.

  1. Stop using the USB and do not format it.
  2. Try quick hardware checks (port, adapter, second computer).
  3. If it mounts: copy critical files to another drive immediately.
  4. If it’s unstable: create an image (GNU ddrescue), then recover from the image.
  5. Use recovery tools (TestDisk for partitions, PhotoRec for deep recovery).
  6. Repair or reformat only after you verify recovered files are intact.

Done carefully, this step-by-step method gives you the highest odds of success while minimizing the risk of making the corruption worse.

Previous Post Next Post

نموذج الاتصال