Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
FREEDOM251

Freedom251 › Blog › Data Recovery

How to Remove “The Disk Is Write Protected” in Windows

By Freedom251 Team · · 7 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The message “The disk is write protected. Remove the write-protection or use another disk.” means Windows is refusing write operations on a USB flash drive, SD card, or external hard drive. You can usually troubleshoot it without erasing anything, but the safe order matters: copy important files first, check for a physical lock, clear the disk’s read-only attribute, review Windows’ write-protection policy, and only then consider recovery or replacement.

What “write protected” means

A write-protected disk can normally be opened and read, but Windows rejects actions that change its contents. Copying files onto it, deleting files, renaming folders, or formatting the disk may all fail. The restriction can come from several layers:

As an Amazon Associate I earn from qualifying purchases.

  • Physical lock: SD cards commonly have a small lock tab. An adapter or reader can also report a locked state.
  • Disk-level read-only attribute: Windows may have a read-only flag set on the removable disk.
  • Windows policy or registry setting: A write-protection policy can block USB storage even when the disk attribute appears clear.
  • Reader, adapter, or controller behavior: The card may work differently through another reader.
  • Failing storage media: Flash storage can enter a permanent read-only mode when its controller detects a serious problem.

Clearing one software flag does not always change the device’s effective state. If the card or drive remains read-only everywhere, the hardware—not the Windows setting you changed—may be enforcing the lock.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Protect the files before changing the disk

Read-only behavior is frustrating, but it can also prevent further changes to data that is still recoverable. Before running repair commands, copy important files to another disk. Use File Explorer to copy the folders you cannot replace, and open several copied files to confirm that the copies work.

#1 Best Overall
Sale
Lexar D40E 128GB Dual USB 3.2 Gen 1 Type-C Jump Drive, Champagne Silver | USB-C Flash, Metal Housing, Swivel Design, Thumb Drive
  • USB-C 2-in-1 storage OTG: The Lexar JumpDrive Dual Drive D40E features USB Type-A and Type-C connectors in a slim, portable form factor for easy device compatibility
  • Transfer speeds up to 100MB/s: Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions. 1MB=1,000,000 bytes
  • Plug and Play: Widely compatible with USB Type-C smartphones, tablets, laptops, Macs, and traditional Type-A devices, no software installation required. The 360° swivel design allows for easy switching between connectors without the hassle of losing a cap
  • Durable & Compact: The Lexar D40E USB memory stick features a metal enclosure, withstands temperatures from 0° to 50° C (32°F to 122°F), and is lightweight at 26g with dimensions of 70.4 x 16.9 x 11.7mm
  • Security & Warranty: Securely protects files using an advanced security software solution with 256-bit AES encryption. Backed by a Lexar 3-year limited warranty

Do not begin with formatting or DiskPart’s clean command. Microsoft moderator guidance warns: “The clean command will clear all the data on the SD/USB disk. Please back up the data, if you want to clean the disk.” If copying fails or the disk disconnects during a copy, stop destructive operations and treat the contents as recovery data.

Step 1: Check for a physical lock and connection problem

Unlock an SD card

  1. Eject the SD card from Windows.
  2. Find the small lock tab on the card’s side.
  3. Slide the tab to the unlocked position. The tab should not be sitting at the end marked “Lock.”
  4. Reinsert the card and try a small, nonessential write.

If the card still reports write protection, test it with a different USB SD-card reader or adapter. A faulty reader can present a writable card as read-only. Testing another reader is a diagnostic step, not a repair to the card itself.

Check other removable drives

For a USB flash drive or external hard drive, disconnect it safely and reconnect it. If you are using an adapter, test the drive without that adapter when possible. Use the drive’s capacity and label to make sure you are working with the intended device before moving to command-line steps.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Step 2: Clear the DiskPart read-only attribute

DiskPart can show and clear the disk-level attribute that blocks writes. This requires an administrator Command Prompt or Windows Terminal.

Rank #2
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds | USB Flash Drive, Up to 15x Faster than standard 2.0, Password Protection, Durable, Sleek Metal Casing, USB 3.0, Silver/Black
  • High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
  • Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
  • Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
  • Sleek, durable metal casing
  • Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]
  1. Open Start, type Terminal or Command Prompt, right-click the result, and choose Run as administrator.
  2. Enter diskpart and press Enter.
  3. List the connected disks:
