???? USB won't erase? Don't throw it away yet!
It happened to me too. I was trying to format a 32GB USB stick with important files and Windows kept showing me the same annoying message:
"The disc is write-protected".
I tried everything… until I found the solution. If you see the same message and think the USB is broken,
read this guide first. In a few minutes you may have it back in your hands, ready to use. 🔓
How to Unlock and Format a USB Stick That Won't Erase
Detailed guide for Windows 10, Windows 11 and newer versions – Updated January 2026
💡 In this guide you will learn:
- Why a USB gets stuck and won't let you erase it
- What write protection really means
- 5 practical solutions that work in 2026
- How to completely clean a USB with Diskpart
- When has a USB reached the end of its life?
🔍 Why Does a USB Stick Lock?
Before we move on to solutions, it is worth understanding why is this problem happeningIn most cases, the USB is not broken – Windows has simply “blocked” it for security reasons.
🔒 Record Protection
Windows automatically turns on protection when it detects a problem to prevent data loss.
⚠️ Corrupted Files
If you removed the USB abruptly or the computer turned off, the file system may have become corrupted.
🦠 Viruses and Malicious Files
Some viruses "lock" the USB so you can't delete them.
🔧 Physical Safety Switch
Some USB sticks or SD adapters have a lock switch.
1 Check for Physical "Lock" Switch
️ Year: 30 seconds | Difficulty: Very Easy
This is the simplest solution and yet many people forget about it. Some USB sticks (mainly older models or SD adapters) have a small lock switch sideways.
- Remove the USB from the computer.
- Carefully check all sides of it
- If you see a switch with an indicator Lock / Unlock, move it to Unlock
- Reconnect the USB and try formatting.
✅ If it worked: Great! Nothing else is needed. If not, we move on to the next solutions.
2 Disable Write Protection from Windows Settings
️ Year: 3 minutes | Difficulty: Moderate
If the message appears "The disc is write-protected", then Windows probably has this option enabled.
⚠️ Important: Follow the steps exactly as described.
- Click Win + R
- Type
regeditand press Enter - Go to the path:
- Find the option WriteProtect
- Change the value from 1 into a 0
- Close the window and restart.
💡
The folder doesn't exist?
No problem. Continue with the next method, which is the most effective.
3 Full Format with Diskpart (The Solution That Saves the Most USBs)
️ Year: 5 minutes | Difficulty: Moderate
🏆 The most effective solution! With this method you can completely "clean" the USB, even if all else fails.
- Open the menu Start
- Write
cmd - Right click and select Run as administrator
- Type:
- Then:
- Find the USB by size (e.g. 16GB or 32GB)
- Select it: (replace 1 with the correct number)
📌 Below, you'll see how to completely erase it, create a new partition, and make it like new again.
???? ATTENTION: The next steps will delete ALL files from the USB. Double-check that you have selected the correct disk, because the process cannot be undone.
-
Completely erase the USB and all its old settings:
💡 This step "cleans" the USB from corrupted data and is often the point that solves the problem.
-
Create a new partition:
-
Format the USB. Choose the one that suits you:
For NTFS (ideal for large files, movies, backup):
For FAT32 (better compatibility with TVs, consoles, cars):
-
Assign a drive letter to appear in Windows:
-
Finally, type
exitto exit Diskpart
🎉 Ready! Your USB is now completely cleaned and works like new.
4 Format via Disk Management (Without Commands)
️ Year: 2 minutes | Difficulty: Easy
If you're not comfortable with commands, there's a more "visual" way directly from Windows.
- Click Win + X
- Select - Επιλέξτε "disk Management" (Disk Management)
- Identify the USB by its size
- Right click on it and select "Format"
- Choose file system (NTFS or FAT32)
- Press OK
⚠️ If an error message or failure appears, return to Method 3 (Diskpart), which is more powerful.
5 Using External Programs
️ Year: 10 minutes | Difficulty: Easy
If Windows keeps crashing, there are reliable free tools that can hardly handle USB.
(I.e. HP USB Disk Storage Format Tool
Simple and effective tool, ideal for old or "stubborn" USBs.
🟠 Rufus
Very popular tool, also useful for bootable USBs.
🢢 AOMEI Partition Assistant
Complete disk management with a friendly environment.
These programs can format USB that Windows does not recognize correctly.
❌ When Can a USB Not Be Saved?
If you tried all the above methods and the USB still doesn't work, then it's likely:
- 💔 His memory has been worn out by multiple recordings.
- ⚙️ There is physical damage inside it
- 🔧 Its internal software has been corrupted.
In this case, replacement is the only option.
Fortunately, USBs today are affordable and readily available.
📝 Conclusion & Useful Tips
A locked USB can be frustrating, but in most cases the problem is solved. Method 3 (Diskpart) is usually the most effective.
💡 How to Avoid the Problem in the Future:
- Always remove USB safely
- Do not remove it while transferring files
- Check for viruses regularly
- Avoid public or unknown computers
- Keep backups
✅ Did the guide help you? With the above steps you can restore almost any USB to working condition. Share your experience in the comments!
📌 Updated: January 2026 | Compatible with: Windows 10, 11, newer versions