ISO-certified Class 100 cleanroom • Secure chain of custody • 30,000+ successful recoveries
ClearQuote Data Recovery
Home›Guides›Memory Cards
Memory Cards

"The Disk Is Write Protected": Fix an SD Card or USB Drive

Updated October 2, 2026 •7 min read

You try to copy a file, delete a photo, or format a card, and Windows stops you: “The disk is write protected. Remove the write-protection or use another disk.” On a Mac, the same card or USB drive shows up as read only. A write-protected SD card or USB drive can be caused by something as simple as a sliding switch — or by the card’s own controller deciding its memory is failing and locking itself to protect your data. Telling those apart is the most important step, because the fix for one can cost you the data on the other.

Before anything else: if you can still open your files, copy them to your computer now. Every cause below leaves the data readable, and a write-protected device is not something to experiment on while it holds the only copy.

Check the SD card lock switch first

Full-size SD cards have a small slider on the left edge. Slid down toward Lock, it tells the card reader to treat the card as read-only. (The card itself doesn’t enforce this — the reader does — which is why some readers ignore it.)

  • Slide it up (toward the contacts) and reinsert the card.
  • microSD in an adapter? The adapter has the switch, not the microSD card. Cheap adapters often have loose switches that slide to Lock as you insert them. Try a different adapter.
  • Switch broken off or loose? Try another reader. Some built-in laptop slots read a missing switch as locked.

USB flash drives rarely have switches, but a few models do — check the sides of the casing.

Clear the read-only attribute with DiskPart (Windows)

Windows can flag a whole disk as read-only. DiskPart can show and clear that flag. Be careful here: selecting the wrong disk number affects the wrong drive.

  1. Right-click Start → Terminal (Admin) or Command Prompt (Admin).
  2. Run these commands one at a time:
diskpart
list disk
select disk 2
attributes disk

Replace 2 with your SD card or USB drive’s number — identify it by its size in the list disk output. attributes disk shows Current Read-only State: Yes if the flag is set. To clear it:

attributes disk clear readonly
exit

Reconnect the device and test it. Don’t run clean, format, or create partition in DiskPart on a card that holds data you need — those erase it.

If attributes disk clear readonly reports success but the disk still says read-only after reconnecting, skip ahead to the controller section below. That’s a strong sign the device itself is enforcing the lock.

Check the WriteProtect registry key (with caution)

Windows has a policy key that makes all USB storage read-only. It’s sometimes set by IT departments, security software, or old “USB lock” tools.

  1. Press Win + R, type regedit, and press Enter.
  2. Go to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
  1. If a WriteProtect value exists and is set to 1, double-click it, change it to 0, and restart.

If the StorageDevicePolicies key doesn’t exist, this isn’t your problem — don’t create it. Editing the wrong registry value can cause other issues, so change only this one. On a work or school computer, removable-storage write access is often blocked by policy on purpose; check with your IT team instead of working around it.

BitLocker To Go and encryption policies

Two BitLocker situations look like write protection:

  • The drive is BitLocker-encrypted and locked. Windows will prompt for a password before you can read or write it. If you don’t have the password, see how to find your BitLocker recovery key.
  • Your computer requires encryption for removable drives. Some organizations enable a policy that blocks writing to any USB drive or card that isn’t BitLocker-protected. Windows typically offers to encrypt the drive. That’s a policy, not a fault.

On a Mac: “read only” isn’t always a fault

If Finder shows a USB drive as read-only (Get Info → Sharing & Permissions: You can only read), check its format in Disk Utility. macOS can read NTFS drives but can’t write to them natively, so a Windows-formatted drive is read-only on a Mac by design. Your data is fine; copy files off, or use the drive on a Windows PC. Cards and drives formatted exFAT or FAT32 work read-write on both systems.

When “the disk is write protected” means the card is failing

This is the part most “fix write protection” articles skip. Many flash controllers — in SD cards, microSD cards, USB drives, and SSDs — are designed to switch permanently to read-only when they detect that the memory is wearing out or failing. Once the controller runs out of good spare blocks, it stops accepting writes so it can’t corrupt what’s already stored. Your existing files remain readable, but the device will never accept writes again.

Signs you’re looking at a hardware lock, not a setting:

  • The lock switch, DiskPart, and registry all check out, but writes still fail.
  • attributes disk clear readonly “succeeds,” then the flag comes back.
  • Formatting fails with errors like Windows was unable to complete the format.
  • The same card is write-protected in every reader, computer, and camera.
  • Files you delete reappear after you reinsert the card.
  • The card is old, heavily used (dashcams and security cameras wear cards fast), or recently threw read errors.

What to do:

  1. Copy everything off immediately, to a different drive. A controller that has locked itself is telling you the memory is degrading. It may stop reading entirely at some point.
  2. Don’t try to force-format it. Low-level format tools, “write protection removal” utilities, and manufacturer mass-production tools can wipe the card’s internal tables — destroying the data the controller was protecting — and usually still won’t make the card writable.
  3. Replace the card or drive. Once data is safe, retire it.

If files won’t copy, copy errors appear partway through, or the card starts disappearing, stop and treat it as a recovery case. Running repeated scans or recovery software on a failing card adds wear — see is data recovery software safe? And if the card has stopped appearing at all, see SD card not showing up.

The bottom line

“The disk is write protected” usually comes down to four things: the SD lock switch (or a loose adapter switch), a read-only attribute you can clear with DiskPart, a WriteProtect registry or encryption policy, or — the one that matters most — a flash controller that has locked itself because its memory is failing. If the simple checks don’t work, assume it’s the last one: copy your data off now and don’t force a format.

If your card or drive is locked and the files won’t copy, our SD card recovery service reads data from failing and read-only cards and flash drives for one flat $1,200 price for single devices. Shipping is free and prepaid, and you pay nothing unless the recovery succeeds.

Get your data back for one clear price.

Confirm online, ship free, and pay nothing unless we succeed.

Confirm & get my free label