Home › Knowledgebase › KB-509

How to recover files from a corrupted or damaged SD card, USB drive, or memory card

Summary

This guide helps you troubleshoot and resolve: How to recover files from a corrupted or damaged SD card, USB drive, or memory card. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

SD cards, USB drives, and memory cards can become corrupted due to improper ejection, power interruptions, file system errors, physical damage, or malware. When this happens, your files may appear missing, inaccessible, or the device may prompt you to format it. This guide walks you through practical methods to recover your data using built-in operating system tools and reputable third-party recovery software before considering a format or replacement.

Before You Begin: Important Precautions

Taking the right steps at the start can make the difference between successful recovery and permanent data loss.

Critical: If the device makes clicking sounds, is not recognised at all by any computer, or shows signs of water or heat damage, do not attempt software recovery. Power it off and seek professional data recovery services.

Method 1: Check the Connection and Try a Different Reader

Sometimes the issue is not the card itself but how it is being read.

  1. Remove the SD card or USB drive and inspect the contacts for dust, lint, or corrosion. Gently clean the gold contacts with a soft, dry cloth or a cotton bud lightly dampened with isopropyl alcohol.
  2. Reinsert the device firmly into the original port.
  3. If the device is still not recognised, try a different USB port or a different card reader. Built-in laptop readers can fail independently of the card.
  4. Test the card on a different computer. If it works elsewhere, the original machine may have a driver or port issue rather than a card problem.

Method 2: Use Built-In Repair Tools

Both Windows and macOS include tools that can repair common file system errors without erasing data.

Windows: Run CHKDSK and the Error Checking Tool

  1. Connect the SD card or USB drive and note the drive letter assigned in File Explorer (for example, E:).
  2. Press Win + X and select Terminal (Admin) or Windows PowerShell (Admin).
  3. Type the following command, replacing E: with your drive letter, then press Enter:
    chkdsk E: /f /r /x
  4. Wait for the scan to complete. The /f flag fixes file system errors, /r locates bad sectors and recovers readable information, and /x forces the drive to dismount first.
  5. When finished, open File Explorer and check whether your files are accessible.

Alternatively, you can use the graphical error checker:

  1. Open File Explorer, right-click the drive, and select Properties.
  2. Click the Tools tab.
  3. Under Error checking, click Check.
  4. Select Scan and repair drive and follow the prompts.

macOS: Use First Aid in Disk Utility

  1. Connect the SD card or USB drive to your Mac.
  2. Open Disk Utility from Applications > Utilities, or search for it using Spotlight (Cmd + Space).
  3. Select the affected device in the sidebar. If you see multiple entries, choose the one representing the volume rather than the physical device.
  4. Click First Aid in the toolbar, then click Run.
  5. When the repair completes, click Done and check whether the volume mounts and your files appear.
Tip: If the volume does not mount at all, Disk Utility may show the device as uninitialised. Do not click Initialise — this will erase the card. Instead, proceed to Method 3.

Method 3: Recover Files Using Recovery Software

If the built-in tools cannot repair the file system but the device is still recognised by your computer, recovery software can scan the raw storage and reconstruct files. Below are three reputable options that work on both Windows and macOS.

Example: Recovering Files with PhotoRec

  1. Download PhotoRec from the official CGSecurity website and extract the folder.
  2. Connect the corrupted SD card or USB drive.
  3. Open the extracted folder and run photorec_win.exe (Windows) or photorec (macOS/Linux terminal).
  4. Select the affected drive from the list using the arrow keys, then choose Proceed.
  5. Select the partition type. For SD cards and USB drives, choose No partition or Whole disk if the partition table is damaged.
  6. Choose a filesystem. Select FAT/NTFS/ext for most SD cards and USB drives, including those formatted as exFAT.
  7. Select a destination folder to save recovered files. This must be on a different drive than the one being recovered.
  8. Press Y to start the scan. PhotoRec will recover files into numbered folders in the destination you selected.
  9. Once complete, browse the recovered folders and copy any files you need back to your normal storage location.
Tip: After recovery, you can sort the recovered files by type using your operating system's file manager. Photos often retain their original filenames if the directory structure is partially intact.

Method 4: Recover Files from a Card That Will Not Mount

If your computer does not assign a drive letter or the card does not appear in Disk Utility, the partition table may be damaged. TestDisk is particularly effective in this scenario.

  1. Download and extract TestDisk from the CGSecurity website.
  2. Run testdisk_win.exe (Windows) or testdisk from a terminal on macOS/Linux.
  3. Select Create to make a new log file, then choose the affected drive.
  4. Select the partition table type. For SD cards and most USB drives, this is usually Intel or EFI GPT. TestDisk can often detect the correct type automatically.
  5. Choose Analyse, then Quick Search. If the partition is not found, run Deeper Search.
  6. When the partition appears in the list, highlight it using the arrow keys and press P to list the files contained within that partition.
  7. To copy files, navigate through the list using the arrow keys, highlight the files or folders you want to recover, and press C to copy them.
  8. Select a destination folder on a different drive to save the copied files.
  9. Press Q to return to the main menu.
  10. If you need to repair the partition table, select Write from the main menu and confirm by typing Y. This writes the recovered partition structure back to the drive.
  11. Restart your computer and reconnect the device to see if it now mounts correctly.
Tip: If TestDisk cannot find the partition even after a Deeper Search, the physical storage may be failing or the data may be overwritten. In this case, stop using the device and consider professional recovery services.

Method 5: Professional Data Recovery Services

Software recovery tools are designed for logical errors, such as deleted files or corrupted file systems. They cannot repair physical hardware failures. If your device shows any of the following signs, you should contact a professional data recovery service:

Professional recovery services operate in cleanroom environments and can replace damaged components or read memory chips directly. This process is more expensive than software recovery but offers the best chance of retrieving data from physically damaged media. If you need assistance finding a reputable provider, you can Open a Ticket and our team can help you assess your options.

Prevention: Avoid Future Data Loss

Recovering data from a corrupted card is never guaranteed. The most reliable way to protect your business files is to maintain regular backups.

By combining safe handling habits with a consistent backup strategy, you can minimise the risk of permanent data loss and keep your business operations running smoothly.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket