Blog · 2026-11-30

USB drive is write-protected and won't format: what to do

You try to save a file or format a USB stick or SD card, and Windows says the disk is write-protected. That's frustrating, but a format that never ran hasn't erased anything.

Why a drive refuses writes

SD cards and some adapters have a small lock switch on the side. A read-only attribute on the disk or a Windows policy can also block writing. And some flash drives lock themselves into read-only mode when they start to fail. Start with the easy check.

Check the lock switch first

Eject the card or drive and look along its edges. A microSD card has no switch of its own, but the full-size adapter it sits in may have one.

If you already have copies of everything you need somewhere else, slide the switch to the unlocked position, reconnect and try again. Remember that formatting erases the files on the drive.

If the only copy is on this drive, I'd leave it locked until you've copied or recovered the files. You only need to read from it for that. Don't treat the switch as a guarantee, though. Save nothing to the drive, and don't click Yes if Windows offers to scan and repair it.

Get your files off before anything else

If the drive opens and your files look complete, copy them to a different drive in File Explorer, then open some of the copies to check them. That doesn't need a recovery program.

You may need one if the drive won't open, Windows asks you to format it, files are missing, or copying stops on read errors.

Recovering the files with ReviveUSB

ReviveUSB is a program for Windows 10 or 11 (64-bit) that needs administrator rights. It's free up to 500 MB of recovered files per recovery, and ReviveUSB Pro removes that limit for a one-time US$29.99, on up to 2 PCs. Diagnosis, imaging and repair have no limit.

Backup and recovery only read the drive, so you can use them on a write-protected drive that can still be read. ReviveUSB has no function to remove write protection.

It isn't code-signed yet, so Windows SmartScreen or your antivirus may warn you. Compare the file's SHA-256 with the one on the download page. If it matches and SmartScreen appears, choose More info, then Run anyway.

  1. Run ReviveUSB.exe, allow administrator rights and check for Administrator: ON. Click Refresh, then click your drive. If it's a card in a built-in reader and isn't listed, tick Show internal disks (caution) and make sure you don't pick your system disk.
  2. Click Back up to image and save the image on another drive with free space equal to your drive's capacity. A 128 GB drive needs 128 GB free. If some regions can't be read, the program asks whether to retry them sector by sector.
  3. Click Recover files (names/paths). If it asks whether to read the selected disk directly, click No and choose your image. Save to a folder on a healthy drive. This reads NTFS, FAT32 and exFAT and brings files back with their names and folders. When it finds both current and deleted files, the deleted ones go into _deleted_files.
  4. If it finds nothing or can't detect the filesystem, click Recover files (signature) and use the same image. It finds supported file types, such as photos, PDFs and MP4 video, by their content. Original names are lost. Office files such as docx, xlsx and pptx come back as .zip, so rename them to the right extension.

Open the recovered files to check them. Recovery is never guaranteed.

Can the drive be repaired?

Once your files are safe, find out whether you can make the drive writable. With the switch unlocked, try another card reader or adapter, USB port or PC. If writing works elsewhere, suspect the original reader, port or PC. On a work or school computer, a policy may be deliberate, so ask your IT team.

You can also check the read-only attribute. Open Command Prompt as administrator, type diskpart, then list disk. Find your drive by its size and enter select disk followed by its number. If you aren't sure which disk it is, stop. Type attributes disk. If the disk is listed as read-only, attributes disk clear readonly removes that attribute. It won't move a physical switch, and don't expect it to help with a drive that has locked itself.

ReviveUSB's repair buttons need to write to the drive, so they aren't a way around the lock. If writing works again and the drive opens normally, you may not need a repair at all. Otherwise, pick by symptom:

  • Check (chkdsk): the drive has a letter, but files are corrupted or give read errors. It fixes filesystem errors and is meant to keep the data.
  • Format: the drive has a letter and you want to wipe the volume.
  • Full rebuild: the drive is RAW, has no letter or has damaged partitions. It wipes the whole disk and recreates it.

Format and Full rebuild erase data and ask you to type a confirmation. Before any of these three writes anything, ReviveUSB checks the drive by reading only. If it sees signs that the controller is failing, it won't repair the drive and says why in the log.

Before trusting the drive again, click Refresh, select it and click Test drive. Choose Yes to test all free space. It's slow, but it finds drives that fake their capacity. After a pass, Copy files back can return your recovered folder and compare each file with the original. Keep the copy on your PC too.

When to replace it

Replace the drive if it still refuses writes after the checks above. If it keeps turning read-only by itself, don't trust it with new files, even if it accepts them today. Also replace a drive that fails Test drive, or one ReviveUSB won't repair because it shows signs of failing. If it keeps disconnecting, that's another reason to retire it. Get your files off while it can still be read.

If you can't get the files

If ReviveUSB shows "Firmware failure (ROM mode)" or "No storage (size 0)", there's nothing it can read. Unplug the drive and plug it back in. If it returns with its normal name, back it up right away. If it doesn't and the files matter, a data recovery lab may be able to read the memory chip directly.

If the backup is very slow, try a USB 3.0 port on the back of the PC, another cable or another computer. To switch, close ReviveUSB, move the drive, click Back up to image and choose the same file. If Windows asks whether to replace it, answer Yes, and the backup resumes.

Software can't help if the data has been overwritten or the flash chip is dead. For button details, see the ReviveUSB manual or the FAQ.