The Tiny Switch That’s Locking Your SD Card

That sudden “card is write protected” error on your camera usually comes down to one tiny switch on the SD card’s edge. Here’s how to spot it, flip it, and what to do if flipping it doesn’t fix the problem.

. Photo by David Coleman - havecamerawilltravel.com
Text & Photos By David Coleman
Last Revised & Updated:
Filed Under: Memory Cards

I MAY get commissions for purchases made through links in this post.

Have Camera Will Travel // Newsletter

Practical field notes, hands-on gear tests.

If your camera is showing an error that the SD card is write-protected or locked, there’s usually a very simple fix.

Summary

  1. The Solution: Slide the physical switch UP (towards the metal contacts)
  2. MicroSD Cards: Check the switch on the SD adapter sleeve
  3. Loose Switch: Secure temporarily with tape for data recovery
  4. Persistent Error: Indicates potential card failure (Read-Only Safety Mode)
  5. Camera Settings: Check for individual “Protected” images in the playback menu

Write protection with the SD card lock

SD cards have a switch lock on them. When it’s engaged, you won’t be able to modify or delete the contents of the card. And when you insert the card you’ll probably get an error message from your camera saying something along the lines that it can’t write to the SD card or that the SD card is locked. More than once, I’ve been traveling with people who have been thrown into a minor panic when they realize that they won’t be able to take any more photos of their trip. Thankfully, it’s often quick and easy to solve.

It’s worth knowing that the switch itself is just a piece of plastic — there’s no electronic lock inside the card. It only works because the camera or card reader has a sensor that checks the switch’s position and decides whether to honor it. That’s why you can occasionally get a “locked” error even when the switch looks like it’s in the right spot: debris in the card slot, a worn switch, or a reader that misreads the position can all confuse that sensor. And on the flip side, some devices simply ignore the switch altogether, so it’s not a guarantee against every kind of accidental overwrite.

SD Card Memory Card Locked Error

It’s not always obvious and is easy to overlook, but many SD cards have a tiny switch lock on the side. It’s there in case you want to prevent data from being written onto the card or accidental deletion of images or videos. Unlike some types of file protection, this one locks the entire card — it’s not doing it on an individual file or folder basis. Many users will never intentionally use the lock, but it’s surprisingly easy to unintentionally use it just in normal handling of the card, such as removing the card from the camera or inserting it into the slot. A little knock or nudge can engage it.

If you run into the problem of a write-protected SD card, look for the small sliding switch on the side. If that has inadvertently been moved down towards the bottom of the card, it will lock the card. This is what it looks like when it’s locked:

ProGrade 128GB SD card close-up with its write-protect switch slid up into the locked position
This is locked.

To unlock the card, slide that switch up all the way toward the top of the card — that is, the end with the corner notch. This is what it looks like when the SD card is unlocked:

ProGrade 128GB SD card close-up with its write-protect switch slid down into the unlocked position
This is unlocked.

The switch isn’t complicated or sophisticated and relies on friction to stay in place. But it’s quite possible for it to loosen so that it switches from unlocked to locked too easily when you insert the SD card into your camera or card reader. If you’re finding that happening often, it’s probably time to look at replacing the card. In that case, you can, of course, just buy a new one. But it’s also worth investigating whether the manufacturer will cover it under warranty — many SD cards come with warranties of several years or maybe even the product’s lifetime — and it’s possible they might consider it a covered issue.

Locked microSD card: Why there’s no switch to flip

The larger SD cards have the write protection switch. MicroSD cards don’t have it.

But there is a case where you can run into this same issue with the switch. If you’re using a microSD to SD adapter cartridge, those also have a write protection switch. They work the same way as on a full-sized SD card.

If that doesn’t work

If the locking switch isn’t the culprit, there are some other ways that the data on SD cards can be locked. They’re much less likely to happen by accident, but it’s still possible.

One thing to check is whether your camera has locked the image or images as read-only. It’s a safety precaution that some cameras have that safeguards specific images from deletion. Most cameras will only let you do this by selecting files individually rather than as a blanket setting. The process for unprotecting images varies by camera, but look for some kind of “protected images” option or folder. Some cameras will also make a distinction between deleting an SD card (which might wipe everything except protected images) and formatting (which will wipe all data on the card).

As a technical matter, it is possible to write-protect the data on SD cards in other ways, but that’s not something that is easy to do accidentally or that you’re likely to run into in day-to-day use when using the card in a camera. Like other computer storage, you can use a computer to change file permissions or lock the files or folders to make them read-only, but that’s something you’ll have to proactively do — it’s not something that’s likely to happen by accident. If you’re running into this issue, here’s a pretty comprehensive rundown of various scripts, commands, and software tools that can help.

This is also the explanation if you’re seeing a write-protected error but the physical switch is clearly unlocked. In that case, the block usually isn’t coming from the card at all — it’s a software-level read-only flag set by your computer’s operating system, file system corruption from an improper ejection, or (as noted above) a camera treating individual files as protected. Checking the switch first is still the right move, but if it’s already up, the fix is on the software side rather than the hardware side.

