Home > SD Card Recovery

Got A Locked SD Card? How to Unlock It and Recover Data?

Updated on Tuesday, August 27, 2024

Written by

Amanda Wong

Approved by

Jessica Shee

English

Summary: Can't write to the locked SD card? This post provides 6 methods to unlock an SD card so that you can read and write to it without any limitations. Plus, it also tells how to recover data from a locked SD card.

Being compatible with a range of devices, SD cards are widely used to store photos, videos, documents, and other items. But unexpectedly, you insert the SD card into your computer, it says "your sd card is locked" or prompts other error messages. 

Besides, a locked SD card prevents you from editing, deleting, and moving files on it. If the same situation befalls you, read this post to know how to unlock SD card in multiple ways.

What happens when an SD card is locked?

There is a lock switch on every SD card used to protect stored contents from accidental deletion and overwriting, this feature is known as write protection. When you slide the switch to lock the SD card, you can get read-only access to it, viewing contents on it.

However, it disables you to modify the contents on it when the SD card is write-protected, any writing operations such as saving and deleting a file are forbidden when the lock switch is on. In this case, you may want to know how to unlock the SD card to gain full access to it.

What causes the SD card to be locked?

We conclude some common reasons why the SD card gets locked:

  • Your SD card switch may become activated due to friction.
  • Possibly change the file/folder access permission or set the SD card to be read-only.
  • Select the incorrect option in the camera's menu or an Android app to enable write protection on the SD card.
  • Your SD card can become inaccessible due to file system corruption.
  • Physical damages on the SD card.

Share this post with people who need to unlock their SD cards!

 

How to unlock an SD card in 6 ways?

If you want to modify contents on the locked SD card, you will need to unlock the SD card so that you can gain full read and write access to it without any limitations. In this part, we summarize 6 working methods to unlock the SD card, now let's dive into the details of each of them.

  1. Unlock SD card with the lock switch
  2. Unlock SD card via CMD
  3. Unlock SD by changing file permissions
  4. Unlock SD card using Registry Editor
  5. Unlock SD card with password on Android
  6. Unlock SD card through formatting

Unlock SD card with the lock switch

In case the lock switch on your SD card is turned on by friction or dropping, you can simply slide the switch to the unlock position to remove the write protection on the SD card. This is the easiest way to unlock an SD card. If the lock switch is broken, being loose or moving easily, and you can't get it turned off, the SD card needs to be replaced.

Unlock SD card via CMD

Perhaps there is no lock switch on the SD card, or you can not directly access the SD card embedded in devices, then, you can use the Diskpart on Windows 10/8/7 to get the write protection on the micro SD card removed.

  1. Connected the SD card to your computer.
  2. Click the Windows menu and search Command Prompt, then click Run as Administrator.
  3. Type the commands below one by one and press Enter after each, and replace # with the number of your SD card.diskpartlist diskselect disk #attributes disk clear readonly 
  4. Quit Diskpart and reaccess the SD card.

Unlock SD by changing file permissions

Some cameras have built-in protection features to stop unintentional deletion, thus it might make a portion of the photos on the SD card locked. You can navigate to the settings on your camera to turn off the photo-protection feature. Alternatively, you can get the files unlocked by changing file permissions.

On Windows: 

  1. Insert the SD card into your computer.
  2. Head to Windows File Explorer, locate the locked files, and select Properties from the context menu.
  3. Uncheck the box of Read-only.
  4. Find your SD Card now and select Properties, choose the Security tab. and choose     
    Everyone under Group or user names.
  5. Click Everyone, and Allow all the access options under the Permissions for Everyone list.
  6. Click OK to apply your settings.

On Mac:

  1. Connect the SD card to your Mac device.
  2. Click the SD card icon on the desktop. (How to fix the SD card not showing up on Mac?)
  3. Choose Get Info from the drop-down menu.
  4. Click and unlock the bottom padlock with your admin password.
  5. Under the Sharing & Permissions section, select a user, group, or everyone, then click on Read-only and choose Read & Write to change permissions on Mac

Unlock SD card using Registry Editor

Registry Editor is another way available on Windows for your to remove write protection from the SD card. This is a more advanced method, and you should be cautious during the process to avoid problems.

  1. Keep your SD card/micro SD card connected to the Windows computer.
  2. Press Windows + R together to open the Run window.
  3. Type in regedit and press Enter to navigate to Registry Editor.
  4. Expand the folder in the left panel as the following path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePoliciesIf there is no StorageDevicePolicies folder, right-click the Control folder and choose 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 WiteProtect.
  6. Double-click the WriteProtect key and set its value data as 0 and click OK.  
  7. Quit Registry Editor and reconnect the SD card.

Unlock SD card with password on Android

If you lock the SD card on your Android phone with a password, then you can decrypt it with the password to make the contents stored on it writable. Here's how to unlock SD card with the password on Android, the steps may vary depending on different phones.

  1. Insert the SD card into the source phone. Go to the Settings app and tap on Lock screen and security.
  2. On the bottom, tap on Decrypt SD Card.
  3. Tap on DECRYPT SD CARD and enter your password. Wait for the process to finish.

Unlock SD card through formatting

Badly, the methods listed above cannot unlock the SD card, the SD card may be logically corrupted. Then formatting SD card is the last resort to forcibly remove write protection from it and make the SD card both readable and writable. 

However, it will erase all data on the SD card. Therefore, it is recommended to perform an SD card data recovery to rescue the lost/deleted from the locked SD card before you format it.

Do these methods work to unlock the SD card? If the answer is yes, why not share it to help more people?

 

How to recover data from locked SD card?

When the SD card is locked and you fail to unlock it with the methods we mentioned above, you are facing a risk of losing all your data on the SD card, including important photos, videos, and documents. Thus, it is of great need to recover data from a locked SD card ASAP before formatting!

Then, professional SD card recovery software is what you need to rescue your crucial data on the locked SD card. iBoysoft Data Recovery for Widows is your best choice. It features a high recovery success rate, a risk-free environment, and reliability.

Best File Recovery Software - iBoysoft Data Recovery for Windows

  • Recover deleted photos, documents, audio files, videos, emails, etc.
  • Recover deleted files from HDD, SSD, flash drives, SD cards, etc.
  • Recover data from various scenarios, including deletion, formatting, corruption, etc.
  • Recover data from Bitlocker encrypted drive and RAW drive.
  • Compatible with Windows 11/10/8.1/8/7/Vista/XP and Windows Server.
  • Support NTFS, exFAT & FAT32 formatted drives.
  • Support more than 1000+ file formats and types.

 Read-only & risk-free

 

Steps to recover data from locked SD card:

  1. Download and install iBoysoft Data Recovery for Windows on your computer.
  2. Connect the SD card to your computer and launch the recovery software.
  3. Select the Data Recovery module on the main interface.
  4. Choose your SD card from the list of detected devices and click Next to search for lost/deleted files.
  5. Right-click the files and freely preview them by selecting Preview.
  6. Click Recover to save the file to a different location.

If you have successfully gotten lost data back from the SD card, share the data recovery software with others.

 

Conclusion

Even though locking SD card can protect data from malicious access or accidental deletion, you may want to unlock SD card sometimes so that you can modify files on it. Then, there are 6 methods you can apply to unlock SD card. If you need to recover data from the locked SD card, try iBoysoft Data Recovery for Windows.