What will you do if prompted by the media is write protected when trying to write data on internal or external storage devices? If you have no idea at the moment, the solutions given in this guide on MiniTool Website will help you out.
The Media Is Write Protected Windows 10/11
Some of you might be bothered by the operation did not complete because the media is write protected (ERROR_WRITE_PROTECT) when you attempt to edit, copy, or delete files on a hard drive, USB flash drive, SD card, or other storage devices. This indicates that your Windows device refuses to work with this drive and you are unable to make any changes on it.
There are various reasons why this error might crop up are listed as follows:
- The file system is corrupted.
- Your storage device is infected with viruses or malware.
- The disk is corrupted or damaged.
- Some system files are faulty, damaged or missing.
- The registry key is set to enable write protection.
- The files you intend to read or edit are set to read-only.
- The USB flash drive, SD card, or other external storage devices are pushed into the write protection position.
In this article, we will offer you clear and easy instructions about how to get rid of the media is write protected both on internal drives and external storage devices. Without wasting more time, let’s jump into it.
How to Fix the Media Is Write Protected on Internal Hard Drives?
Fix 1: Check the Disk for Errors
To tackle the media is write protected , another solution is to perform a full disk scan of the problematic drive. Here are two ways on how to check the status of the disk :
Way 1: Run a Disk Scan in Windows Properties
Step 1. Press Win + E to open File Explorer .
Step 2. Right-click on the drive you want to scan and select Properties .
Step 3. Under the Tools section, click on Check > Scan and Repair Drive . Then, the scan will detect and repair any problem on the drive.
Way 2: Run CHKDSK Scan in Command Prompt
Step 1. Type cmd in the search bar to locate Command Prompt and right-click on it to choose Run as administrator .
Step 2. Type chkdsk C: /f and tap on Enter . Remember to replace C: with the letter of your target partition.
Fix 2: Run SFC Scan
Corrupted system files can also be a potential culprit of the media is write protected . You can run the SFC (System File Checker) scan to check & fix the damaged system files and then use DISM (Deployment Imaging and Servicing Management) commands to repair the corrupted system image. Here’s how to do it:
Step 1. Run Command Prompt as an administrator.
Step 2. Type sfc/ scannow followed by Enter .
Step 3. After the process is complete, reboot your computer and then run CMD with administrative rights again. Run the following commands one by one and don’t hit Enter after each command.
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
Related article: fix-dism-online-cleanup-image-restorehealth-stuck
Fix 3: Perform a Full Scan
Maybe your device is infected by malware or viruses, causing issues like the media is write protected . In this case, you can perform a full scan to detect any malware running on your computer.
Step 1. Press Win + I to launch Windows Settings .
Step 2. In the settings menu, scroll down to find Update & Security and press it.
Step 3. In Windows Security , go to Virus & threat protection > Scan options .
Step 4. Windows Defender offers you 4 types of scans: Quick scan , Full scan , Custom scan , and Microsoft Defender Offline Scan . Here, we check Full scan and then hit Scan now to start scanning.
Fix 4: Untick the Read-Only Attribute
Some specific files are probably set to read-only, so they can be read but not modified. In this case, it is a good option to disable the read-only attributes from the Properties menu of the file or folder.
Step 1. Press Win + E to open File Explorer .
Step 2. Right-click on the file or folder and select Properties from the drop-down menu.
Step 3. Under the General tab, uncheck Read-only .
If you select a folder that contains other files or folders, the system will ask you to confirm the attribute change so that this change will also be applied to all the contents inside the primary folder.
Step 4. Click on Apply & OK to apply and save the changes.
How to Fix the Media Is Write Protected on External Hard Drives or USB Flash Drives?
Fix 1: Check the Physical Switch
There is a physical write protection switch on the USB flash drive or SD card. If the switch is pushed into the write protection position, the media will be unable to write or read. To check the physical switch, you need to:
Step 1. Eject the drive from your computer.
Step 2. Find the physical write protection switch on the device. Usually, it is located on the side or bottom of the storage device. If the switch is on, move it to the off position.
Fix 2: Run DiskPart
Also, if your external drive or USB flash drive is marked as read-only, you can remove the attribute via DiskPart.
Step 1. Launch Command Prompt as an administrator.
Step 2. Type diskpart and hit Enter .
Step 3. Type list disk and press Enter to see a list of disks. You can recognize the external or USB drive according to their size. Note down the disk number of your removable disk.
Step 4. Type select disk 1 (replace 1 with the disk number you noted down in the last step) and hit Enter .
Step 5. Type attributes disk clear readonly and hit Enter .
Step 6. After receiving Disk attributes cleared successfully , type exit and hit Enter .
Fix 3: Modify the StorageDevicePolicies Key
You will get the media is write protected when the corresponding value in Windows registry is incorrect. Therefore, you can remove the write protection by tweaking the value of StorageDevicePolicies.
In case something goes wrong with the registry, please back up the registry database in advance. See this guide - How to Backup and Restore Registry in Windows 10 .
User Comments :
Post Comment