- DriveForge
- Guides
- Write-protected drives
Fix
Write-protected SD card or USB drive: what it means and how to fix it
A write-protected drive lets you read your files but refuses to save, delete or format. Sometimes that is a tiny plastic switch. Sometimes it is the drive telling you it is finished.
Short answer
Check, in order: the lock switch on the side of the SD card; the switch on the microSD-to-SD adapter; a different card reader; and, on Windows, the read-only attribute (diskpart, then attributes disk clear readonly). If none of those is the cause, the drive's controller has locked itself read-only, which flash memory does when it wears out. That can't be undone: copy your files off and replace the drive.
What write protection is
Write protection means the drive, or something between the drive and you, is refusing every change. You will see it as:
- "The disk is write-protected" when copying or deleting on Windows
- "Read-only file system" on Linux or in some Android file managers
- A format that fails, or that appears to succeed and leaves the old files in place
- Files you delete that come back after you replug the drive
There are four separate places where the block can be, and it is worth checking them from the outside in.
1. The lock switch on an SD card
Full-size SD cards have a small sliding tab on the left edge. Slid toward the bottom of the card (away from the metal contacts) the card is locked. Slid toward the contacts, it is unlocked.
- Slide it to the unlocked position and reinsert the card.
- If the tab is loose it can slide back to locked as you push the card into the slot. A small piece of tape over the tab holds it in the unlocked position.
- If the tab has broken off, most readers treat the card as locked. Tape over the notch where it sat usually restores writing.
The switch does not do anything electrical inside the card. The card reader senses its position and decides whether to allow writes.
2. The microSD adapter and the card reader
A microSD card has no switch. The full-size adapter it sits in does, and it is the usual culprit.
- Check the adapter's switch as above.
- Try the microSD card in a different adapter or directly in a microSD reader.
- Try a different card reader. A worn reader can misread the switch position and report every card as locked.
3. A read-only flag set by the computer
Windows can mark a disk read-only in software. To clear it, open a Command Prompt as administrator and enter:
diskpartlist diskand find the drive by its sizeselect disk Nattributes disk clear readonly
On work or school computers, an administrator policy can also block writing to all removable drives. That affects every stick on that PC and none on other machines, which is how you recognize it.
A damaged filesystem is another software cause. Android and Linux mount a volume that was not closed cleanly as read-only to protect it. Running a filesystem check clears it: chkdsk X: /f on Windows, or Check filesystem in DriveForge's drive menu, which can clear the "not safely removed" mark on FAT and exFAT volumes.
4. The drive has locked itself
Flash memory wears out. When a drive's controller decides the memory is no longer safe to write, or its own bookkeeping is damaged, it can switch the whole drive to read-only permanently. This is deliberate: it gives you a last chance to copy your data off.
You are probably in this case if:
- the card has no switch, or the switch is unlocked, and you tried another reader
- the drive is read-only on every device you try
attributes disk clear readonlyreports success and nothing changes- formatting "works" and the old files are still there afterwards
No software can undo thisTools and registry tricks that promise to "remove write protection" only clear the software flags described above. They cannot unlock a drive whose controller has locked itself. Copy your files off while the drive still reads, then replace it. If it is under warranty, the maker will usually exchange it.
What DriveForge shows for a read-only drive
DriveForge asks the drive itself whether it accepts writes. When the drive says no, the drive's card shows Read-only and the app won't write to it. It explains why and lists what to check: the lock switch on the card, then the switch on its adapter. A fake capacity test on such a drive ends as inconclusive, with the same advice, because the test can't write either.
Reading still works: you can browse the files on an exFAT or FAT32 drive and copy off what matters with your file manager.
A fake drive can look write-protected too
Counterfeit sticks and cards sometimes fail into a read-only state after being filled past their real capacity. If the drive was very cheap for its size and the lock switch checks out, read about fake capacity.
Common questions
How do I remove write protection from an SD card?
Slide the lock switch on the side of the card toward the metal contacts. If the card is a microSD in an adapter, check the adapter's switch or try another adapter. If the switch is fine and the card is read-only in every device, the card has locked itself and can't be unlocked.
Why is my USB drive suddenly write-protected?
USB sticks have no lock switch, so the cause is either a software flag on that computer or the drive's controller locking itself after detecting worn or faulty memory. Try the drive on another device. If it is read-only everywhere, copy your files off and replace it.
Can I format a write-protected drive?
No. Formatting is a write, and a protected drive refuses it. Remove the cause first: the lock switch, the adapter or the software flag. A drive that has locked itself can't be formatted by any tool.
Is a write-protected drive's data safe?
Usually you can still read everything, which is the purpose of the lock. Copy the files off soon. A drive that has locked itself is at the end of its life and may stop reading too.