- Support Center
- Multiple Languages
- Language
- Help Us Translate
Learn how to remove write protection from a USB drive step by step and easily fix the error using safe and effective methods.
A physical lock switch is the easiest cause to rule out and requires no Windows changes.
Registry Editor can help when write protection is caused by Windows settings or software restrictions.
DiskPart can clear a read-only disk attribute without normally deleting existing USB data.
Formatting is best used as a last resort because it erases all files stored on the USB drive.
Imagine spending hours preparing an important file, only to copy it to your USB flash drive and suddenly see the message “The disk is write-protected.” It can be frustrating, but fortunately, this problem is often fixable. If you’re wondering how to remove write protection from USB drive, this guide walks you through several practical solutions to unlock your USB and restore normal write access.
Common Causes: Hardware and Software
Physical lock switch: Some USB drives have a small switch that enables write protection and prevents files from being changed.
File system errors: Improperly disconnecting the drive or a sudden power outage can cause file system errors and trigger write protection. Similar Windows file problems may also require you to fix corrupted files in Windows 11.
Group Policy or Windows Registry: In some business or school environments, administrators may disable writing to USB devices to protect sensitive data.
Bad sectors: If the drive detects serious errors, it may switch to read-only mode to prevent further damage. If your PC is also experiencing unusually heavy disk activity, learn why disk usage is at 100% and what may be causing it.
Signs Your USB Is Write-Protected
Messages such as “The disk is write-protected” or “Access denied.”
You cannot copy, move, delete, or modify files, even though you can still open them.
The USB drive appears in File Explorer, but Windows does not allow you to make changes.
If you want to know how to remove write protection from USB drive, start with the simplest solution below and then move on to Windows settings if necessary.
Check the Physical Lock Switch
Before using commands or changing Windows settings, check the USB drive itself. Some flash drives have a small physical switch that enables or disables write protection.
To remove write protection from USB devices with a physical lock:
Disconnect the USB drive from your computer.
Move the switch to the unlocked position.
Reconnect the drive and try copying a file again.
If your drive has no physical switch, try the following methods to remove write protection in USB.
Modify the Windows Registry
Windows Registry settings can sometimes cause a USB drive to become read-only. Changing the WriteProtect value may help remove write protection from USB when the restriction is caused by Windows settings.
Step 1. Open Registry Editor.
Press Win + R, type regedit, and press Enter.
Step 2. Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
Step 3. If the StorageDevicePolicies key exists, select it. If not, create it:
Right-click Control > New > Key, then name it StorageDevicePolicies.
Step 4. Inside the key, find or create a DWORD (32-bit) Value named WriteProtect and set its value to 0.
Step 5. Close Registry Editor and restart your PC.
Step 6. Reconnect the USB drive and check whether you can write files to it.
Use DiskPart in Windows
DiskPart is a powerful built-in Windows tool that can clear the read-only attribute from a USB drive. If you’re searching for how to remove write protection from USB, this method is useful when the drive has been set to read-only at the disk level.
Step 1. Press Win + S, type cmd, right-click Command Prompt, and select Run as administrator.
Step 2. Start DiskPart:
diskpart
Step 3. List connected disks:
list disk
Check the disk size carefully to identify your USB drive.
Step 4. Select the USB drive:
select disk 1
Replace 1 with the correct disk number.
Step 5. View the disk attributes:
attributes disk
If the read-only status is enabled, continue to the next step.
Step 6. Clear the read-only attribute:
attributes disk clear readonly
Step 7. Exit DiskPart:
exit
Step 8. Disconnect and reconnect the USB drive, then try writing files to it again.
This method is one of the most common ways to remove write protection in USB when no physical lock is present.
If the previous methods fail and your data is not important, or you have already backed it up, formatting the drive may help remove write protection from USB drive storage caused by file system errors.
When All Else Fails
Back up your files: If you can still read the USB drive, save important files somewhere else.
Open This PC, right-click the USB drive, and select Format.
Choose a file system, such as FAT32, exFAT, or NTFS.
Select Quick Format and click Start.
When formatting is complete, try copying files to the USB drive again.
For broader Windows disk maintenance, you can also learn how to defrag a hard disk to keep an HDD organized and running efficiently.
For general PC maintenance, Advanced SystemCare can help clean unnecessary files and optimize Windows performance. It can be useful for keeping your system in good condition after resolving USB or storage-related issues.
If you need to know how to remove write protection from USB, the best approach is to start by checking the physical lock switch and then try Registry Editor or DiskPart. Formatting should only be used as a last resort because it erases your data.
In most cases, these methods can remove write protection from USB and restore normal access. If the problem continues after trying all four solutions, the USB drive may have a hardware fault and may need to be replaced.