Thumb Drive Write Protected Won't Format – Fix
Your thumb drive says it's write protected and won't format. Try these fixes from quick to full reset.
The Quick Fix – Check the Physical Lock (30 seconds)
Most thumb drives have a tiny physical switch on the side. Look at your drive. You'll see a small slider that says Lock or shows a lock icon. Push it to the other position. That's it.
What should happen next? When you plug the drive back in, you'll see a notification popup saying "USB Drive detected." Try to copy a file to it. If it works, you're done. If not, move to the next fix.
I've seen people miss this switch between the plastic edge. It's tiny. Use a fingernail to slide it. No switch? Then the lock is in software. Go to the moderate fix.
The Moderate Fix – Use DiskPart to Clear Write Protection (5 minutes)
This method uses Windows built-in tool called DiskPart. It can remove software write protection that got stuck after a bad eject or a corrupted partition.
Warning: This will wipe all data on the drive. Back up anything you need first.
Step-by-step:
- Plug the thumb drive directly into a USB port on your computer (not a hub).
- Open Command Prompt as administrator. Click the Start button, type
cmd, right-click Command Prompt in the results, and choose Run as administrator. Click Yes on the User Account Control popup. - In the black Command Prompt window, type
diskpartand press Enter. Wait a few seconds. You'll see a new prompt that saysDISKPART>. - Type
list diskand press Enter. You'll see a table of all disks on your system. Find your thumb drive. It's usually Disk 1 or Disk 2. Look at the size column – your drive will be smaller than your main hard drive. For example, a 16GB drive shows as 14 GB (space used by the file system). - Type
select disk X(replace X with the disk number you found, likeselect disk 1) and press Enter. You should see a message: Disk X is now the selected disk. - Type
attributes disk clear readonlyand press Enter. Wait for the message: Disk attributes cleared successfully. - Type
cleanand press Enter. This erases the entire drive. Wait until you see DiskPart succeeded in cleaning the disk. - Type
create partition primaryand press Enter. Wait for DiskPart succeeded in creating the specified partition. - Type
format fs=fat32 quickand press Enter. If your drive is larger than 32GB, useformat fs=exfat quickinstead. FAT32 won't work on big drives. Wait for DiskPart successfully formatted the volume. - Type
assignand press Enter. This gives your drive a letter. - Type
exitand press Enter. Close the Command Prompt.
What should happen? Open This PC. You'll see your thumb drive with a new letter and no write protection. Copy a file to it. If it works, you're done. If you still see "write protected" after this, move to the advanced fix.
The Advanced Fix – Low-Level Format with SD Formatter (15+ minutes)
This fix is for drives that still refuse after DiskPart. The real cause is usually a corrupted controller chip that locked the drive. A low-level format can force it back to life.
What you need: A free tool called SD Memory Card Formatter from the SD Association website. Download the Windows version. It works on thumb drives even though it's made for SD cards.
Steps:
- Download and install the SD Memory Card Formatter. The installer is small.
- Plug in your thumb drive.
- Open the tool. In the Select Card dropdown, pick your thumb drive. Double-check the drive letter.
- In Formatting options, choose Overwrite format. This does a full low-level format. It writes zeros to every sector. It takes 10-30 minutes depending on drive size.
- Click Format. A confirmation box pops up. Click Yes. The process starts.
- Wait until a green bar shows Format complete. Then close the tool.
- Eject the drive safely using the tray icon.
- Plug it back in. Open This PC. You'll see a formatted drive with no write protection.
What if this still fails? The drive's controller chip is physically dead. Throw it away and get a new one. Cheap thumb drives wear out after lots of writes. I recommend you buy from a known brand like Samsung, SanDisk, or Kingston. They have better chips.
Extra tip for old drives: Some older USB 2.0 drives have a hardware fault that mimics write protection. If you tried all three fixes and nothing works, the drive is at the end of its life. Don't waste more time – replace it.
Was this solution helpful?