SD Card Is Read-Only or Write-Protected: Switch, Adapter, or a Failing Card

The short answer: First, look at the left side of the card. A full-size SD card has a mechanical slider—when moved down toward the LOCK label, the card is locked; when moved up toward the contacts, writing is enabled. A microSD card has no switch, so if it becomes write-protected inside an adapter, the adapter—not the card—is locking it. If the switch is demonstrably working but the card still refuses writes in every reader, this is not a setting but a protection mechanism activated by the card’s controller. Copy the data immediately to another storage device and retire the card. Do not format it, run repair tools on it, or try to „break through" the protection.

Write protection is the only storage fault that is more good news than bad news for data recovery. A card in this state cannot overwrite anything—and overwriting is the one thing that destroys data permanently. The mistake people make in this situation is therefore almost always the same: instead of recovering the data first, they try to disable the protection at any cost.

Start with the mechanics: where the switch is and which position locks the card

The slider on the side of a full-size SD card is not electronic. It is merely a plastic tab whose position is detected by a contact inside the card reader or camera. The card itself does not know that it is locked and does not enforce the lock—the device reading the card handles the entire protection mechanism.

This leads to several issues that can appear to be inexplicable faults:

  • Loose tab. After hundreds of insertions, the slider may stop staying in position and move down by itself as the card enters the slot. The card then reports that it is locked every time, even though it appears unlocked when you remove it.
  • Broken tab. If the groove is empty, most readers interpret it as „locked."
  • Dirty or bent contact inside the slot. The device then reports a lock even when the card is unlocked—and the card itself is not at fault.

The diagnostic test is simple and costs nothing: try the same card in another reader, then try another card in the same slot. If the protection follows the card, the card is the problem. If it remains with the slot, the reader or camera is at fault.

microSD: there is no switch and there cannot be one

This is where most cases become confusing. The SD standard defines three form factors, and the write-protection switch is a physical feature of full-size SD cards only—microSD cards do not have one under the specification. Cards such as the SanDisk Extreme, Samsung PRO Plus, Lexar Professional, and Kingston Canvas are often sold with an SD adapter, and it is this adapter that carries the switch.

In practice, this means:

  • If a microSD card in an adapter reports write protection, the adapter is the first suspect—particularly its slider and contacts.
  • Inexpensive bundled adapters wear out before the card does. Try another adapter, preferably from a different manufacturer.
  • The cleanest test is a reader with a dedicated microSD slot, which removes the adapter from the equation entirely. Only if the card remains read-only there can you be sure that the card itself is responsible.

The same logic applies to cards embedded in a single piece of plastic (monoliths): there is no switch, so any write protection originates somewhere other than the mechanical lock.

Table: what each symptom means

What you seeMost likely causeWhat to do—and what not to do
SD card reports a lock and the slider is downSwitch in the LOCK positionMove it up toward the contacts; no further action is needed
Only one reader reports the lockContact inside the reader or camera slotUse another reader; do not format the card
A microSD card in an adapter is read-onlyAdapter slider or contactsUse another adapter or a reader with a microSD slot
The slider is loose and moves down by itselfWorn card tabCopy the data and retire the card from active use
Read-only in every reader, including without an adapterProtection activated by the card controllerCopy the data immediately; do not format or repair the card
Capacity is correct, but writes failExhausted spare memory blocksRead the card once onto another storage device, then retire it
Capacity is nonsensical or zeroController failure or possibly a counterfeit cardDo not write to it; have it diagnosed
The card appears as RAW and asks to be formattedDamaged file systemCancel the prompt; formatting means writing to the card

When the card switches itself to read-only mode

This is the scenario for which the rest of this article matters. The card has no switch—or is demonstrably unlocked—and behaves the same way in every reader. Reading works without problems, but every write, format, or attempt to delete even a single file ends with a write-protection error.

This is not a setting you can disable. It is the card controller’s last line of defence. Flash memory can withstand only a finite number of write cycles, and the card maintains spare blocks to replace worn ones. When these reserves run out, or when the controller can no longer complete a write safely, it switches to a state in which it only returns existing data. This is a one-way decision—the card will not switch back, regardless of what you run.

This most commonly affects cards subjected to heavy write workloads: loop recording in dashcams and trail cameras, long bursts of RAW photographs, and cards used in drones. This is precisely why product lines designed for continuous writing exist, including the SanDisk High Endurance and Max Endurance or Samsung PRO Endurance. Even these are not unlimited; they merely push the limit further.

What to do in this situation:

  1. Leave the card alone and do not attempt to write anything to it. Every failed write creates additional work for a controller that is already at its limit.
  2. Copy the data in a single pass to another storage device—ideally as an image of the entire card rather than as individual files.
  3. Check what was copied, especially videos and RAW photographs.
  4. Retire the card. Even if formatting appears to „fix" it, you must no longer trust it.

When not to try this yourself: if the card cannot be copied even in a single pass, reading stalls, or the card disappears after a while, attempts with other readers and programs will wear it out further. We will first try to read the card as an image; if the controller fails, we will propose the next steps based on our findings and tell you the price of any non-standard work in advance. Find out more on the memory card data recovery page, or report the card using the form.

diskpart: when it helps and when it only hides the problem

Windows maintains its own „read-only" attribute for each disk. This attribute can be set or cleared—and if someone or some utility has enabled it, it can genuinely be the reason why the card cannot be written to. The diskpart utility provides the attributes disk command for this purpose.

Run the following in a command prompt opened as an administrator:

diskpart
list disk
select disk N
attributes disk
attributes disk clear readonly

The pitfalls:

  • select disk N is the dangerous step. Verify the disk number by checking its capacity in the list disk output; do not guess. It is easy to select the system disk by mistake.
  • In this situation, do not run anything else—especially not clean, create partition, or format. These commands write to the disk and can destroy the data immediately.
  • If attributes disk already reports that the attribute is disabled, or if clear readonly fails because the media is write-protected, the protection originates in the hardware, and further attempts are pointless.

In other words, diskpart is a diagnostic tool, not a repair. It distinguishes a software attribute from hardware-level protection—and that is the full extent of its usefulness here.

The camera says the card is locked

A camera reads only the position of the tab inside its slot—nothing more. A broken tab on an otherwise unlocked card can therefore trigger the same locked-card warning as a dirty contact inside the camera body.

A three-minute test will settle the matter: insert another card into the camera, then test the original card in a USB reader connected to a computer. If the other card works in the camera, the original card is faulty. If it does not, the camera’s card slot is the next suspect.

One practical note: placing a small piece of adhesive tape over the groove is a well-known emergency workaround, and it can work. But a card with a loose or broken tab belongs at the end of its working life—not back in a camera used to photograph a wedding.

How to recover data from a card in read-only mode

The good news is that nothing can overwrite your data in this state. Take advantage of that:

  • Create an image first; work on it afterwards. Make a sector-by-sector copy of the entire card onto a disk, then perform all subsequent operations—partition searches, file recovery, and image checks—on that copy.
  • Reader quality matters. Built-in laptop card slots are often the weakest link. An external USB reader connected directly to the computer usually provides significantly more stable reading.
  • Copy in a single pass. Repeatedly inserting and removing the card will not improve the controller’s condition.

If specific files are missing or the card appears empty, continue with the procedure described in our article about recovering data from an SD card. For photographers, the next step is often format-specific image recovery—the process for NEF, CR3, and ARW files is covered in our article about recovering RAW photos from a card.

What not to do in this situation

  • Do not format the card. Formatting does not repair write protection; it writes over the structures used to locate files.
  • Do not run file-system checking or repair tools. CHKDSK modifies the file system on the original storage device—our article on using CHKDSK on an external drive explains when it makes sense and when it does not.
  • Do not install utilities that promise to „unlock" the card. Those that actually do anything write to the card’s service structures—and that is the last thing you want.
  • Do not keep testing the card in one device after another. Every connection restarts a controller that is already at its limit.

When professional laboratory recovery is needed

DIY procedures end when the card is not detected at all, reports zero or nonsensical capacity, becomes hot, or is a monolith without readable contacts. These cases require direct work with the memory chips and belong in a laboratory, not in software.

If you are unsure which category your card falls into, leave it alone and contact us or call 775 556 063. We diagnose and recover memory cards in our own laboratory in Brno. We have separately explained when it makes sense to bring the storage device in person, while estimated price ranges by fault type are available in our data recovery price list. An overview of the complete service is available on the data recovery page.

Frequently asked questions

Where is the LOCK switch on an SD card, and how can I tell whether it is locked?

It is on the left side of the card when you hold it label-side up with the contacts facing away from you. Moving it down toward the LOCK label means the card is locked; moving it up toward the contacts enables writing. The slider is merely a mechanical tab—its position is detected by the reader.

Why is my microSD card write-protected when it has no switch?

Because microSD cards do not have a switch under the SD standard. The protection is being reported either by the SD adapter containing the card or by the card’s own controller. You can distinguish between the two by testing the card in a reader with a dedicated microSD slot, where no adapter is involved.

Will the diskpart attributes disk clear readonly command help?

It helps only when the protection is caused by a software attribute in Windows. If the command fails with an error saying that the media is write-protected, the protection is implemented by the card’s hardware and cannot be disabled. Never add the clean or format commands—they will destroy the data.

I can read the card, but I cannot write anything to it. Can I keep using it?

No. Copy the data from it and retire the card. This state means that the controller can no longer complete writes safely, and the card will not switch back.

Can I format the card to remove the protection?

Formatting will not remove write protection, and if the card still contains data you need, it introduces additional risk. Recover the data first, then decide what to do with the card.

The camera says the card is locked, but the switch is up. What should I do?

Try another card in the same camera and test the original card in a USB reader. If the other card works in the camera, the original card has a damaged tab. If the other card does not work either, the contact inside the camera’s card slot is dirty or bent.

Sources

Where to find us

ITHOPE is a company based in Brno, Czechia: we do data recovery from disks, RAID and NAS, PC and laptop service and IT for business, all in our own lab at Viniční 3587/216, 615 00 Brno.

Phone +420 775 556 063 (24/7 line). You can bring the device in person, or send it by courier (Zásilkovna, PPL).