How to Remove Write Protection from an SD Card

English Français Deutsch やまと Español Português

How to remove write protection from an SD card on a PC?

Quick Answer:

Here are the ways:

1. Unlock the physical lock 
2. Clean the SD card's metal connectors 
3. Disable write protection with third-party software 
4. Remove read-only attributes with CMD 
5. Edit the Windows Registry 
6. Repair the corrupted SD card 
7. Recover data and reformat the SD card 
Use iBoysoft Data Recovery to quickly rescue files from the corrupted SD card before reformatting.

solve SD card write protected

If your SD card shows errors like "The disk is write-protected" (Windows), "read-only" (Mac), or "Memory card locked" (camera), it means the card is currently locked and cannot be modified.

Write protection is designed to prevent accidental deletion or formatting, but it can also block you from saving, editing, or transferring files when you actually need to.

This guide explains why your SD card is write-protected and walks you through 7 proven methods to remove write protection safely - without losing data whenever possible.

#1 Toggle off the physical SD card lock

Basically, all SD standard cards have a physical write protection switch that can be toggled up to disable write protection on the micro SD card. Hence, when a micro SD card/SD card is write-protected, the first thing to check is the physical lock position.

How to remove write protection on a micro SD card:

  1. Locate the Lock switch on your standard SD card, or find the lock on the write-protected SD card adapter containing a micro SD card.
  2. Slide the SD card Lock switch up to the unlock position (like the picture below) to remove physical write protection on micro SD card. 
    unlock SD card
  3. Reinsert the SD card (or SD card adapter loaded with the micro SD card) into your device or attach it to a computer through an SD card reader. Then the SD card write protection should be removed.

If you find the SD card unlocked but the card is write-protected, it could be a bad connection that prevents you from writing to the SD card.

#2 Clean the SD card's metal connectors

For a micro SD card or an SD card write-protected but not locked, take a close look at the metal chips on the SD card or micro SD card. They are supposed to connect to a digital device that should be flat, clean, and dry. 

If the SD card's metal contacts are dusty, oily, or covered with an oxidized layer, it might be "protected" from writing.

Use a piece of soft and dry cloth and wipe the connectors gently, or clean them with a piece of cotton moistened with alcohol if they are oily. Also, you can use an eraser to get rid of that oxidized layer or stains.

If the metal connectors are scratched or flaked off, there is no need to remove write protection on the micro SD card, but to replace the entire storage media.

After checking the lock and connectors, you can't write to the SD card? Try the following solutions to remove write protection from the SD card.

#3 Disable write protection with third-party software

Standard SD cards or micro SD cards could be protected by a password using mobile devices or third-party software from unwanted data modification. In this case, you need to recall if you have locked your SD card/micro SD card with an encryption tool (such as SanDisk micro SD card Secure Access) or any write protection software.

If so, remove write protection on micro SD cards with the correct password using that specific software.

#4 Clear read-only attributes on SD card

In some cases, the write-protected SD card has only read permission. Such digital write protection on a micro SD card could be removed using Diskpart on Windows 10/8/7. In macOS, an admin account may set up a read-only privilege to this SD card/micro SD card, making it a write-protected SD card; you need to take over the admin rights to edit the privilege.

So, if you are using a PC, make sure you are the administrator and carefully follow these steps to get write protection on the micro SD card removed:

  1. Click the Windows logo or Start in the bottom-left corner of your desktop.
  2. Type in: “command prompt for search and run Command Prompt as an administrator from the results.
  3. Type in: diskpart into Command Prompt, followed by pressing the Enter key.
  4. After allowing it to make changes, type in: list disk and press Enter.
  5. Locate your SD card according to the disk information and remember its disk number.
  6. Type in: select disk number and replace your SD card's "number", then press the Enter key.
  7. Type in: attributes disk clear readonly and press Enter. 
    remove read only protection

Your SD memory card won't have the write-protected error after you see the "Disk attributes cleared successfully" message in the command prompt window. 

