If you are trying to delete files off a Micro SD Card or other and Windows states it is Read Only; here is your fix.
Step 1: Insert your SD Card
Step 2: Click “Start” > “Run” and enter cmd.
Step 3: Enter diskpart.
Step 4: Type list volume. Now you’ll see all your connected drives, see which one is the memory card drive.
Step 5: Type select volume #. # represents the letter of your memory card drive.
Step 6: Type attributes disk clear readonly > removing the write protection.
Key takeaways: remove read only on an SD card
When Windows says a Micro SD card is read only, DiskPart’s “attributes disk clear readonly” command often clears the write protection so you can delete or copy files again. Always double-check you selected the correct volume.
Also useful: how to make a bootable flash drive. DiskPart reference: Microsoft DiskPart docs.
First, check the simple stuff
Before you open DiskPart, rule out the two most common causes. Both take ten seconds:
- The lock switch. Full-size SD cards and microSD-to-SD adapters have a tiny sliding switch on the left edge. Slid down toward “Lock,” the card is read only no matter what Windows does. Slide it up, then reinsert the card. These switches can also get loose and slide back when you push the card into a slot, so try a little tape over the switch or a different adapter.
- The reader. Cheap or worn-out adapters and built-in laptop slots are frequent troublemakers. Try the card in a different USB card reader or another computer. If it works there, the card is fine and the original reader is the problem.
A safer way to run the DiskPart fix
The steps above work, but here is a slightly more careful version that targets the whole card and the volume on it. Open the Start menu, type cmd, right-click Command Prompt and choose Run as administrator, then type:
diskpartlist diskand find your card by its size. A 64GB card shows as roughly 59 GB.select disk 2(use your card’s number, never Disk 0, which is normally your main drive)attributes disk clear readonlylist volume, thenselect volume 5(your card’s volume number)attributes volume clear readonlyexit
Unplug the card, plug it back in and try deleting a test file. Double-check the disk number before every command. DiskPart does exactly what you tell it, on whatever disk you selected.
If Windows itself is blocking writes
Some computers, especially ones set up by a workplace, have a Windows policy that makes every removable drive read only. If every flash drive and card you plug in is read only, open the Registry Editor (regedit) and look for HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. If a value named WriteProtect is set to 1, changing it to 0 and restarting removes the block. On a work computer, ask IT first, because the policy is probably there on purpose.
Check the card for errors
If the card still acts up, run chkdsk E: /f from an administrator Command Prompt, replacing E: with your card’s drive letter. It repairs file system errors that can make Windows treat a card as damaged. Copy anything important off the card first if you still can.
When the card is simply worn out
Flash memory has a limited number of write cycles. When many cards near the end of their life, they lock themselves into read-only mode on purpose so you can still copy your photos off before it fails completely. If the lock switch, a second reader and DiskPart all fail, that is probably what happened. Copy everything off right away and retire the card. Dash cams, security cameras and trail cams wear cards out fastest because they write all day long.
Also watch for counterfeit cards. A card that claims a huge size for a suspiciously low price may actually hold far less, and it starts failing or going read only once it fills up. Buy from the brand’s official store or a well-known retailer.
Reformatting as the last step
If the card works again but still acts strangely, back up its contents and reformat it. The SD Association’s free SD Memory Card Formatter tool is made for this job. Use exFAT for cards 64GB and larger, and FAT32 for 32GB and smaller, so cameras and other gadgets can read them. Formatting erases everything on the card, so make sure your files are safe first.
Which fix matches your symptom?
- “The disk is write-protected” on every card and flash drive: check the WriteProtect registry setting or your company’s device policy.
- Only one card, in every reader: the lock switch or adapter, then DiskPart, then assume the card is wearing out.
- Card works in a camera but not the computer: try a different reader. The built-in slot may be the weak link.
- Files reappear after you delete them: the card has probably locked itself to protect your data. Copy everything off and replace it.
- Card shows the wrong size or will not format: it may be counterfeit or damaged. The SD Memory Card Formatter tool will tell you if it can be saved.
One last tip: always use “Eject” before pulling a card out, especially from a camera or phone. Yanking a card out mid-write is one of the easiest ways to corrupt it.
Related reading on Pages of Wisdom
- How to make a Flash Drive Bootable – Boot from Flash Drive
- How to reset fix HP Stream in endless loop of not booting to windows.
- An AI Deleted a Professor’s Year of Notes While He Ate Lunch. Here’s Your 10-Minute Fix
- Your Printer Isn’t Broken. Windows’ November Update Is Tripping Over Invisible Pictures. Here’s the Fix
Helpful gear
A few related products worth knowing about. As an Amazon Associate I earn from qualifying purchases.
- Anker USB 3.0 SD/microSD card reader — A dual-slot reader when a laptop slot is missing or the card acts weird.
FAQ
What if clear readonly fails? Confirm the lock switch on the adapter (if any), try another reader, and make sure you selected the SD volume—not your system drive.
More Stories
Your Laptop’s Lock Screen Has a Hole Right Now. Here’s How to Protect It Before Thanksgiving Travel
Hackers Used GL.iNet’s Own Cloud to Break Into Travel Routers. Here’s the 20-Minute Check Every Owner Should Do
The Container Store Got Hacked Days Before Black Friday. Here’s the 10-Minute Saved-Card Cleanup Every Shopper Should Do