list disk

Compare the capacities in the list with the removable drive. Do not select a disk by number alone: selecting the wrong disk can affect your Windows installation or another drive.

  1. Select the removable disk, replacing the value with the number you verified:
select disk <disk-number>
  1. Display its attributes:
attributes disk

DiskPart reports whether the disk is read-only and also shows its current read-only state. If the correct disk is selected, clear the disk attribute:

attributes disk clear readonly

A successful operation reports “Disk attributes cleared successfully.” Then leave DiskPart:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
exit

Remove and reconnect the drive, or close and reopen File Explorer, and test with a small, nonessential file. Clearing this attribute is comparatively low risk when the correct disk was selected; it does not erase the disk.

Rank #3
Sale
2 Pack 64GB USB Flash Drive USB 2.0 Thumb Drives Jump Drive Fold Storage Memory Stick Swivel Design - Black
  • What You Get - 2 pack 64GB genuine USB 2.0 flash drives, 12-month warranty and lifetime friendly customer service
  • Great for All Ages and Purposes – the thumb drives are suitable for storing digital data for school, business or daily usage. Apply to data storage of music, photos, movies and other files
  • Easy to Use - Plug and play USB memory stick, no need to install any software. Support Windows 7 / 8 / 10 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, compatible with USB 2.0 and 1.1 ports
  • Convenient Design - 360°metal swivel cap with matt surface and ring designed zip drive can protect USB connector, avoid to leave your fingerprint and easily attach to your key chain to avoid from losing and for easy carrying
  • Brand Yourself - Brand the flash drive with your company's name and provide company's overview, policies, etc. to the newly joined employees or your customers

Step 3: Check Windows’ write-protection policy

If DiskPart clears the attribute but Windows still rejects writes, a registry policy may be enforcing read-only storage. Registry editing requires administrator rights, and a restart may be needed before the change takes effect.

  1. Open the Run dialog with Windows key + R, type regedit, and press Enter.
  2. Back up the registry before editing. In Registry Editor, use File > Export and save the backup somewhere on your internal drive.
  3. Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies.
  4. Find the WriteProtect value and set it to 0.
  5. Close Registry Editor and restart Windows if the drive remains locked.

Microsoft answers also reference the USBSTOR service when investigating USB storage restrictions. Do not change unrelated service or registry values merely because they contain the word “storage”; make only the documented write-protection change and keep your backup until the drive works.

Step 4: Test with a small, nonessential write

After reconnecting the disk, create a small text file, copy it to the removable drive, rename it, and delete it. These actions test writing, renaming, and deletion separately. Use a file you do not need; do not test by moving the only copy of an important document.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If the test succeeds, the software lock was cleared. If Windows still refuses every write, do not jump to clean or formatting. First determine whether the lock follows the storage media or the reader.

Rank #4
Sale
SIMMAX 32GB Memory Stick USB 2.0 Flash Drives Swivel Thumb Drive Pen Drive (32GB Purple)
  • GOOD VALUE PACKAGE - 1 Pack 32GB Memory Stick USB 2.0 Flash Drives with great cost performance and high quality.
  • BIG CAPACITY - The available capacity: 29.10GB-29.8GB, You can save the data of movies, music, photos, designs, programs, manuals, handouts in a high speed.Good performance in digital data storing, transferring and sharing with families, friends, workmates, clients and machines.
  • EASY TO USE & PLUG AND WORK - Support windows 7 / 8 / 10 / Vista / XP / 2000 / ME / NT Linux and Mac OS, Compatible with USB2.0 and below.
  • TWISTTURN DESIGN & EASY CARRY - The metal clip rotates 360° round the ABS plastic body which with rubber oil skin feeling finish. The capless design can avoid lossing of cap, and providing efficient protection to the USB port.
  • WARRANTY & SUPPORT - SIMMAX logo is laser printed on the USB connector surface, our products are of good quality and we promise that any problem about the product within one year since you buy.

When the software fixes do not work

“Current Read-only State” remains enabled

DiskPart can show that the read-only attribute was cleared while the Current Read-only State remains Yes. That result indicates that another layer is enforcing read-only mode. Possible sources include the SD-card reader, an adapter, the storage controller, or failing flash media.

Use another reader to isolate the cause

Test the same SD card in a different USB SD-card reader or adapter. If it becomes writable, the first reader or adapter is the likely cause. If it remains read-only in multiple readers and on multiple computers, the card itself is more likely to be enforcing the state.

Decide whether the files justify professional recovery

For valuable or irreplaceable files, stop before formatting and seek a professional data-recovery service. Tell the service that the media is readable but write-protected and that no destructive commands have been run. Recovery should happen before attempts to rebuild or erase the disk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Formatting and the DiskPart clean command

Formatting creates a new file-system structure and removes the files that were on the volume. DiskPart’s clean command goes further by clearing disk information; Microsoft explicitly states that it clears all data on the selected SD or USB disk. Neither operation preserves files, and neither should be treated as a first-line write-protection repair.

Best Value
IMEASON Swivel Design 16GB USB Flash Drive with Keychain, USB 2.0 Portable Thumb Drive Memory Stick, FAT32 Format Flashdrive for Data Storage, Photos, Music, Files (Black, 16 GB)
  • 【16GB Flash Drive】USB flash drives with 16GB capacity, meet your needs of daily use on work, school, home and travelling for photos, music, videos, files storage and transfer. IMEASON thumb drives can be used to store different files, easy to data backup.
  • 【Metal Swivel Cap Design】USB thumb drive is metal swivel cover provides extra protection for the usb thumbdrive connector, no usb drive cap to lose; keychain design makes it easier to carry without worrying lose it.
  • 【Wide Compatibility】USB drive supports Windows 7/8/10/11 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, also Supports USB 2.0 and 1.1 ports. USB Stick support TV, desktop, notebook computer, car, audio and other device. The USB Memory Stick is your great data storage and transfer companion with traveling and working.
  • 【Easy to use】usb memory stick is plug and play without any software installation. Just simply plug the Flashdrive into the port of your USB-compatible devices such as computer, laptop to start data storage or transmission.
  • 【What You Get】16 GB USB Flash Drive Thumb Drive, The default format of the usb storage flash drive is FAT32.

Only consider formatting after you have copied or recovered everything you need, the disk is not valuable as evidence, and you have confirmed the correct disk. If formatting also fails because the current read-only state cannot be changed, the media may have reached a hardware-enforced end of life.

When replacement is the right answer

If the drive remains locked through different readers and computers after your files are safe, replace the storage device after recovery. A new writable flash drive is safer than continuing to trust media that has entered permanent read-only mode. Replacement does not restore the old disk; it simply gives you a reliable destination for the recovered files and future backups.

Keep at least one additional copy of important files on another disk. A write-protected device can still fail as a reader, disconnect, or become inaccessible, so read-only access should not be treated as a backup strategy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the least-destructive remedy first

Remedy Cause it addresses Data-preservation risk Administrator access Reversible?
Copy files to another disk Protects data before repair Low Usually not required Yes
Move an SD-card lock tab Physical lock Low Not required Yes
Try another reader or adapter Reader or adapter fault Low Not required Yes
Clear DiskPart read-only attribute Disk-level software flag Low when the correct disk is selected Required Yes
Set WriteProtect to 0 Windows registry policy Low when the documented value is changed Required Yes, using the registry backup
Format the disk File-system recreation after data is safe Destructive Not stated in the cited guidance No for the previous files
Run DiskPart clean Disk information removal Destructive; clears all data Required to run DiskPart in an elevated console No for the previous disk contents
Replace the storage media Persistent hardware or controller failure Low after recovery Not required No; it does not repair the old disk

Stop conditions that prevent permanent data loss

  • Stop if you cannot copy important files and the data exists nowhere else.
  • Stop if DiskPart’s current read-only state remains enabled after clearing the attribute.
  • Stop if a different reader does not change the behavior and the media contains valuable files.
  • Do not run clean or format until recovery or backup is complete.
  • Replace the device after recovery when it remains locked across readers and computers.

As an optional shortcut after the manual checks, Outbyte PC Repair can address more than 100 common Windows issues, adjust settings that affect CPU, RAM and disk load, clear temporary and cache files, and provide vulnerability checks and an app-crash log. It runs on Windows 11, 10, 8 and 7; its free trial is offered by category for at least two days before a paid subscription. It complements antivirus software rather than replacing it, and results vary—no tool repairs every write-protection failure.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Data RecoveryDiskPartSD cardsTroubleshootingUSB drivesWindows

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.