In general, write protection (also known as read-only) is the ability of a data storage device to prevent new data from being written or old information from being modified. In other words, you can read the information stored on disk, but you can't delete, change, or copy it because access is denied. So how to format an SD card with write protection?
Some SD cards will have a physical write protection switch on the side or bottom to quickly turn on or off the read and write protection of the SD card to prevent the stored data from being invaded and modified by malware or viruses. So please carefully check if there is a physical write protection switch on your SD card, if there is a physical write protection switch, if there is one, make sure to move it to the unlocked position, if not, then please continue to look at the next method.
Sometimes, if there is an error in your SD card it can also lead to write protection. So what should I do if the SD card write protection cannot be formatted at this time? The chkdsk command in the command prompt is actually a viable solution that can help us check and fix errors found on the SD card.
Step 1Enter in the search boxcmdand run the command prompt as an administrator.
Step 2Inputchkdsk f: /f /r /xThen pressenterkey to execute.
Step 3Wait for the execution to finish, and then reformat it again to see if the problem is resolved.
Command Prompt is a very useful program in the built-in tools of the Windows system, which is capable of completing a wide variety of computer tasks with just a few short lines of commands. For example, in this article, it is also a very good workaround for the SD card not formatting due to write protection, because we can use the command line to remove the write protection attribute of the SD card and format it.
Step 1Enter in the search boxcmdand run the command prompt as an administrator.
Step 2Enter the following commands in turn and press them once after each line of commandsenterkey execution.
diskpart
list disk
select disk #refers to the drive letter of your write-protected SD card).
attributes disk clear readonly(This command clears the write-protected properties of the disk, the following is the formatting command).
clean
create partition primary
format fs=ntfs quick(If you want to format it to fat32, you can also change NTFS to fat32).
exit
What if you still find that the SD card write protection won't format after trying the above methods? You can also modify the numeric data in the registry editor to disable the disk write-protect property. Please review it carefully and follow it step by step.
Step 1Presswin+rInputregeditand pressenterkey to open the registry editor.
Step 2Please navigate step by step to find the following path:
computer\hkey_local_machine\system\currentcontrolset\control\storagedevicepolicies
Step 3Double-clickwriteprotectRemove numeric data fromChange toand click againOKThe SD card format operation can be performed normally.
If you don't find the folder named StorageDevicePolicies in this path, don't worry? You can create one of your own and follow the steps above.
Step 1Right-clickcontrolSelectNew > ItemAnd named itstoragedevicepolicies
Step 2Right-clickstoragedevicepoliciesand selectNew, then the 32-bit system selects the parameter dword (32-bit) value, and the 64-bit system selects the qword (64-bit) value, and then names itwriteprotectCan.
The above is the solution to the solution that the write protection of the SD card cannot be formatted, if you also encounter this problem, you can refer to the introduction in the article to operate.