If your SD card suddenly refuses to accept new files, the problem is almost always one of three things: a physical write-protect switch, a corrupted file system, or a card that has failed or is fake. This article walks you through each cause and the exact steps to get the card writable again, plus how to avoid the issue in the future.
First, Check the Physical Lock Switch
Most full-size SD cards have a tiny sliding tab on the left edge. If it’s pushed down (toward the “lock” position), the card becomes read-only—your computer, camera, or phone can read files but cannot write or delete anything. This is the most common cause of a sudden “write protected” error.
- Remove the card from the device.
- Look for the small switch on the left side (when the label faces you).
- Slide it firmly upward toward the top of the card, away from the “lock” symbol.
- Reinsert the card and try writing again.
Some card readers and adapters have their own lock switches too—check those as well. If the switch is loose or broken, a piece of tape over the notch can sometimes hold it in the unlocked position, but the card is then unreliable and should be replaced.
Why Does Windows Say “The Disk Is Write-Protected”?
Windows shows this exact message when it detects the lock switch or a file system flag. Even if the physical switch looks fine, the card may have a read-only attribute set in its file system. You can clear it with the diskpart utility, but be careful—this command wipes the card.
- Insert the SD card into your computer’s card reader.
- Open Command Prompt as Administrator (search “cmd”, right-click, “Run as administrator”).
- Type
diskpartand press Enter. - Type
list diskand note the disk number of your SD card (usually Disk 1, 2, etc.). - Type
select disk X(replace X with your card’s number). - Type
attributes disk clear readonlyand press Enter. - Type
exitto close.
If this fails, the card may be physically locked or dead. Do not attempt this on your main hard drive—only on the SD card.
Corrupted File System: Format the Card
If the card is not locked but still won’t write, the file system is likely corrupted. Formatting rebuilds the file system and usually fixes the problem. Back up any data you want to keep first—formatting erases everything.
- On Windows: Open File Explorer, right-click the SD card drive, select “Format,” choose a file system (FAT32 for cards 32GB and under, exFAT for larger), and click Start.
- On Mac: Open Disk Utility, select the card, click “Erase,” choose a format (MS-DOS FAT for 32GB and under, ExFAT for larger), and click Erase.
- On Android: Go to Settings > Storage > SD card > Format (or Format as portable).
- On a camera: Use the camera’s “Format” option in its menu—this is often the most reliable.
If formatting fails halfway or the card becomes completely unreadable, the card is likely physically damaged or counterfeit.
Fake or Damaged Cards: The Hidden Problem
Many “too good to be true” SD cards from online marketplaces are counterfeit. They report a large capacity (e.g., 128GB) but actually have a much smaller real memory (e.g., 4GB). When you exceed the real capacity, writes fail or corrupt existing files. Symptoms include:
- Files disappear or become corrupted.
- Card works for a while, then becomes read-only.
- Formatting succeeds but the card fills up too fast.
Test a suspicious card with a free tool like H2testw (Windows) or F3 (Mac/Linux). These write test data to every sector and verify it. If the card fails, it’s fake—stop using it and request a refund.
How to Choose a Reliable SD Card
To avoid future write failures, pick a card from a reputable brand (SanDisk, Samsung, Kingston, Lexar) and buy from an authorized seller. Check the speed class rating:
- Class 2/4/6/10: Minimum sustained write speeds (Class 10 = 10 MB/s).
- UHS Speed Class 1 (U1) or 3 (U3): For Full HD or 4K video.
- Video Speed Class V30/V60/V90: For high-bitrate video.
For 4K video, use at least U3/V30. For burst photography, a higher speed card reduces buffer clearing time. Always match the card to your device’s supported standard—a UHS-II card in a UHS-I slot works but runs at UHS-I speeds.
Frequently Asked Questions
Why does my SD card say “write protected” even though the switch is unlocked?
This can happen if the switch is broken or if the file system has a read-only attribute. Try the diskpart method above. If that doesn’t work, the card’s controller may have failed—replace the card.
Can I recover data from a write-protected SD card?
Yes, if the card is readable, you can copy files off it. Use a card reader and drag files to your computer. If the card is corrupted, use data recovery software like Recuva or PhotoRec before formatting.
Why does my SD card work in my phone but not my computer?
Your phone may format the card with a file system (like exFAT) that your computer’s reader doesn’t support, or the card reader driver is outdated. Try a different card reader or update your USB drivers.
Is it safe to format an SD card repeatedly?
Yes, formatting is a normal operation and doesn’t wear out the card significantly. However, frequent full formats (not quick formats) may reduce the card’s lifespan slightly, but it’s negligible for normal use.
What does it mean if my SD card is “read-only” on my camera?
It means the camera cannot write new photos. Check the lock switch, then try formatting the card in the camera. If the camera still says read-only, the card may be damaged or the camera’s card slot may have an issue.
Can I fix a physically damaged SD card?
No, physical damage (bent, cracked, or broken contacts) cannot be repaired. If the card is under warranty, contact the manufacturer. Otherwise, recover what you can and replace it.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Arctic Sea Ice Forecasts Disagree: What to Do
- MySQL Workbench to VPS: SSH Tunnel Setup
- Bluesky Beginners Guide: How to Get Started5.00 min/km
- LG V20 Won’t Turn On? Fixed
- Snagit vs Camtasia: Which One Do You Need?
- Scale a Small Business Without Losing Culture