If you are using a Mac, you need to follow these steps to fix an SD memory card write-protected:

  1. Right-click the SD card/micro SD card icon on the desktop or in Disk Utility and select Get info.
  2. Scroll down to find Sharing & Permissions.
  3. Click the yellow lock to make changes and enter your admin password.
  4. Select your user name and change from Read Only to Read & Write.
  5. Click the yellow lock again to save the change.

If the write protection still can't be removed after read-only permission is disabled, you may need to go deep to modify the Windows registry to remove write protection on the micro SD card.

#5 Edit the Windows Registry

Be careful when you are editing the Windows Registry. Back up your memory card first.

  1. Keep your SD card/micro SD card connected to the Windows computer.
  2. Use Windows + R together to open the Run window.
  3. Type in regedit and press Enter to open Registry Editor.
  4. Expand the folder in the left panel as follows: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. If you don't see the StorageDevicePolicies folder, right-click the Control folder and select New > Key to create a new key called StorageDevicePolicies.
  5. Right-click the StorageDevicePolicies folder and click New > DWORD (32-bit) Value to create a new value named WriteProtect.
  6. Double-click the WriteProtect key in the right window and set its value data to 0, and click OK. 
  7. Close Registry Editor, disconnect the SD card, and restart your PC.

If all attempts above don't help remove write protection on the micro SD card or SD card, you need to check if the device's file system is corrupted.

#6 Repair the corrupted file system

It's possible that you can't write to the SD card because parts of your SD card (that are related to writing permission) are corrupted. Then, you'll need to repair such corruption to regain write access to this SD card.

On your Windows PC:

  1. On your Windows PC, find your SD card in File Explorer and right-click on it.
  2. Choose Properties in the context menu.
  3. Choose Tools and then click on the Check button.

Such an SD card repairing process could also be completed with Mac's First Aid. Once the error scanning and repairing process completes, you can reinsert your SD card or micro SD card to your device and access it again.

• How to repair SD card with First Aid on your Mac?

If the write-protected SD card error can't be repaired, you need to recover data from the corrupted SD card and then format the SD card to make it work again.

#7 Recover data and reformat the SD card

Formatting an SD card or micro SD card will force remove write protection on the micro SD card caused by a corrupted file system. However, this will make you suffer irreversible data loss.

Before you reformat a write-protected SD card or micro SD card, do remember to recover files from the corrupted SD card using reliable data recovery software.

iBoysoft Data Recovery is a professional data recovery tool that supports restoring files from corrupted, inaccessible SD cards and other storage devices. Only a few clicks are required.

Steps to do a data recovery with iBoysoft Data Recovery:

  1. Free download, install, and open it on your PC.
  2. Choose "Data Recovery", select the SD card, and click "Next". 
    recover data before removing write protected SD card
  3. Wait for the scan, then preview the files.
  4. Select the wanted files and click "Recover" to save them to another location.

Detailed guides:

• How to recover data from a corrupted SD card on Windows?

• How to recover data from SD card on Mac?

After files are recovered, go ahead to format the SD card with free tools.

• How to format an SD card on your Mac?

• How to format an SD card on your Windows?

• Cannot format SD card, what to do?

Conclusion

After reading this post, you know how to remove write protection from an SD card or micro SD card, then you'll be able to take new pictures using the SD card in cameras, transfer files from computers to the SD card, and do any operations to this SD card, including formatting.

FAQ about SD card write-protected

QWhy does my SD card say write protected?
A

Because you have enabled the write protection on the SD card. With this feature of the SD card turned on, it prevents the data stored on it from being deleted or overwritten.

QHow do I unlock a write protected SD card?
A

There is a physical switch used to protect the SD card. To unlock a write-protected SD card, you need to shift the switch in the opposite direction and reconnect the SD card to the computer.

QHow do I make my SD card writable?
A

You can follow the methods we provide in this post one by one to remove write protection from SD cards or Micro SD cards, including using the physical switch, checking the connection, utilizing third-party software, clearing read-only attributes, editing Windows Registry, etc.