
USB Write Protection — How to Fix "Disk Is Write Protected"
The error message "The disk is write protected" is one of the most common issues with USB drives and memory cards. Write protection prevents you from deleting files, copying new data, or formatting the drive. It can be triggered physically (by a hardware switch) or by software settings.
What Causes Write Protection?
Hardware causes:
- Physical damage to the drive
- Lock switch in the "locked" position (common on SD cards)
Software causes:
- Corrupted file system
- Virus or ransomware infection
- Windows system protection settings
- A value in the Windows Registry
Quick test: Try the drive on a different computer. If it works there, the problem is with your PC (drivers, settings). If it doesn't work anywhere, it's a hardware issue with the drive itself.
Method 1: Check the Physical Switch
Always start here — it's the most common cause.
USB flash drives:
- Unplug the drive
- Look for a small switch (usually labelled "Lock/Unlock")
- Slide it to the "Unlock" position
- Reconnect and try again
SD cards:
- Remove the card from the adapter or reader
- Find the switch on the left side of the card
- Slide it upward to unlock
- Check the adapter too — it may have its own switch
Method 2: Remove Protection Using Diskpart
Diskpart is the most effective tool for removing software-level write protection.
Open Command Prompt as Administrator:
- Press Windows + R
- Type
cmd - Press Ctrl + Shift + Enter
Enter these commands:
diskpart list disk select disk X(Replace X with your USB drive number — be careful to select the right one!)
Remove protection:
attributes disk clear readonly exitUnplug and reconnect the drive.
Method 3: Windows Registry Editor
If Diskpart didn't help, the problem may be in the Windows Registry.
Warning: Incorrect registry changes can cause system problems. Proceed carefully.
- Press Windows + R, type
regedit, press Enter - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies - If the folder doesn't exist, create it: right-click "Control" → New → Key → name it
StorageDevicePolicies - Create or edit the value
WriteProtect: right-click → New → DWORD (32-bit) → name itWriteProtect→ set value to 0 - Restart your computer
Method 4: Update Drivers
- Open Device Manager (Windows + X, then M)
- Expand "Disk drives"
- Right-click your USB drive → "Update driver"
Last Resort: Formatting
If none of the above methods work, formatting the drive may fix the write protection. Warning: formatting erases all data on the drive!
Only proceed with formatting if you've backed up all important files — or if the drive is empty.
When to Contact Professionals
Seek professional help if:
- The drive contains critically important data and no method works
- The drive shows signs of physical damage
- You're worried about losing data while trying to fix the drive yourself
Write protection is usually a solvable problem. But if it persists or you risk losing important data, contact us — we can help. The initial assessment is free, you receive a binding quote before any recovery work starts, and it's No Data, No Fee.