Removing Write Protection from a USB Drive
Step-by-Step Guide
1. Check for Physical Lock
Some USB drives have a lock switch. Ensure it is in the 'unlocked' position.
2. Remove Write Protection via Command Prompt
- Open Command Prompt as Administrator.
- Type the following commands, pressing Enter after each:
diskpart
list disk
select disk X (Replace X with your USB drive number)
attributes disk clear readonly
exit
- Try formatting the USB again.
3. Edit Windows Registry (Advanced Users)
- Open Registry Editor (type 'regedit' in Run or Start).
- Navigate to:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
- Right-click 'Control' and create a new key named 'StorageDevicePolicies'.
- Open this key, right-click, and create a new DWORD named 'WriteProtect'.
- Set the value to 0.
4. Restart
After completing these steps, restart your computer and try formatting the USB drive again.