SD card is write-protected and files cannot be saved
Candidate causes of the “SD card write prohibited” symptom include lock switch, file system/controller protection status, etc. Check step 1 in order, starting with ‘Check SD card lock switch and contact status’.
First, check that this guide matches your problem
Do you have these symptoms?
- SD card write-protected
- write protected
- Can't delete files
Common causes
- Lock switch
- File system/controller protection mode
How to fix
5 steps, 33 min–1 hr 23 min in total. The easiest checks come first, so stop as soon as the problem is fixed.
Physical locking or poor contact can cause recognition and writing problems.
- Check the position of the LOCK switch on the SD adapter.
- Take out the card and insert it again all the way.
- Check that there is no heavy contamination or damage to the contacts.
What to check
If you can save after sliding the switch away from LOCK, it's solved. If the switch is loose and moves by itself, try a different adapter.
Did this step fix it?
Determine whether the problem is with the card or the reader.
- If you have a USB card reader, cross test it.
- Check if another PC or camera can save or erase files on the card.
What to check
If writing works in another reader, the original reader or adapter is likely the problem. If it's write-protected everywhere, check the disk attributes.
Did this step fix it?
If writing is blocked even though the lock switch is off, the disk may have its read-only attribute set.
- Run diskpart in an administrator Command Prompt.
- Use list disk to find the disk number that matches the card's capacity, then enter select disk followed by that number. Double-check the capacity so you don't pick a different disk.
- Enter attributes disk and check whether the current read-only state shows 'Yes'.
- If it says 'Yes', run attributes disk clear readonly and reconnect the card.
What to check
If you can save after clearing it, it's solved. If the command succeeds but the card goes back to read-only when reconnected, the card's controller has most likely locked into a protected state.
Did this step fix it?
If the file system is corrupted, Windows may treat the card as write-protected or refuse to delete files.
- Copy important files somewhere else first.
- In an administrator Command Prompt, run chkdsk with the card's drive letter, for example chkdsk E: /f.
- After the errors are fixed, try saving and deleting files again.
What to check
If writing works after the scan, it's solved. If the scan fails or it's still write-protected, suspect the card is wearing out.
Did this step fix it?
When flash memory wears out, the controller may lock the card into read-only mode to protect the data, and this state may not be cleared by formatting or commands.
- While it can still be read, copy all photos and files to the PC.
- If other readers and PCs are also writing-protected, the card is most likely set to read-only, so prepare a new card.
- If it's still under warranty, ask the manufacturer about an exchange.
What to check
If reading is also unstable and files won't copy, don't keep formatting or running recovery; consider a professional data recovery service.
Did this step fix it?
Frequently asked questions
Related problems
If the symptoms do not match exactly, please check the issue below.