Secure Digital (SD) cards are extremely popular devices for extending the storage capabilities of digital devices like cameras and tablets. They are small, portable, and can hold a lot of photos or videos. Unfortunately, like all storage devices, they can become corrupted over time which can put your data at risk.
Signs of SD Card Corruption on macOS
SD cards are great when they’re working correctly. But that’s not always the case, and multiple signs may indicate your SD card has become corrupted. If you start experiencing any of the following problems, you might be dealing with a corrupted SD card.
- 🚫 Your Mac, smartphone, or digital camera suddenly stops recognizing the SD card.
- 👻 Files are missing or you see strange filenames on the card.
- ⚠️ You get read and write failures when using the device.
- ⬛ You get a black screen on your camera when using the card.
- ❗ Strange error messages appear when using the card on your Mac.
How to fix and restore a corrupted SD card on Mac
The following procedures and techniques can be useful in helping you repair and recover a corrupted SD card on Mac.
Get Your Mac to Recognize Your SD Card
The first thing you need to do is make sure your Mac or MacBook recognizes the SD card. If your machine doesn’t see the card, you need to resolve the issue before proceeding with corrupted SD card recovery. Try these methods:
- 🔄 Restart your Mac. Sometimes that’s all it takes to resolve a connectivity problem.
- 🔛 Try reinserting the SD card into the reader. It may not have been properly seated, making it impossible to read.
- 💻 Try a different device or card reader. It may be that the reader is at fault and that the SD card is fine.
- 🧹 Clean the port on the SD card reader to make sure no dust or debris may be impacting connectivity.
Get Your Files Back with Data Recovery Software
Once you get your Mac to recognize the card, you should try to get the data off of it as soon as possible. You may be able to just copy it from the SD card to a new location, but if you don’t see all the files on the card that you should, data recovery software can help.
- Download and install Disk Drill for Mac. Since you are recovering data from an external device, you can perform the installation on your Mac’s main hard drive.
- Connect the SD card to your Mac using an internal or external reader.
- Launch Disk Drill and select the SD card from the list of available storage devices.
- Click the Search for lost data button to begin scanning the SD card for lost and deleted files.
- Preview the recoverable files and select the ones you want to recover.
- Click the Recover button and then select a safe storage location when prompted.
- After choosing the storage location, click OK to recover your data.
Check macOS Settings
You might not see the SD card when it has been inserted into your Mac because of the way you have the Finder app configured. Make sure you have external disks being displayed by checking the following setting.
- Open Finder > Preferences.
- In the General tab, make sure the box next to external disks is checked.
Try to Force mount drive in disk utility
You may be able to see the device as available to your Mac but not yet mounted. You can try using the Mount button inside the Disk Utility app or use the following sequence of commands in Terminal, changing the device name to reflect your environment.
- mount -t /dev/disk3
- mount force -t /dev/disk3
- diskutil verifyDisk /dev/disk3
- diskutil repairDisk /dev/disk3
Try to Reset NVRAM and SMC
When a Mac is acting strangely and all other options have been ruled out, it might be worth a shot to reset the NVRAM and SMC. These items are often the cause of software-related problems that can be resolved with a simple reset. The following procedures show you how to do just that.
Resetting the NVRAM
- Shut down your Mac.
- Press the power button.
- Before the grey screen appears, press the Cmd, Option, P, and R keys at the same time.
- Hold the keys until your computer restarts and you hear the startup sound a second time. (On Macs with the T2 Security Chip, hold down the keys until the Apple logo appears and disappears twice.
- Release the keys.
Resetting the SMC
There are different procedures for various Mac and MacBook models which can be found on this Apple support page. Here is a sample of how to reset the SMC on a Mac desktop machine with a T2 chip.
- Shut down your Mac, then unplug the power cord.
- Wait 15 seconds, then plug the power cord back in.
- Wait 5 seconds, then press the power button to turn on your Mac.
Repair/Fix Your Corrupted SD Card with First Aid
Disk Utility may be able to repair a corrupted SD card on your Mac. Try the following procedure to see if this fix allows your Mac to access the data on the SD card.
- Connect the SD card to your Mac.
- Open Disk Utility and select View > Show All Devices.
- Choose the SD card from the sidebar and click First Aid at the top of the window.
- Click Run and follow the on-screen prompts to attempt the repair.
- Click Done when the process is complete.
- Try to access the files on the SD card.
Check Your SD Card Terminal (diskutil)
The macOS Disk Utility app can be used as a command-line tool. The following steps can be used to verify if an SD card is indeed corrupted.
- Open the macOS Terminal app.
- Enter this command: diskutil verifyVolume [drive identifier].
- The command will run, perhaps for quite a while. When it finishes, it will tell you if the volume is corrupt.
Format Your SD Card
You may need to format the SD card to make it recognizable to your Mac. Formatting destroys the logical links to data on the card but does not physically remove the files which can later be recovered with data recovery software. Use the following procedure to format an SD card on a macOS system.
- Connect the SD card to your Mac or MacBook.
- Start the Disk Utility app.
- Select the SD card from the panel on the left.
- Select Erase. Don’t select any extra security options if you plan on trying to use data recovery software to recover the card’s data.
- Name the card and select your desired format.
- Click the Erase button in the bottom-right corner.
- A progress bar tracks the operation.
- Click Done when the process completes.
How to Protect an SD Card From Corruption
- ☔ Physically protect your SD cards from excessive heat and moisture. These environmental factors can cause corruption and make a card unusable. Physical damage such as twisting or bending a card should also be avoided. Once a card is physically damaged, your only hope of getting data from it is with a professional SD card recovery service. Store cards in their protective cases where possible.
- 👾 Be careful when sharing the card or using it on strange devices. It’s very easy for you to pick up a virus that can corrupt your card and lead to data loss. Use a reliable antivirus tool on your Mac and try to limit the exposure of the card to computers that might not be as well protected as yours.
- ⚠️ Never simply remove an SD card from your device or computer. Use the operating system to eject it cleanly which will minimize the chances of becoming corrupted.
- ✔️ Let all read and write operations complete before ejecting an SD card from your computer or a device.
- ❗ Though technically not corruption, accidentally formatting an SD card can cause a substantial loss of data. Labeling the cards can minimize the chance of making this kind of mistake.
We hope that one of the methods described above helps you repair your corrupted SD card so you can simply copy its data to a more secure location. In cases where your Mac recognizes the card but you can’t get to the data, we suggest using data recovery software to retrieve the lost files. Once you have recovered your files, it might be wise to format the SD card and monitor it to see if it is working properly. It could be time to replace it with a new device if it shows further signs of corruption or does not work properly.