Jun 03, 2026 • Filed to: Answer Hard Drive Problems • Proven solutions
A removable disk is very handy for when you want to store large files if you do not want to overload your PC's memory. Flash sticks, external hard drives, SD cards, and DVDs are some of the prime examples of such devices. These are detected by the computer automatically, but some issues might affect these devices, causing them to become unreadable or not be writable.
Disk Write Protected Error
When you see the error prompt "the disk is write protected" as soon as you plug in a peripheral storage device, this means that you cannot write or format the disk until this problem is solved. This usually happens in Windows version 7, 8, 8.1, and the latest Windows 10.
More related: How to Fix “The Media Is Write Protected” in Windows 10/11 Easily

One common cause that some users overlook is a switch the device may have that turns on write protection. If the storage device is full, you may also encounter this issue. These are pretty easy to solve, but some cases are a bit more complicated. For example, this error may be caused by bad partitions within the drive, or security is breached by a malware attack.
Since you will not be able to access the removable disk, you need to be able to undo the write protection before you can use it again.
| Device Type | Likely Write-Protection Cause | Recommended Fix |
| SD / MicroSD Card | Physical lock switch or dirty contacts. | Tip 1 (Physical Switch) |
| USB Flash Drive | Registry restriction or BitLocker. | Tip 2 & 3 (Registry/Diskpart) |
| External HDD/SSD | Permission settings or Disk Errors. | Tip 4 & 8 (Permissions/Bad Sectors) |
| Corporate Laptop | Group Policy (GPO) Security. | Tip 2 (Registry Editor) |
How to Solve Disk Is Write Protected Error
Video Tutorial on How to Fix "The Disk is Write Protected" Error?
When your PC detects that the disk is write protected, it automatically stops operation such as writing and formatting on the device. The disk will then be switched to read-only mode, meaning you can view files but not edit them. In some cases (as in USB corruption) This disk malfunction can be solved with these following methods:
1. Check for Switches
Sometimes, all it takes is a switch to remove write protection. Simply perform a physical check of your device to find any switch, which is usually found on the edges for the SD card. You can also refer to the manual.

2. Use Registry to Disable Write Protection
2026 Technical Update: BitLocker "Read-Only" Policy
If your system is running Windows 10/11 Pro, your "Write Protection" might be caused by a BitLocker group policy called "Deny write access to removable drives not protected by BitLocker." If this is enabled, you won't be able to save files to any unencrypted USB.
To check this, navigate in Registry Editor to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Policies\Microsoft\FVE.
If you see a value named FDVDenyWriteAccess set to 1, change it to 0 to restore write capabilities to your removable disks.
a. On the search bar, type regedit and click on the top result.

b. In the Registry Editor interface, navigate these steps found on the left-hand side of the window: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control.

c. Locate StorageDevicePolicies and open by clicking.
d. Right-click on the space found on the right side of the window and select New> DWORD (32-BIT) VALUE. Rename it to WriteProtect.

e. Set the registry value to 0 and select OK.

f. Plug the external drive again.
3. Removing Write Protection in Command Prompt
a. Launch Command Prompt.
b. On the command line, key in diskpart and hit Enter.

c. Type these commands one by one and click Enter key after each one:
list disk
select disk
attributes disk clear readonly

d. When prompt says "disk attributes cleared successfully", close Command window
e. and plug-replug the external device.
4. Check the Account Permissions

a. Type Command Prompt in the search bar and click the top result.
b. Go to the Properties of the removable disk by right-clicking.
c. On the window that opens, go to the Security tab. On the list under Permissions for Everyone, tick the box beside Write.

Note: You may need to click Edit before you can tick/untick the boxes.
5. Check Device Memory
If your external storage device has a lot of files saved in it, this might enable the write protection function. To solve this, you may need to delete unnecessary files to free up space.
a. Launch File Explorer.
b. On the left side of the window, select This PC and double click on it.
c. Find the storage device by name or type. The storage details are found beneath the name; if the bar is red, it indicates that memory is nearly or full.

6. Scan for Virus
If malware has infected your system, it can be transferred to the external storage device once you plug it in. Before using these devices, make sure to run a scan with an antivirus or Windows security feature. The virus may delete, modify, and corrupt important files in the computer; prevent this by adding an antivirus software that automatically detects such threats.
7. Format Disk
a. Restart your PC. As soon as it starts, press F8. Choose Boot to Safe Mode.
b. In Advanced options, select Command Prompt to open the command window.

c. Type the command format: format the selected disk drive.

Note: Formatting the device will wipe out all data saved in it.
8. Verify the Bad Sectors
a. Open File Explorer> This PC.
b. Locate the external device and right-click on it. Choose Properties.
c. On the new window, go to Tools and select Scan to identify the bad sectors.

| Fix Method | Data Safety | Technical Complexity |
| Physical Switch | 100% Safe | Very Low |
| Diskpart (Command) | Safe | Medium |
| Registry Edit | Safe (if careful) | High |
| Format Disk | Data Loss | Medium |
Conclusion
Plugging and unplugging external storage devices can subject them to potential threats and enable write protection. It will either move the device to read-only mode, or you may be unable to access any part of the disk. Always scan your device to detect any errors or malfunction before using it.
USB & SD Card Write Protection FAQ
-
Why does my USB say "Write Protected" when there is no switch?
This is often caused by a digital attribute set in the Windows Registry or a "Read-Only" flag on the disk partition. Use Tip 3 (Diskpart) to manually clear these attributes. -
Can a virus cause a disk to become write-protected?
Yes. Certain malware strains modify registry keys to prevent users from deleting the virus or formatting the drive. Always perform a Virus Scan (Tip 6) before attempting manual registry fixes. -
Is it possible to recover data from a write-protected disk?
Absolutely. Write protection prevents writing new data, but you can still read and copy existing files. If the disk is inaccessible, use Wondershare Recoverit to safely extract your files before attempting to format the drive. -
What if none of the 8 tips work for my SD card?
If the physical switch is off and software fixes fail, the SD card's internal controller may have locked the card permanently due to hardware failure. In this case, the card is "Retired" and should be replaced.
What's Wrong with Drive
- Recover Your Drive
- Restore formatted drive
- Recover undetected drive
- Retrieve WD drive data
- Get files from external drive
- Wiped data can be recovered
- Recover data from dropped hard drive
- Fix Your Drive
- What if drive not showing up?
- Hard drive won't boot? Fix it
- What if a disk unallocated?
- Deal with hard drive crash
- Repair disk & recover data
- Fix Toshiba external drive not working
- Fix a broken hard drive
- Format/Wipe Drive
- Know Your Drive

Theo Lucia
chief Editor