USB Drive Write Protected in Windows 11? 8 Safe Fixes


You plug in a flash drive, try to copy a file, and Windows says The disk is write-protected. A USB drive write protected error means you can usually open your files, but you cannot add, change, delete or format anything.
Do not format the drive yet. Formatting erases everything on it. The eight fixes below start with the safest and quickest. Fixes 1 to 7 change settings only, and you choose any file you delete in Fix 3. Formatting only comes last, after your files are safe. For more help with common PC problems, see our PC repair guides.
First: Copy Your Files Somewhere Safe
A write-protected drive can still be read in most cases. So before you change any settings, copy the files you care about to your PC.
If the drive is the only copy of something important, treat it as fragile. Our guide on how to back up your Windows PC shows safe ways to keep a second copy.
Quick Check: What Kind of Problem Is It?
The message looks the same, but the cause can differ. This table helps you pick a starting point.
| What you see | Likely cause | Start at |
|---|---|---|
| Drive has a small slider | Physical lock switch | Fix 1 |
| Only one file or folder fails | Read-only attribute | Fix 2 |
| Message appears on a work or school PC | Security policy or BitLocker | Fix 4 |
| Drive worked before and fails everywhere | Disk flag or a worn drive | Fixes 6 to 8 |
Fix 1: Check the Lock Switch and Try Another Port
Some flash drives and many SD card adapters have a small slider on the side. If it is in the lock position, Windows treats the drive as read-only.
- Unplug the drive.
- Look for a slider or switch on its side. Slide it to the unlocked position (usually away from the lock symbol).
- Plug the drive into a different USB port, directly into the PC rather than a hub.
- Try copying one small file.
If Windows does not show the drive at all, you have a different problem. See how to fix ‘USB Device Not Recognized’ instead. SD cards have a lock switch too, and if one does not show up in Windows at all, see SD card not showing up in Windows 11.
Fix 2: Rule Out a Read-Only File or Folder
Sometimes the drive is fine and only one item is marked read-only. If you can copy other files but not one particular file, check it. If Windows says you need permission to perform this action, that is a different problem, see fix you need permission to perform this action.
- Right-click the file or folder and choose Properties.
- Under Attributes, clear the Read-only box.
- Select Apply, then OK.
For a folder, Windows may show a square instead of a tick. That is normal and does not always mean the folder is locked.
Fix 3: Check for a Full Drive or a File Size Limit
A full drive or a very large file can fail with an error that looks like write protection.
- Open This PC and look at the free space under the drive.
- If it is nearly full, delete only files you have already copied somewhere else, then empty the Recycle Bin on the drive if it has one.
- Right-click the drive, choose Properties and check the File system. A FAT32 drive cannot hold a single file larger than 4 GB.
If the file system is FAT32 and your file is bigger than 4 GB, copy your files off and plan to reformat the drive as exFAT or NTFS later (see Fix 8). Do not format it yet. To compare these formats, see how FAT32, exFAT and NTFS differ.
Fix 4: Check BitLocker and Work or School Rules
Windows can make a drive read-only on purpose.
- BitLocker: If the drive was encrypted, Windows asks for a password or recovery key. Unlock it first, then try again.
- Security policy: Some work and school PCs use a rule called Deny write access to removable drives not protected by BitLocker. If your PC is managed by an organisation, ask the person who runs it. Changes you make yourself may be undone the next time the policy refreshes.
If it is your own PC and you never set up encryption or a policy, move on to the next fix.
Fix 5: Scan the Drive With Windows Security
Some malware sets drives to read-only or hides files. A scan is quick and safe.
- Open Windows Security from the Start menu.
- Select Virus & threat protection, then Scan options.
- Choose Custom scan, then Scan now, and pick your USB drive.
If it finds a threat, follow the steps in how to remove a virus or malware from a Windows PC.
Fix 6: Check the Registry Write-Protect Value
This fix changes a Windows setting, so go slowly. You only edit a value that already exists. If the key below is missing, skip this fix. Registry Editor needs an administrator account. Do not use a registry cleaner to make this change; see why registry cleaners are not the fix.
- Press Windows + R, type
regeditand press Enter. - Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. - Before you change anything, right-click the StorageDevicePolicies key, choose Export and save the file as a backup.
- If you see a value named WriteProtect set to 1, double-click it and change it to 0.
- Close Registry Editor, restart the PC and test the drive again.
Warning: Do not create the key or delete other values. If WriteProtect is already 0 or missing, this is not the cause.
Fix 7: Clear the Disk Read-Only Flag With Diskpart
Windows can mark a whole disk as read-only. The Diskpart tool can clear that flag without erasing files. The risk is choosing the wrong disk, so check the size before you continue.
- Right-click Start and choose Terminal (Admin) or Command Prompt (Admin).
- Type
diskpartand press Enter. - Type
list diskand press Enter. Find your USB drive by its size. Your main drive is usually Disk 0, so do not pick that one. - Type
select disk 2, using your drive’s number instead of 2, and press Enter. - Type
attributes diskto see the current state. If it says Current Read-only State : Yes, continue. If it says No, the disk is not flagged read-only: typeexitand go to Fix 8. - Type
attributes disk clear readonlyand press Enter. - Type
exit, unplug the drive and plug it back in.
If the drive turns read-only again after a few days, it is probably failing. Treat it as Fix 8 describes.
Warning: Never type clean in Diskpart on a drive that holds files. That command erases the drive. Microsoft explains the command on its attributes disk page.
Fix 8: Suspect a Worn or Failing Drive, Then Format Last
Some flash drives switch to read-only on their own when their memory wears out. This protects the data that is still there, but it can be a sign that the drive is nearing the end of its life.
Signs of a failing drive:
- The error comes back after you clear it.
- The drive is write protected on every PC you try.
- Files are slow to open or go missing.
- The drive shows the wrong size.
If this sounds familiar, do these in order:
- Copy every file you want to a safe place, such as your PC or cloud storage.
- For an external hard drive or SSD, check its health using how to check your hard drive or SSD health.
- Only when your files are safe, right-click the drive in File Explorer and choose Format. Pick exFAT for use on both Windows and Mac, or NTFS for Windows only.
- If Windows still refuses to format it, or asks you to format a drive you have not copied yet, stop. Read what to do when a USB drive says you need to format the disk first.
If the drive still cannot be written to after all this, replace it. A new flash drive costs much less than losing your files.
When a USB Drive Write Protected Error Needs a Professional
Consider a data recovery service if:
- The drive holds files you cannot replace and you could not copy them.
- It makes clicking or grinding sounds (an external hard drive).
- It has been dropped, wet or overheated.
Stop plugging the drive in and out. Each attempt can make recovery harder.
Frequently Asked Questions
Can I remove write protection without losing files? Yes. Fixes 1 to 7 only change settings. The only files removed are ones you choose to delete in Fix 3. Formatting is the only fix here that erases the whole drive.
Is it safe to edit the registry? It is safe if you back up the key first and change only the value named in Fix 6. Skip it if you are unsure.
Why does the drive let me delete files but not copy new ones? The most common cause is a full drive or the FAT32 file size limit. See Fix 3.
Is a write-protected drive always infected? No. A lock switch, a policy or a worn drive are common causes. Malware is possible, but a quick scan costs nothing.
Final Thoughts
A write-protected USB drive is usually a setting, not a broken PC. Start with the lock switch, work through the checks in order, and copy your files off early. Format only when your files are safe.