How to disable write protection on micro sd card?

​I. What is write protection?

Write protection is a security feature that prevents any data from being written to, modified, or deleted from a storage device such as a micro SD card. It can be a physical or software – based mechanism. Physically, there might be a small switch on the SD card (or its adapter) that toggles the write – protection state. Software – based write protection can be set by the operating system or a device’s firmware to safeguard the data integrity of the card.

For example, if you have a camera that uses a micro SD card and you want to prevent accidental deletion of photos during a shoot, you might enable write protection.

II. Physical Solutions

A. Check for a Physical Write – Protection Switch

Locate the switch:

Many micro SD cards come with a small physical switch on the side of the card or on the adapter (if you’re using one). This switch is usually labeled with a lock symbol. If the switch is in the “locked” position, it means the card is write – protected.

For example, SanDisk micro SD cards often have a tiny slider on the side of the card body. Slide the switch to the opposite position to disable write protection.

Troubleshooting physical switch issues:

Sometimes, the switch may seem to be in the correct position, but write protection still persists. This could be due to dirt or debris interfering with the switch’s functionality. Gently clean the area around the switch using a small, dry brush or a can of compressed air. Make sure not to damage the switch while cleaning.

III. Software – Based Solutions for Windows

A. Using Diskpart Utility

Open Diskpart:

Press the Windows key + R to open the Run dialog box. Type “diskpart” and press Enter. This will open the Diskpart command – line utility.

Diskpart is a powerful tool that allows you to manage disks, partitions, and volumes on your Windows computer.

List the disks:

In the Diskpart console, type “list disk” and press Enter. This will display a list of all the disks connected to your computer. Identify the disk number that corresponds to your micro SD card. You can usually determine this by looking at the size of the disk and the drive letter associated with it in File Explorer.

Select the disk:

Type “select disk [disk number]” (replace [disk number] with the actual disk number of your micro SD card) and press Enter. For example, if your micro SD card is disk 2. you would type “select disk 2”.

Clear read – only attribute:

After selecting the disk, type “attributes disk clear readonly” and press Enter. This command will remove the write – protection attribute from the disk.

Note: Be very careful when using Diskpart commands, as incorrect usage can lead to data loss. Make sure you have selected the correct disk before performing any operations.

B. Through the Registry Editor

Warning:

Editing the registry can be a risky operation. Incorrect changes can cause serious system problems. It’s essential to back up the registry before making any modifications. You can do this by going to the “File” menu in Registry Editor and selecting “Export”.

Open Registry Editor:

Press the Windows key + R, type “regedit” and press Enter. Navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies.

If the “StorageDevicePolicies” key doesn’t exist, you may need to create it. Right – click on the “Control” key, select “New” -> “Key”, and name it “StorageDevicePolicies”.

Modify the WriteProtect value:

In the “StorageDevicePolicies” key, look for a value named “WriteProtect”. If it’s present and its data value is set to 1. double – click on it and change the value to 0. This will disable write protection.

After making the change, close Registry Editor and restart your computer for the changes to take effect.

IV. Software – Based Solutions for macOS

A. Using Disk Utility

Open Disk Utility:

You can find Disk Utility in the “Utilities” folder within the “Applications” folder. Alternatively, you can use Spotlight search by pressing Command + Space and typing “Disk Utility”.

Locate the micro SD card:

In Disk Utility, you’ll see a list of all the disks and volumes connected to your Mac. Look for the entry that corresponds to your micro SD card. It will usually be identified by its size and brand name.

Check and change permissions:

Select the micro SD card volume and click on the “First Aid” button. Disk Utility will check the disk for errors and may also fix any permission – related issues that could be causing write protection.

If the problem persists, you can try unmounting the volume (by clicking the “Unmount” button), and then remounting it. Sometimes, this simple process can clear any software – based write – protection flags.

V. Software – Based Solutions for Linux

A. Using the Command Line

Identify the device:

Open a terminal window. You can use the “lsblk” command to list all the block devices connected to your system. Look for the device that corresponds to your micro SD card. It’s usually identified by its size and the partition information.

For example, if your micro SD card is detected as /dev/sdb, you’ll use this device identifier in the following steps.

Check the read – only flag:

Use the “hdparm” command to check if the device is set to read – only. Type “hdparm – r /dev/sdb” (replace /dev/sdb with the actual device identifier of your micro SD card). If the output shows “readonly = 1”, it means the card is write – protected.

Disable the read – only flag:

To disable write protection, you can use the command “hdparm – r0 /dev/sdb”. This command sets the read – only flag to 0. allowing you to write to the card.

Note: You may need root (sudo) privileges to run the hdparm command, depending on your system configuration.

VI. Troubleshooting and Additional Considerations

A. Check for Device – Specific Software

Manufacturer – provided software:

Some micro SD card manufacturers provide their own software for managing and formatting the cards. For example, SanDisk has SanDisk Memory Zone, and Kingston has Kingston Format Utility. These programs may have options to disable write protection or diagnose and fix issues related to the card’s writeability.

Install and run the appropriate software for your micro SD card brand and follow the on – screen instructions to see if it can resolve the write – protection problem.

B. Check for Firmware Updates

Device firmware:

The device that you’re using the micro SD card with (such as a camera, smartphone, or tablet) may have firmware that affects the card’s write – protection settings. Check the manufacturer’s website for your device to see if there are any available firmware updates.

Updating the firmware can sometimes fix bugs or compatibility issues that could be causing the write – protection problem.

C. Test on Different Devices

Compatibility issues:

If the micro SD card still shows write protection after trying all the above methods, it’s possible that there’s a compatibility issue between the card and the device you’re using. Try inserting the card into a different device (such as another camera, a card reader connected to a different computer, etc.) to see if the write – protection problem persists.

If the card works fine on another device, it indicates that the original device may have a problem that needs to be further investigated, such as a faulty card slot or incorrect device settings.

About us and this blog

Panda Assistant is built on the latest data recovery algorithms, ensuring that no file is too damaged, too lost, or too corrupted to be recovered.

Request a free quote

We believe that data recovery shouldn’t be a daunting task. That’s why we’ve designed Panda Assistant to be as easy to use as it is powerful. With a few clicks, you can initiate a scan, preview recoverable files, and restore your data all within a matter of minutes.

Subscribe to our newsletter!

More from our blog

See all posts