Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Hardware»Storage»5 Ways to Remove Write Protection on Micro SD 

5 Ways to Remove Write Protection on Micro SD 

nishantBy nishantOctober 25, 2022
Remove Write Protection on Micro SD 

The Write Protection on the SD Card restricts users from writing or modifying any existing content in it. While attempting to copy files to the SD card, users can receive a prompt with the message “The disk is write-protected ”. If you try to format the SD card, a similar message may appear, preventing you from erasing the files.

Sd cards generally come with a slider that lets you lock or write-protect the files in it. If you can’t unlock the card using the slider, there are other ways we have discussed in this article that you can use to remove the protection mechanism. 

Table of Contents

  • How to Remove Write Protection on Micro SD Card
    • Remove Write Protection from File Explorer
    • Change Attributes Using CMD
    • Modify Registry
    • Perform Disk Check
    • Run Malware and Virus scan
  • Removing Write Protection on Mac
  • Removing Write Protection On Linux

How to Remove Write Protection on Micro SD Card

Make sure the SD card’s slider is unlocked before you begin. The full-sized SD cards have a slider that locks the write permissions on the storage device. To verify that the SD card is not locked, make sure the slider is at the top. If it appears to be locked, gently move the slider to the top.SD Card Slider

Remove Write Protection from File Explorer

On Windows, you can edit the access permissions of an SD card through the file explorer. For a device with multiple users, you can also assign different permission for multiple users. 

  1. Connect the SD card to the computer.
  2. Go the File explorer.
  3. Locate the SD Card in the list of drives and right-click on it.
  4. Select Properties.
  5. Go to the Security tab.
  6. Click on Edit to change the Permissions.Edit attributes for SD card
  7. Under the Permissions for Everyone, check the Allow sections for Full control. 
  8. Click on Apply to save Changes. This will grant you full access to the SD card by eliminating the write protection on it. Apply full control for SD card attributes

Note: This method will only work for the SD cards with the NTFS file system.

Change Attributes Using CMD

If you have insufficient write permissions or the memory is attributed as read-only, you will fail to write over the card. In such cases, you will only be allowed to view the files on the card. 

You can change the attributes of the Card and assign write permissions to it using the command prompt. 

  1. Press Windows X and open the Windows terminal (Admin).
  2. On the command prompt window, type diskpart and hit enter.Diskpart command
  3. Now, execute list disk command to see all the storage devices on your computer. You will get information about all the storage devices on your computer with their name, size, and other details.
  4. Locate the SD card from the list.
  5. Now, type select disk X and hit enter. Note that in place of X,  enter the number of the SD card volume you located earlier. 
  6. At last, enter the command Attributes disk clear readonly. Diskpart List disk
  7. This will remove the write protection from the SD card. Disconnect the SD card when the process gets completed. Finally, plug it back into the device and check if it solves the problem.

Modify Registry

Modifying the Registry lets users make root and administrative-level changes. If you have failed to make changes to the attributes earlier from the Command prompt, you can do it manually using the registry editor. However, it is advised that you perform this with caution, as altering the registry could permanently damage the SD card and the system.

  1. Press Windows Key + R, type regedit, and hit enter.
  2. Now, Navigate to this registry directory. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
  3. Find the folder StorageDevicePolicies folder and open it. Registry location
  4. If you see no folder under such a name, right-click on the Control Folder.
  5. Go to New > Key.
    Add new key to registry
  6. Now, name the New key as StorageDevicePolicies.
  7. Right-click on the newly created folder. Go to  New> DWORD (32-bit) value.
    Add Dword 32 bit
  8. Name the DWORD value as WriteProtect.
  9. Open the WriteProtect file and assign it a value of 0 and click on OK to save changes.
     Remove write protection from SD card
  10. Restart the device and see if the write protection from the SD card has been removed. 

Perform Disk Check

Sometimes the diskpart utility may fail to clear the attributes because of some corruption in the storage device. The disk check is a useful tool to diagnose any pertaining logical errors in the files system of the storage device and fix them.

