How to Unlock a Write Protected Memory Card?

I get the message “The disk is write-protected“ when copying files or formatting a device. What can be done in such a situation?

Hi @NoelRichardson ,

Have you checked our knowledge base articles?
(Get Support for Your SSDs and Flash Products | SanDisk)

Try these

Have you opened a Support Case?
If not, contact SanDisk Technical Support for assistance.
(Contact Support | SanDisk)

Hi,
Yes, I opened a Suport Case.
But, I have already solved this problem.
I recover my memory card using the command prompt and the Diskpart command using the example described in this article: How to Unlock a Write-Protected USB Drive, Memory Card, or a Hard Disk

If your SD card is write-protected, try unlocking the SD card physical switch, or use the Diskpart command, gpedit.msc, or regedit utility to remove write protection from the SD card. But often, removing write-protection from SD card, makes it susceptible to virus/ malware attacks or corruption, resulting in loss of data. You can refer this article to unlock a write-protected memory card.

In this case, you can read data from the memory card, but you cannot save, delete, or modify any files on it. Therefore, you need to take some steps to remove the write protection on your memory card. The simplest method is to check the physical write protection switch. You just need to toggle it to the unlocked position. For more solutions, take a minute to read to this full guide:

You can use the Diskpart command to fix the issue. This option clears the read-only attribute of your drive to make it writable. This works for your internal drives, external drives, USB drives, and even SD cards:

    1. Press Windows + R keys and type cmd in the box that opens. This will launch Command Prompt.
    1. Type diskpart in the Command Prompt window and press Enter.
    1. Type list disk and press Enter to view the available disks.
    1. Type select disk 2 and hit Enter. Replace 0 with the write-protected device number.
    1. Type attributes disk clear readonly and hit Enter.
    1. Once you finish writing protection removal, type exit to quit Diskpart.

After this, restart your PC and check if you can access and use the saved data on your USB or hard drive again.
For more detailed info refer to this post: