The Media Is Write Protected: 5 Methods to Remove It

Solve the error in no time to regain access to your drive

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

Key notes

  • The media is write-protected and usually appears due to your drive settings.
  • Changing the settings or the registry is one way to fix this issue.
The media is write protected

We use all sorts of drives to store our data, but sometimes you might get The media is write protected message while trying to do so.

This error is somewhat similar to System cannot write to the specified device error, which will cause you problems while saving data.

Luckily, there’s a way to deal with this issue, and in today’s guide, we’re going to show you the best methods that you can use to fix this problem.

Why are my files suddenly write-protected?

This issue can occur due to several reasons:

  • Software glitches – Sometimes, certain software can give you this error. Reinstalling the application usually fixes the issue.
  • Drive errors – In some instances, drive errors can cause this issue. Scan your drive to fix these problems.
  • Your settings – Sometimes, files and drives can have certain settings that prevent writing. Change them to fix the issue.

How can I fix The media is write protected error?

Before we start, there is a simple check that you need to perform:

  • Check for lock switch – The media is write protected on an SD card, and some USB drives can appear due to the lock switch. If your device is locked with it, you won’t be able to write data to it.

1. Reinstall the software that is giving you this error

  1. Press Windows key + X and choose Apps and features.
  2. Select the application that is giving you this error.
  3. Click on Uninstall to remove it.
  4. Once the software is removed, install it again.

Users reported this issue with uTorrent software, but if you’re having this problem with another software, be sure to give this method a try.

2. Check your disk for errors

  1. Press Windows key + X and choose Windows PowerShell (Admin).
  2. Enter the following command and press Enter: chkdsk c: /f
  3. Wait for the scan to finish.

If you’re getting The media is write protected on hard drive your hard drive, be sure to give this solution a try.

Note icon NOTE
If you get this error message on a different drive, enter its letter instead of C in step 2.

3. Use diskpart

Note icon NOTE
Diskpart is an extremely powerful tool, and we’re not responsible for any issues or file loss that might occur while using it.
  1. Connect your USB drive to the PC.
  2. Press Windows key + X and choose Windows PowerShell (Admin).
  3. Once it opens, enter diskpart
     
  4. Now enter list disk
  5. Use the file size value to find the desired disk. Note, this will probably be different on your PC. We used select disk 2
  6. Lastly, run the following command: attributes disk clear readonly

If case you’re getting The media is write protected in diskpart, perhaps is time to format your drive.

4. Change folder properties

  1. Locate the directory that is giving you this error.
  2. Right-click it and choose Properties.
  3. Make sure that Read-only option isn’t checked and click on Apply and OK.

After doing that, check if the problem is still there.

5. Tweak the StorageDevicePolicies key

  1. Press Windows key + R. Enter regedit and click OK.
  2. Navigate to the following key:  Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
  3. In the left pane, navigate to StorageDevicePolicies key. If you can’t find it, move to the next step.
  4. Right-click the Control key. Now expand the New section and select Key.
  5. Name the new key StorageDevicePolicies and move to it.
  6. Look for WriteProtect DWORD in the right pane.
  7. If it’s not available, right-click the empty space and choose New. Next, select DWORD (32-bit Value).
  8. Name the new DWORD WriteProtect. Double-click it to open its properties.
  9. Check if its Value data is set to 0. If not, change it.

There you go; we hope that the solutions listed above helped you fix this error message. If you’re having additional problems, visit our Error writing to file guide for more information.

Did you find a different solution that worked for you? Let us know in the comment section below.

More about the topics: System Errors

User forum

1 messages