You plug in a USB flash drive, open a folder, and try to copy a file. Instead of a progress bar, Windows tells you, “The disk is write-protected,” or “You need permission to perform this action.” Sometimes there’s no error at all: you can open and read everything, but you can’t save, rename, or delete anything. This is the read-only drive problem, and it affects USB flash drives, external hard drives, SD cards, and sometimes internal partitions on both Windows 10 and Windows 11.
The causes vary. A drive can be read-only because of a physical lock switch, a corrupted file system, a registry or group policy setting, a permissions problem, BitLocker encryption, or malware. In the worst case, the drive’s hardware is failing, and its controller has locked it to protect your data. The good news is that most cases can be fixed without special software, and the fixes below go from simplest to most involved.
Before you begin, back up anything important if you can still read the drive. Some of the later methods, especially formatting, erase data. Work through the methods in order, testing after each one by trying to create a new folder on the drive.
Method 1: Check the Basics First
Start with the fixes that take under a minute, because they solve more cases than you’d expect.
Check for a physical write-protect switch. Many SD cards and some older USB drives have a small lock slider on the side. If it’s in the “Lock” position, Windows treats the drive as read-only. Slide it to the unlocked position and reinsert the card. An SD card in an adapter can also be locked by the adapter’s own switch.
Try a different port and cable. Unplug the drive and connect it to another USB port, preferably one directly on the computer rather than a hub or front-panel extension. For external hard drives, swap the cable. A flaky connection can cause write errors that Windows interprets as a protection state.
Test on another computer. If the drive is read-only on a second PC too, the problem is on the drive itself. If it works normally there, the problem is in your Windows settings, and Methods 4 to 7 are the most likely fixes.
Restart your PC. A reboot clears stuck driver states and pending file system locks.
Method 2: Check and Fix Permissions
If the drive is formatted as NTFS, permissions can block you from writing even though the drive isn’t truly write-protected. This is common with a drive that was previously used on another PC or user account.
- Open File Explorer, right-click the drive, and choose Properties.
- Go to the Security tab and click Edit.
- Select your user name (or Users) in the list. If it isn’t there, click Add, type your account name, and click Check Names.
- In the permissions box, tick Full control under Allow.
- Click Apply, then OK.
If you can’t change permissions, you may need to take ownership first:
- In the Security tab, click Advanced.
- Next to Owner, click Change.
- Type your Windows user name, click Check Names, then OK.
- Tick Replace owner on subcontainers and objects, then click Apply.
- Return to the Security tab and grant yourself Full control as above.
This process can take several minutes on a large drive. Be careful not to use it on your Windows system drive (usually C:), where changing ownership can cause problems.
Method 3: Remove the Read-Only Attribute with DiskPart
A drive or volume can carry a read-only attribute that Windows respects until you clear it. DiskPart, the built-in command-line disk tool, can remove it.
- Click Start, type cmd, right-click Command Prompt, and choose Run as administrator.
- Type
diskpartand press Enter. - Type
list diskand press Enter. Identify your drive by its size. - Type
select disk X, replacing X with the number of your drive. Double-check this step. Selecting the wrong disk and running later commands could affect the wrong drive. - Type
attributes diskto see whether “Current Read-only State” says Yes. - Type
attributes disk clear readonlyand press Enter. - If the volume itself is read-only, type
list volume, thenselect volume Y(using your volume number), and runattributes volume clear readonly. - Type
exitto close DiskPart.
You should see the message “Disk attributes cleared successfully.” Unplug the drive, plug it back in, and test it.
Method 4: Edit the Registry (WriteProtect Value)
Windows has a registry setting that can put all USB storage into read-only mode. It’s sometimes set by security software, an administrator, or malware.
Warning: Editing the registry incorrectly can cause system problems. Create a restore point or back up the registry before you change anything.
- Press Win + R, type
regedit, and press Enter. Click Yes at the UAC prompt. - Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies - If the StorageDevicePolicies key doesn’t exist, the setting isn’t the cause, and you can skip this method.
- In the right pane, double-click WriteProtect.
- Change the Value data from 1 to 0, and click OK.
- Close the Registry Editor, restart your PC, and reconnect the drive.
A value of 1 means write protection is on; 0 means it’s off. If the value keeps flipping back to 1, something on your system is changing it, which is a good reason to run the malware scan in Method 8.
Method 5: Check Group Policy (Windows Pro, Enterprise, and Education)
On Windows editions that include the Local Group Policy Editor, an administrator policy may be denying write access to removable drives. This is common on work or school computers, or on PCs that were once managed by an organization.
- Press Win + R, type
gpedit.msc, and press Enter. - Go to Computer Configuration > Administrative Templates > System > Removable Storage Access.
- Look for Removable Disks: Deny write access.
- Double-click it and set it to Not Configured or Disabled.
- Click Apply and OK, then restart.
Windows Home doesn’t include this editor, so Home users should rely on the registry method above. If your device is managed by an employer or school, you may not be allowed to change this setting, and you should ask your IT department.
Method 6: Disable BitLocker or Unlock the Drive
If BitLocker encrypted the drive and it hasn’t been unlocked correctly, Windows may mount it as read-only or block access completely. A drive encrypted on another PC can behave this way.
- Open File Explorer and look for a padlock icon on the drive.
- Double-click the drive and enter your password or recovery key to unlock it.
- To remove encryption, open Control Panel > System and Security > BitLocker Drive Encryption.
- Find the drive and click Turn off BitLocker.
Decryption can take a while depending on the drive’s size. Don’t disconnect the drive while it’s decrypting. If you’ve lost both the password and the recovery key, the data cannot be recovered, and formatting is the only way to reuse the drive.
Method 7: Turn Off Controlled Folder Access and Fast Startup
Two Windows features can cause a drive to behave as read-only without really being write-protected.
Controlled Folder Access is a ransomware protection feature in Windows Security. It can block apps from writing to protected locations.
- Open Windows Security > Virus & threat protection.
- Under Ransomware protection, click Manage ransomware protection.
- Turn Controlled folder access off, or allow your app through it.
Fast Startup can leave an NTFS drive in a “hibernated” state, especially one shared with another operating system in a dual-boot setup. When the file system is flagged as not cleanly unmounted, Windows or Linux may mount it read-only.
- Open Control Panel > Power Options > Choose what the power buttons do.
- Click Change settings that are currently unavailable.
- Untick Turn on fast startup (recommended) and save changes.
- Shut down fully, then reconnect the drive.
Method 8: Scan for Malware
Some malware sets drives to read-only to prevent you from removing infected files, or edits the registry values described above. If your drive became read-only suddenly, or if the WriteProtect value keeps returning, scan for malware.
- Open Windows Security > Virus & threat protection.
- Click Scan options, choose Microsoft Defender Antivirus (offline scan) or Full scan, and click Scan now.
- Follow any prompts to remove threats.
You can also scan the external drive itself by right-clicking it in File Explorer and selecting Scan with Microsoft Defender. After cleaning, repeat Methods 3 and 4, since malware may have changed those settings.
Method 9: Repair File System Errors with CHKDSK
Corrupted file systems are a leading cause of read-only drives. When Windows detects errors, it may mount a volume read-only to prevent further damage. CHKDSK can repair many of these errors.
- Open Command Prompt as administrator.
- Type the following, replacing E: with your drive letter:
chkdsk E: /f /r - Press Enter and wait. The
/fswitch fixes errors, and/rlocates bad sectors and recovers readable data. A full scan can take a long time on large drives.
You can also use the graphical version: right-click the drive, choose Properties > Tools > Check, and run the scan.
If CHKDSK reports many bad sectors or can’t complete, the drive may be failing. Copy your data off immediately.
Method 10: Update or Reinstall the Drive Driver
An outdated or corrupted driver can cause strange behavior, including read-only mounting.
- Right-click Start and choose Device Manager.
- Expand Disk drives.
- Right-click your drive and choose Update driver > Search automatically for drivers.
- If that doesn’t help, right-click the drive and choose Uninstall device.
- Unplug the drive, restart your PC, and plug the drive in again. Windows reinstalls the driver automatically.
You can also expand Universal Serial Bus controllers and uninstall any USB Mass Storage Device entries, then reconnect the drive.
Method 11: Format the Drive (Last Resort)
If nothing else works and the drive has no hardware fault, formatting often clears the problem by building a fresh file system. This erases everything on the drive, so copy off whatever you can first.
- Open File Explorer, right-click the drive, and choose Format.
- Choose a file system:
- NTFS for Windows-only use and large files.
- exFAT for sharing between Windows and Mac, and for most flash drives and SD cards.
- FAT32 for maximum compatibility, with a 4 GB single-file limit.
- Tick Quick Format and click Start.
If Windows refuses to format the drive, open Disk Management (right-click Start and select it), right-click the volume, and choose Format. If that fails too, use DiskPart’s clean command, which wipes the partition table. Select the correct disk carefully, then run clean, create partition primary, and format fs=ntfs quick (or fs=exfat).
If the drive goes read-only again after a successful format, it’s likely failing. USB flash drives and SD cards often switch themselves to read-only when their memory cells wear out. At that point, replace the drive.
Conclusion
A read-only drive is frustrating, but it’s rarely a sign that your data is lost. Most cases come down to a handful of causes: a physical lock switch, a permissions problem, a read-only attribute, a registry or policy setting, BitLocker, or file system corruption. Working through the methods in order, from the quick checks to DiskPart, the registry, CHKDSK, and finally a format, resolves the issue in the great majority of cases.
If the problem returns after you’ve fixed it, treat that as a warning. Repeated read-only behavior often means the drive’s hardware is wearing out, and the safest response is to back up your files and replace it. Regular backups, safe ejection before unplugging, and avoiding sudden power loss will reduce the chances of it happening again.
Frequently Asked Questions
1. Why does my USB drive say “The disk is write-protected” when there’s no switch?
Without a physical switch, the protection usually comes from software or the drive itself. The most common causes are a read-only attribute set on the disk, the WriteProtect registry value set to 1, a Group Policy that denies write access to removable disks, or file system errors that made Windows mount the drive read-only. If none of those apply, the drive’s controller may have locked it because of hardware wear. Try DiskPart and the registry fix first, then test the drive on another computer.
2. Will fixing a read-only drive delete my data?
Most methods won’t touch your files. Changing permissions, clearing the read-only attribute in DiskPart, editing the registry, adjusting Group Policy, and disabling Controlled Folder Access leave your data intact. Running CHKDSK usually preserves your files too, although it can occasionally remove corrupted data. Formatting and DiskPart’s clean command do erase everything. If your drive is still readable, copy your important files elsewhere before trying anything risky.
3. Can I fix a read-only SD card the same way as a USB drive?
Mostly yes. First check the physical lock switch on the side of the card, since that’s the most common culprit. If the switch is unlocked, the same software methods apply: DiskPart, registry, CHKDSK, and formatting. SD cards used in cameras should be reformatted in the camera afterward for the best compatibility. If the card becomes read-only again, it’s probably at the end of its life, because flash memory has limited write cycles and cards often lock themselves when they fail.
4. Why does my internal drive or partition show as read-only in Windows 11?
Internal partitions can be read-only for several reasons: restrictive NTFS permissions after a Windows reinstall or user account change, a partition that’s flagged as read-only in DiskPart, a dirty file system caused by Fast Startup or an improper shutdown, or BitLocker encryption in a locked state. Start by checking the Security tab for your permissions, then run attributes volume in DiskPart and a CHKDSK scan. Avoid taking ownership of the system drive itself, since that can break Windows components.

