SD cards are commonly used in Android devices, digital cameras and many other 3C products. When SD cards are write-protected, you can only read what's inside but not able to add more files in it. How to write files to write-protected SD cards again? We provide 2 solutions on this: using diskpart command line to clean SD card and reformat; using third-party software Partition Expert to wipe SD card and initialize it again.
You can run diskpart command prompt by the following methods:
OK, when your opened diskpart, type the following commands in order:
Now you have a clean SD card with nothing in it, the space becomes unallocated, so you format it and reuse it again. Just run disk management, the build in tool in Windows 10, and right-click unallocated space, follow the guide wizard.
This time you can write files to write-protected SD card again, but if you want to erase everything in this card, you can do like this: 1. List disk > 2. Sel disk 1 > 3. clean all; now have an empty card, you have to initialize it and format it again for later use.
Check what the definition of Clear command from Microsoft is:
Clears the specified attribute (hidden, read-only, nodefaultdriveletter, or shadowcopy volume) from the selected volume.
The command clean all is quick but data can still be recovered from professionals, if you want to give your SD card to other or just donate it, clean is not enough, you need to wipe everything out, to protect your personal information. Here are the steps to wipe SD card when write-protected:
Wipe disk theory: rewrite each sector with zero, one, or zero&one, or other methods, which makes recovery imposable. In this way, you get a RAW SD card, which must be initialized before use.Download Partition Expert to Wipe SD Card