Medium Operating Systems ✓ Solution Verified by Community (0+ upvotes)

Error Code 0x80070013 — Windows 11

ERROR_WRITE_PROTECT: The media is write protected.

65% úspěšnost
👥 0+ uživatelů ověřilo
📅 Aktualizováno: 2026-08-12
⏱️ 20 min čtení
Oprava založena na komunitních zprávách a expertní analýze. Naposledy ověřeno: 2026-08-12 · Jak ověřujeme opravy
Error Code0x80070013
Affected SystemWindows 11 (Microsoft)
DifficultyMedium
Estimated Time20 min
Requires Admin Rights⚠️ Yes

Postup řešení

  1. 1 Check the physical write-protect switch on the device. Many USB drives and SD cards have a small switch on the side. If it's in the 'Lock' position, slide it to the 'Unlock' position. This is the simplest fix and often resolves the issue immediately.
  2. 2 Press Windows key + X and select 'Windows Terminal (Admin)'. Type 'diskpart' and press Enter. Then type 'list disk' to see all disks. Identify your removable drive by its size (e.g., 14 GB for a 16 GB drive). Type 'select disk X' (replace X with the disk number) and press Enter. Then type 'attributes disk clear readonly' and press Enter. This removes the read-only attribute from the disk, allowing writes.
  3. 3 If the above doesn't work, the drive's file system might be corrupted. In the same diskpart session, type 'clean' to remove all partitions, then 'create partition primary' and 'format fs=ntfs quick' to reformat the drive. This will erase all data, so only do this if you have backed up your files.
  4. 4 Press Windows key + R, type 'regedit' and press Enter. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. If the key doesn't exist, right-click on 'Control', select 'New' → 'Key', and name it 'StorageDevicePolicies'. Inside, create a new DWORD (32-bit) value named 'WriteProtect' and set its value to 0. This disables write protection at the system level.
  5. 5 If the error occurs on a hard drive partition, check if the volume is set to read-only. Open Command Prompt as admin and type 'diskpart', then 'list volume'. Identify the volume, type 'select volume X', and then 'attributes volume clear readonly'.

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Stále máte problémy?

Popište svůj přesný problém Error Buddymu a získejte personalizovanou opravu během několika sekund.

🛠️ Vyzkoušet Error Buddy — Zdarma