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.
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.
- Stop using the device immediately. Any new data written to the card or drive can overwrite the files you are trying to recover.
- Do not format the device if Windows, macOS, or the device itself prompts you to. Formatting erases the file system and dramatically reduces recovery chances.
- Avoid removing the card or drive while data is being accessed. Always use the safe eject procedure before unplugging.
- Recover files to a different storage location than the source device. Saving recovered files back to the same corrupted card can cause overwriting.
- Check for physical damage. If the card or USB connector is bent, cracked, or visibly damaged, recovery software will not help. Skip to the end of this guide for hardware recovery options.
Method 1: Check the Connection and Try a Different Reader
Sometimes the issue is not the card itself but how it is being read.
- 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.
- Reinsert the device firmly into the original port.
- 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.
- 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
- Connect the SD card or USB drive and note the drive letter assigned in File Explorer (for example,
E:). - Press
Win + Xand select Terminal (Admin) or Windows PowerShell (Admin). - Type the following command, replacing
E:with your drive letter, then pressEnter:chkdsk E: /f /r /x - Wait for the scan to complete. The
/fflag fixes file system errors,/rlocates bad sectors and recovers readable information, and/xforces the drive to dismount first. - When finished, open File Explorer and check whether your files are accessible.
Alternatively, you can use the graphical error checker:
- Open File Explorer, right-click the drive, and select Properties.
- Click the Tools tab.
- Under Error checking, click Check.
- Select Scan and repair drive and follow the prompts.
macOS: Use First Aid in Disk Utility
- Connect the SD card or USB drive to your Mac.
- Open Disk Utility from Applications > Utilities, or search for it using Spotlight (
Cmd + Space). - Select the affected device in the sidebar. If you see multiple entries, choose the one representing the volume rather than the physical device.
- Click First Aid in the toolbar, then click Run.
- When the repair completes, click Done and check whether the volume mounts and your files appear.
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.
- Recuva (Windows, free for personal use) — straightforward interface, good for USB drives and SD cards.
- PhotoRec (Windows, macOS, Linux, free and open source) — recovers a wide range of file types including documents, photos, and videos.
- TestDisk (Windows, macOS, Linux, free and open source) — more advanced, can also rebuild damaged partition tables.
Example: Recovering Files with PhotoRec
- Download PhotoRec from the official CGSecurity website and extract the folder.
- Connect the corrupted SD card or USB drive.
- Open the extracted folder and run photorec_win.exe (Windows) or photorec (macOS/Linux terminal).
- Select the affected drive from the list using the arrow keys, then choose Proceed.
- Select the partition type. For SD cards and USB drives, choose No partition or Whole disk if the partition table is damaged.
- Choose a filesystem. Select FAT/NTFS/ext for most SD cards and USB drives, including those formatted as exFAT.
- Select a destination folder to save recovered files. This must be on a different drive than the one being recovered.
- Press Y to start the scan. PhotoRec will recover files into numbered folders in the destination you selected.
- Once complete, browse the recovered folders and copy any files you need back to your normal storage location.
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.
- Download and extract TestDisk from the CGSecurity website.
- Run testdisk_win.exe (Windows) or testdisk from a terminal on macOS/Linux.
- Select Create to make a new log file, then choose the affected drive.
- 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.
- Choose Analyse, then Quick Search. If the partition is not found, run Deeper Search.
- When the partition appears in the list, highlight it using the arrow keys and press
Pto list the files contained within that partition. - To copy files, navigate through the list using the arrow keys, highlight the files or folders you want to recover, and press
Cto copy them. - Select a destination folder on a different drive to save the copied files.
- Press
Qto return to the main menu. - 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. - Restart your computer and reconnect the device to see if it now mounts correctly.
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:
- The device is not recognised by any computer or operating system.
- You hear clicking, grinding, or buzzing noises coming from the drive.
- The card or USB connector is physically bent, cracked, or broken.
- The device has been exposed to water, fire, or extreme heat.
- The device becomes unusually hot to the touch when connected.
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.
- Follow the 3-2-1 backup rule: Keep three copies of your important data, on two different media types, with one copy stored offsite or in the cloud.
- Always eject safely: Use the safe remove hardware icon in Windows or the eject button in macOS before unplugging any SD card or USB drive.
- Avoid removing cards during transfers: Wait for file copy operations to complete fully before disconnecting the device.
- Store cards properly: Keep SD cards and USB drives in protective cases away from moisture, extreme temperatures, and magnetic fields.
- Replace ageing media: Flash storage has a finite lifespan. Replace cards and drives that show signs of slowing down or frequent errors.
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?
💻 Open a Ticket