Disk Write Protection Error: Removing It to Format Again

If you’re trying to format a second disk and Windows gives you this error: The disk is write-protected. Remove the write-protection or use another disk. this is almost always the disk’s write-protect attribute being set at the storage controller level, and diskpart built into Windows can clear it. The Fix Open an elevated Command Prompt. […]

How To Fix The The Disk Is Write Protected Remove The Write
If you’re trying to format a second disk and Windows gives you this error:
The disk is write-protected. Remove the write-protection or use another disk.
this is almost always the disk’s write-protect attribute being set at the storage controller level, and diskpart built into Windows can clear it.

The Fix

  1. Open an elevated Command Prompt.
  2. Type diskpart and press Enter.
  3. list disk — identify the correct disk by size. Be certain, since the next commands affect this disk directly.
  4. select disk # (replace # with the disk number)
  5. attributes disk clear readonly
  6. Retry formatting the disk normally through Disk Management or format from diskpart.
If the attribute keeps reapplying itself, or the disk is a USB stick with a physical write-protect switch, check for a physical lock switch on the device itself first — some USB drives and SD cards have one, and no software command can override a hardware switch. On enterprise storage (SAN/RAID controllers), a persistent write-protect flag can also be set at the controller/array level rather than by Windows, in which case you’d need to clear it through the storage management tool for that hardware.

Still the Same Fix on Windows 11 (Updated for 2026)

diskpart and the attributes disk clear readonly command work identically on current Windows 11 releases — this is a low-level disk-attribute mechanism that hasn’t changed. If clear readonly reports success but the disk still shows as write-protected in Disk Management afterwards, try removing and reinserting the drive (or a full reboot for an internal disk) before assuming the fix didn’t take — Windows sometimes caches the old disk state until the device is re-enumerated.

Resources

🛠️

Gear We Recommend

A few general tech accessories worth having alongside this.

Browse our General Tech Accessories picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.

8 thoughts on “Disk Write Protection Error: Removing It to Format Again

  1. It still not work “DiskPart has encountered an error: The request could not be performed because of an I/O device error.
    See the System Event Log for more information.” how can I do?

  2. It still not work “DiskPart has encountered an error: The request could not be performed because of an I/O device error.
    See the System Event Log for more information.” how can I do?

  3. Thank you for this post! I couldn’t figure out why my distribution point role wouldn’t install and this solved my issue.

  4. Thank you for this post! I couldn’t figure out why my distribution point role wouldn’t install and this solved my issue.

  5. Thank you for this post! I couldn’t figure out why my distribution point role wouldn’t install and this solved my issue.

Comments are closed.