Hi everyone, I have a SanDisk microSD card that I’ve been using in my camera, phone, and GoPro. Suddenly, I can’t write anything to it anymore. This is really driving me crazy.
I can view and copy files from the card, but I can’t delete anything or format it—Windows says the disk is write-protected, so I can’t add new files or save anything. When I try to format it, the process either fails immediately or gets stuck. The card is visible in File Explorer and Disk Management, but all options are grayed out and unavailable. I’ve tried this on multiple computers and devices—the same problem occurs everywhere.
If all else fails, formatting is your last resort. This is a last resort; there are other options, such as using command-line tools. Check out these tips.
https://forums.sandisk.com/t/why-is-my-sandisk-card-write-protected-and-how-do-i-remove-it/247759
Perform a low-level format using the SD Card Association’s official SD Memory Card Formatter tool. If this fails, it indicates hardware damage, and you will need to replace the card.
This means your microSD card has entered a read-only failure mode. It’s not a Windows issue. The card’s internal controller locks writing when it detects damage or wear, which is why you can read files but can’t delete, format, or save anything on any device.
First, back up all your data immediately while it’s still accessible. If some files are missing or corrupted, you can try a tool like Stellar Photo Recovery.
Realistically, it’s not fixable. Once a card goes into this read-only state due to wear or internal errors, it’s basically done. No formatting tool or command will bring it back to normal use.
I’ve seen a few SD cards do this when they’re starting to fail. If you’ve already checked the physical lock switch and tried a different card reader, I’d back up any data you can still access right away. When a card becomes permanently write-protected, it’s often the controller putting it into a read-only mode to prevent further data loss.
Is your issue still not solved? If so, try these steps:
-
Remove the SD card and observe the tiny plastic slider on the left edge. If the slider is on the side with the “Lock” sign (usually at the bottom), physical write protection is enabled. Simply push the slider up away from the “Lock” end and reinsert it into your computer to test.
-
The system may have mistakenly set the card to read-only. You can clear the read-only status of the SD card using the Windows command line.
Right-click the Windows Start icon and select “Command Prompt (Administrator)”.
Type diskpart and press Enter.
Type list disk and press Enter (identify your SD card’s drive letter by its capacity, e.g., Disk 1).
Type select disk 1 and press Enter (replace the numbers with your actual SD card drive letter).
Type attributes disk clear readonly and press Enter.
If you see a success message, type exit to exit.
- Try using the SD Card Formatter repair tool to force format the card. You will need to back up all your important files to your computer first.
Read also: Got A Locked SD Card? How to Unlock It and Recover Data?
- Check the lock switch: If you are using a microSD card with an SD adapter, check the small Lock switch on the adapter. Move it to the unlocked position and reconnect the card.
- Try another card reader: A faulty adapter or card reader can sometimes make the card appear write protected. Test the memory card with another reader or computer.
- Remove write protection using DiskPart: Open Command Prompt as Administrator and run:
- diskpart
- list disk
- select disk X — replace X with the correct memory card disk number.
- attributes disk clear readonly
- exit
Be very careful when selecting the disk because choosing the wrong disk can affect another drive.
- Try formatting the card: If the card becomes writable, you can format it through File Explorer or Disk Management. Formatting will remove the files stored on the card, so copy any important data first.
- If write protection remains: If the same problem occurs on multiple computers and devices, the memory card may have developed a hardware problem. In this situation, formatting or software-based methods may not remove the write protection. You can contact SanDisk Support for further help or warranty options
- Important: If you can still read the files, back up your important data before trying any repair or formatting method.