Have you ever tried copying files to your USB flash drive only to see the message:
"The disk is write protected. Remove the write protection or use another disk."
This is one of the most common USB errors in Windows. It prevents you from copying, deleting, formatting, or modifying files on your USB drive.
The good news is that this error is often caused by software settings rather than hardware failure. In many cases, you can fix it using built-in Windows tools such as DiskPart, Registry Editor, Disk Management, or even a simple physical switch on the USB drive.
In this guide, you'll learn the most effective methods to remove write protection from a USB drive in Windows 10 and Windows 11.
Important: If your USB drive contains important files, back them up before attempting repairs whenever possible.
Related Read: Learn more about USB recovery in our guide on How to Fix a Corrupted USB Drive Using DiskPart in Windows.
Table of Contents
What Does "The Disk Is Write Protected" Mean?
Write protection is a safety feature that prevents changes to a storage device. When a USB drive is write protected, Windows allows you to read files but blocks actions like:
- Copying new files
- Deleting existing files
- Formatting the USB drive
- Creating new folders
- Editing files
Common Causes
This error may occur because of:
- The USB has a physical write-protect switch.
- Windows has enabled read-only mode.
- DiskPart attributes are set to Read-only.
- Registry settings are corrupted.
- File system corruption.
- USB controller issues.
- Hardware failure.
8 Methods to Remove Write Protection
Method 1: Check the Physical Write-Protect Switch
Some USB drives and SD card adapters include a small lock switch.
- Remove the USB drive.
- Look for a switch labeled Lock.
- Move it to the unlocked position.
- Reconnect the USB drive.
If your USB doesn't have a physical switch, continue to the next method.
Method 2: Remove Write Protection Using DiskPart
DiskPart is one of the easiest ways to remove software-based write protection.
Step 1: Open Command Prompt as Administrator
Search for cmd, right-click Command Prompt, and choose Run as administrator.
Step 2: Start DiskPart
diskpart
Step 3: List All Disks
list disk
Find your USB drive by checking its size.
Step 4: Select the USB Drive
select disk 1
(Replace 1 with your actual USB disk number.)
Step 5: Check Disk Attributes
attributes disk
If Current Read-only State : Yes appears, continue to the next step.
Step 6: Clear Read-Only Attribute
attributes disk clear readonly
If successful, DiskPart will display: Disk attributes cleared successfully. Reconnect the USB drive and test it.
Method 3: Format the USB Using DiskPart
If clearing the read-only attribute doesn't help, recreate the partition. Warning: This erases all data.
Run the commands below one by one:
diskpart
list disk
select disk 1
clean
create partition primary
format fs=exfat quick
assign
exit
Method 4: Use Registry Editor
If Windows itself is forcing write protection, edit the registry.
- Press Windows + R
- Type
regeditand press Enter. - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies - Find WriteProtect.
- Set its value to
0. - Restart your computer.
If the StorageDevicePolicies key doesn't exist, Windows isn't applying registry-based write protection.
Method 5: Check Disk Management
- Press Windows + X
- Open Disk Management.
If the USB appears as RAW, Unallocated, or Offline, right-click to create a new partition or bring the disk online if available.
Method 6: Scan for File System Errors
Open Command Prompt as Administrator and run:
chkdsk E: /f
(Replace E: with your USB drive letter.) Windows will repair logical file system errors automatically.
Method 7: Try Another USB Port
Sometimes the issue isn't the USB drive itself. Try:
- Another USB port directly on the motherboard.
- Another computer.
- A USB 2.0 port instead of USB 3.0.
- Removing external USB hubs.
Method 8: Update USB Drivers
- Open Device Manager.
- Expand Universal Serial Bus Controllers.
- Right-click your USB device.
- Choose Update Driver or Uninstall Device.
- Restart Windows.
Windows will automatically reinstall the driver upon reboot.
When None of These Methods Work
If every method fails, your USB drive may have entered permanent read-only mode. This usually happens when:
- Flash memory has worn out.
- The USB controller detects failing memory.
- Hardware damage has occurred.
Unfortunately, software cannot repair physical hardware failure. Replacing the USB drive is often the only solution.
Frequently Asked Questions
Why does my USB suddenly become write protected?
Common reasons include corrupted file systems, failing flash memory, registry settings, DiskPart attributes, or a physical lock switch.
Will formatting remove write protection?
Only if the problem is software-related. If the USB controller has permanently locked the drive due to hardware failure, formatting won't help.
Does DiskPart always fix write protection?
No. DiskPart works only for software-based read-only attributes. It cannot repair physical hardware faults.
Can viruses cause write protection?
Yes, some malware changes storage permissions or registry settings. Running a full antivirus scan is recommended if the problem appeared unexpectedly.
Final Thoughts
"The Disk Is Write Protected" error can be frustrating, but in most cases, it's fixable without installing third-party software.
Start with the simplest checks, such as looking for a physical lock switch and using the attributes disk clear readonly command in DiskPart. If that doesn't solve the issue, recreate the partition, check the Windows registry, scan the file system, or update your USB drivers.
If none of these methods work and the USB remains permanently read-only, the flash memory has likely reached the end of its lifespan. In that case, replacing the USB drive is the most practical solution.
By following the steps in this guide, you'll be able to diagnose the cause of the error and restore most write-protected USB drives back to normal operation.
