We experience many times that some USB drives or SD cards get enabled with write protection and don’t allow to write data. Some USB drives and memory cards have physical switch which could turn ON and OFF the write protection. But sometimes it happens that USB drive or SD card refuse to format or write any data even though there is no switch on it or the switch is set correctly to let the device to be written to.
You can remove the write protection from USB Flash drive or SD card by using one of these two methods:
Method 1: DiskPart (Command Prompt)
- Open Command Prompt: Start -> Search Bar -> Type CMD and Press Enter
- Type diskpart (Another Command Prompt Window will open)
- Type List Disk (It will show the disks attached with the computer)
- Type Select Disk # (In my case, 1 is the number of USB Drive 14GB attached with my computer)
- Type Attributes Disk (It shows the disk attribute. You can see Read-only: Yes)
- Type Attributes Disk Clear Readonly (It will disable the read-only mode)
- Type Exit and press Enter to exit the diskpart.
Method 2: Registry Editor
- Open Run, type regedit and press Enter, it will open the registry editor.
- Navigate to the following path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
Note: If you can’t find the key StorageDevicePolicies, please go to step 5.
- Double click the key Write Protect in the right pane and set the value to 0 in the Value Data Box and click OK button.
- Exit Registry Editor and reboot the computer.
PS: If you couldn’t find the key StorageDevicePolicies in Step 2, create it manually by following these steps.
- Right Click on HKEY_LOCAL_MACHINE\SYSTEM\CurrrentControlSet\Control and select New -> Key.
- Enter the name StorageDevicePolicies.
- In the left pane, select new registry key StorageDevicePolicies and on the right pane right click on the blank area, select New -> DWORD and name it WriteProtect.
- Double click on it (WriteProtect) and set its value to 0.
- Exit Registry Editor and restart the computer.
If you like this tutorial, please comment below and share with others.