If the switch is up and you still get this error, your card may be failing. Back up your photos immediately and replace the card. You usually cannot ‘fix’ a card stuck in this safety mode.

Found this helpful? Personalize your search results.
Add as Preferred Source
Profile photo of David Coleman | Have Camera Will Travel | Washington DC-based Professional Photographer

David Coleman

I take photos for a living. Now based in Washington, D.C., I have spent the last 30+ years shooting across seven continents — from underwater environments to mountain peaks. My images and time-lapses have appeared in major newspapers, magazines, museums, professional sports stadiums, and even on massive architectural scrims covering world-famous buildings.

I started this site in 2009 to field-test gear, share problem-solving solutions, and share what I've learned in shooting around the world. I only review gear and services I have personally used. No armchair opinions — just real-world experience. Because, for me, the fun is in the making of the photo.

You can see my travel photography here, license my images or buy prints here, or sign up for my Substack.

Conversation

  1. Wow! Found your site in a minute or two, read enough, pushed up the little switch on the side and Bazinga! It worked.

    Thanks,
    Wayne

    Reply
  2. I’m having an issue with a padlock icon showing up in my folders on Adobe Bridge. I’ve opened explorer and gone through the properties, unchecked “read-only” (which I don’t know why it switched randomly to that) and hit apply. Scanned everything after I hit Ignore All on some files that aren’t even on the SD card. I go back into properties and it’s checked again.

    This all started when culling the images through Bridge, I noticed the rating and labeling weren’t working. I did however notice that on previous images that were already edited – it worked. Which brought me to the whole open explorer – properties – read only – etc. I have no idea what to do, as I can’t find anything similar on google or YouTube. The images were shot on a Sony a6000 and the SD card is a SanDisk 128GB Ultra 80MB if that has anything to do with it.

    I’m SO stuck and have no idea what to do!

    Reply
  3. Hoping you can advise! I have a 64GB ‘Rugged’ SD card. The small black switch is missing and shows as being Protected when in my DC TZ90. Is there any when around this? TIA Reg

    Reply
    • When you say “missing”, do you mean that it’s broken off or that it never had one? Some cards don’t have one. If it’s broken off, sounds like it’s time for a new card. If it was designed without one, the first thing I’d try is formatting it a computer (assuming you’ve downloaded the images off it first) using the SD Card Formatter App. If that works, you can try formatting in your camera again. If that works, you should be good to go. If it won’t reformat in either step, it seems time for a new card.

      Reply
  4. If someone ave problem with microsd locker you can use buying with similar size and do a clone section by section with whatever partition tool i use AOEMI partition tools greetings and good luck

    Reply
  5. I made sure the switch is in the up position and — no luck. It says Memory Card Error. I purchased a new card and still says Memory Card Error. I can’t access the Format function so ????? I don’t know where to go from here. Hope you can help. Camera is a Canon SD630. Thanks.

    Reply
    • I haven’t used that camera, and it could be a few things, but the first that comes to mind is that you might be using a newer card that exceeds the capabilities of that camera (I believe it’s a circa-2006 model?). The manual and specs are light on details but only mention SD cards. Usually if they support the newer and larger SDHC and SDXC cards they specify that (here larger refers to storage capacity, not physical size). So if you’re putting in a 32GB, 64GB, or 128GB card, for example, the camera might not be able to deal with it because those are technically SDHC and SDXC cards. It’s quite possible that camera can only support true SD spec cards, which are below 4GB in storage size, such as this one. Without having it front of me to try, I’m mostly guessing, but that would be my top guess. It’s possible to have two faulty memory cards in a row, but the odds on that are pretty long. Or it could be a problem in the camera’s memory card slot or firmware.

      Reply
      • OK- thanks,. Yes, it had an 8GB card which worked well. I had taken that card and put it in my wildlife camera (I’m not a hunter-just love seeing what’s out behind the garage) and then put it back in the camera. Perhaps I changed something unknowingly and now can’t get it back. You’re probably right, I probably messed up something internally in the camera. The new card I purchased is a 16 GB so maybe that’s the problem. I’ll keep trying to figure it our. Still love the camera. Thanks for your help. Brian

        Reply
    • I had a problem with my card though unlocked saying, its locked. I moved the lock button almost to the middle way & that allowed me to format my sd card . Im using
      a Sandisk Ultra 64GB class 10 Sd card & , my camera is Nikon D7000.
      Hope that helps .

      Reply
  6. I am having that challenge, I shared my SD card with My friend while in the,since then it can read in the computer but when you try inserting it in Camera,it indicates Right protected. I am so confused. It’s a 32gb card.
    Please help me

    Reply
  7. Sometimes the write protect error comes from a pin being out of place on the device. This video shows how to fix this error:

    Reply

Leave a Comment