USB or disk becomes read-only and cannot be saved
If you have the “disk read-only” symptom, physical lock switches, file system errors, etc. can be considered as possible causes. Step 1: Check in order, starting with ‘Checking the write lock switch of the SD card or USB memory.’
First, check that this guide matches your problem
Do you have these symptoms?
- Disk read-only
- write protected
- Can't delete files
- Write-protected
Common causes
- Physical lock switch
- File system error
- Drive protection status
How to fix
5 steps, 36 min–1 hr 16 min in total. The easiest checks come first, so stop as soon as the problem is fixed.
SD cards and some USB drives have a physical write-lock switch. If it is in the lock position, writing is blocked regardless of Windows settings.
- Check that the small switch on the side of the SD card is pushed up, away from LOCK. If you use a microSD card in an adapter, check the adapter's switch.
- A loose switch can slide when you insert the card into the reader, so compare with a different card reader or adapter too.
- Check whether the USB drive has a lock switch on its body.
What to check
If you can save after releasing the switch, the problem is solved. If there is no switch, or it is released but the drive is still write-protected, check the diskpart attributes.
Did this step fix it?
When a disk or volume carries a read-only attribute, File Explorer just shows it as write-protected with no reason. diskpart lets you see the attribute and clear it directly.
- Run diskpart in an administrator Command Prompt and check disk numbers with list disk. Identify the target drive precisely by its size.
- Enter select disk followed by the number, then attributes disk, and see whether Current Read-only State is Yes. If so, run attributes disk clear readonly.
- Find the volume number for that drive letter with list volume, then run select volume followed by the number and attributes volume clear readonly.
- Choosing the wrong number changes a different disk, so double-check before select, and do not use the clean command, which erases data.
What to check
If you can save after clearing the attribute, the problem is solved. If it will not clear or comes back, check the policy and registry settings. If the attribute was No from the start, look at steps 3 and 4.
Did this step fix it?
If the WriteProtect registry value or a deny-write group policy is on, every USB storage device plugged into this PC becomes read-only. If the drive works on other PCs, this is the likely cause.
- Press WinR, enter regedit and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. If the key does not exist, this setting does not apply.
- If WriteProtect is 1, change it to 0 and restart the PC. Before editing the registry, back it up with File → Export.
- On Pro or higher editions, open
gpedit.msc→ Computer Configuration → Administrative Templates → System → Removable Storage Access and check whether Removable Disks: Deny write access is Enabled. - On a company PC this may be blocked on purpose by security policy, so ask your IT staff instead of changing it yourself.
What to check
If you can save after changing the value or policy, the problem is solved. If the drive is read-only on other PCs as well, the problem is with the drive rather than PC settings, so check its file system.
Did this step fix it?
Unplugging without safe removal or a power cut can damage the file system so that Windows blocks writes. Repair tools change the file system, so copy your files first while they can still be read.
- First copy the important files on the drive to the PC or another storage device.
- In File Explorer, right-click the drive → Properties → Tools → Error checking → Check, or run chkdsk E: /f in an administrator Command Prompt (E being the drive letter).
- If only certain files cannot be modified, check whether Read-only is ticked in those files' properties.
What to check
If writing works after the check, use safe removal before unplugging from now on. If the check fails or the drive stays write-protected after all the earlier steps, suspect the drive's own protection state.
Did this step fix it?
A worn-out USB drive or SD card, or an SSD with many accumulated errors, may have its controller switch itself to read-only to protect the data. This state often cannot be undone through settings.
- Check whether the drive is read-only on another PC too. If it is the same everywhere, the drive's own state is the likely cause.
- For an SSD, check its health, remaining life and warnings with the manufacturer's tool or CrystalDiskInfo.
- While it can still be read, move all files to another storage device and replace the drive with a new one. Repeated formatting can lose even the remaining data.
What to check
If it is read-only on other PCs too and shows health warnings, replacing it is the right call. If it is under warranty, ask the manufacturer about an exchange.
Did this step fix it?
Cautions
If you suspect a storage device error, back up important data before recovery. If there are SMART warnings or repeated recognition failures, it is safer to not continue using it.
Frequently asked questions
Related problems
If the symptoms do not match exactly, please check the issue below.