These logical errors in the SD card’s file system can cause the storage device to malfunction and restrict you from writing anything over it. It is ideal for performing scans to eliminate any issues with the SD card.

  1. Press Windows Key + X and open Windows Terminal (Admin).
  2. Type chkdsk /r [DL] and hit enter. Replace the [DL] with the drive letter of the SD card. CHKDSK SD card
  3. The scan process will now start, which can take several minutes to finish. Upon completion, this scan will fix the bad sectors of the volume.

Run Malware and Virus scan

Viruses and malware are well known to invoke write protection on storage devices, including SD cards. Therefore, to prevent or eliminate these troublemakers performing anti-malware scans becomes crucial.

Windows defender is a competent application to get rid of such malware and viruses. 

  1.  Press Windows Key + R, type windowsdefender://threat/, and hit enter.
  2. Click on Scan options.
    Scan options for SD card virus scans
  3. Choose Custom Scan and click on the Scan now button.Custom Malware Scan
  4. Select the drive volume of the SD card. The Application will now start going through the SD card and scan for viruses and malware.

Removing Write Protection on Mac

If the SD card is write-protected, you can reset the read and write permissions on it using the Mac terminal. 

  1. Click on the Files tab on the top left of the desktop.
  2. On the Finders window, Go to Applications.
  3. Open the Utilities folder.
  4. Finally, open the Terminal. 
  5. Now, execute this command 
    diskutil resetUserPermissions / `id -u`Change readonly attributes in Mac
  6. Sometimes, you must run this command with Superuser privileges to get it working. 
    sudo diskutil resetUserPermissions / `id -u`
  7. Restart the device and check if you are able to write into the SD card. 

Removing Write Protection On Linux

On Linux, you can easily reset the read-write attributes of the SD cards using the Hard disk parameter (hdparm) command line. 

  1. Connect the SD card to your Linux Machine.
  2. Press Ctrl + Alt + T to open the Terminal.
  3. Type lsblk and hit enter. This will list all the available volumes connected to your device.
    List drives in Linux
  4. Identify the SD card on the list and note down its File system information.
  5. Now, enter this command.           
    sudo hdparm -r0 /dev/sdb1
    Replace the /dev/sdb1 in this command with the mount path of the SD card. change attributes of Sd card
  6. Re-connect the SD card and check if the write protection has been removed from it.
fix
nishant

Nishant is an enthusiast who loves writing about technology. He also is heavily invested in keeping himself updated about the latest happenings in the tech world. At Tech News Today, he covers Operating Systems, how-to-topics, and Fixes.

Related Posts

how-to-use-a-usb-flash-drive

How to Use a USB Flash Drive (Detailed Guide)

January 30, 2023
raid 5 vs raid 10

RAID 5 Vs RAID 10 – Which One Is Better?

January 12, 2023
How to clone a hard drive to ssd

How to Clone a Hard Drive To SSD

January 1, 2023
how-to-get-data-from-an-old-hard-drive

How to Get Data from an Old Hard Drive

December 15, 2022
Recover Corrupted Files from USB Drive

How to Recover Corrupted Files from USB Flash Drive?

December 8, 2022
can't-read-from-the-source-file-or-disk

[Solved] Can’t Read From the Source File or Disk

December 10, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
usb a vs usb c

USB A Vs USB C – What’s the Difference?

January 31, 2023
how long does a cmos battery last

How Long Does a CMOS Battery Last

January 25, 2023
thunderbolt vs usb c

Thunderbolt Vs USB C: What’s the Difference

January 25, 2023
You may also like
logitech wireless mouse not working

Logitech Wireless Mouse Not Working? Here Are 7 Ways to Fix It

January 31, 2023
screenshot on alienware

4 Ways to Take a Screenshot on Alienware Laptop

January 31, 2023
do-smart-tvs-have-bluetooth

Do Smart TVs Have Bluetooth? How to Check

January 30, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.