You right-click the pendrive, choose Format, and Windows refuses - the disk is write protected, the file system shows RAW, or the format simply never finishes. Every refusal has a cause, each cause has a different fix, and this guide walks them in the right order.
A pendrive that will not format is not one problem - it is five different problems wearing the same error. Work through the causes in this order: protect your files first, clear the software locks, rebuild the drive with diskpart, and only then accept the verdict. One honest warning from the video itself: when a pendrive locks itself write-protected, the fix works in only a minority of cases, because the lock is usually the dying drive protecting itself. The fixes cost nothing, so try them - but keep your expectations honest.
Formatting erases everything on the drive, permanently. So before any fix: if the pendrive still opens, copy every file you care about to the PC right now and check the copies open. If Windows says the drive must be formatted before use (the RAW case), do not click Format - read the rescue case guide on this channel's blog first. If the drive is empty or the data is worthless, skip ahead and work freely.
Sometimes Windows itself is ordered to block writing to removable drives. Check the registry value at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies - if a WriteProtect value sits there set to 1, every pendrive on that PC becomes read-only. Set it to 0 (or delete the value), restart, and test. On office PCs this is often set by policy on purpose - in that case only the IT admin should change it.
This is the method shown in the video. Open Command Prompt, type diskpart and approve the admin prompt. Then run these commands one by one:
list disk - find your pendrive by its sizeselect disk X - replace X with the pendrive's numberattributes disk - confirms the read-only stateattributes disk clear readonly - removes the lockUnplug the drive, plug it back in, and try the format again. If the lock cleared, you were in the lucky group.
Open Disk Management. If your pendrive's file system column says RAW instead of FAT32 or exFAT, Windows can no longer read the drive's filing structure, so normal format attempts fail or behave strangely. Chkdsk cannot help here - it refuses RAW drives outright. If you do not need the data, rebuild the drive with the diskpart clean method in Fix 5. If you do need the data, stop and rescue it first.
Some very cheap pendrives are frauds: the controller reports 256 GB or 512 GB while the real memory chip inside holds only 8 or 16 GB. Windows happily formats the fake size, but files copied beyond the real capacity wrap around and corrupt each other. The giveaway is a big-name capacity at an impossible price. A free tool called H2testw settles it - it fills the whole drive and verifies every byte. No format fixes a fake; the drive was never the size it claimed.
When the lock is cleared but the format still fails, wipe the partition structure and rebuild it. In diskpart, after selecting the correct disk:
cleancreate partition primaryformat fs=fat32 quick (or fs=exfat for large drives)assignexitThis succeeds on drives whose only problem was a damaged partition table or file system.
Here is the cause nobody wants to hear. Flash memory wears out, and when a pendrive's controller detects failing cells, it often locks the whole drive read-only as self-protection so the remaining data can still be copied off. That is why the read-only lock comes straight back after you clear it, why formats stall at the same percentage every time, and why the drive works perfectly for reading but refuses every write. No software can revive worn-out memory cells.
As the video says plainly: only around 10 percent of write-protected pendrives come back with these fixes - the rest are permanently damaged. So run the full order once: files rescued, registry checked, attribute cleared, clean rebuild tried. If the drive still refuses, stop spending time on it. If it is under warranty, claim a replacement - that is the correct fix. And never trust a once-locked drive with the only copy of anything important again.
clean erases the disk you selected - completely and instantly. Select your Windows hard disk by mistake and that data is gone. Always match the disk number by its size in list disk, and if you are not sure, stop.The video shows the diskpart fix live, including how to select the right disk and read the attributes - watch it before you run the commands.
▶️ Watch Full VideoMost modern pendrives have no physical switch at all. The message means either a software flag (registry policy or the read-only attribute) or the drive's controller has locked itself because its flash memory is failing. Clear the software flags with diskpart - if the lock returns instantly, it is the hardware kind and the drive is at the end of its life.
Yes - clean wipes the partition structure and format erases the data. That is why the first fix in this guide is to copy everything off the drive while it still reads. Only run clean on a drive whose data you have rescued or do not need.
Then the drive is probably healthy and your PC is the problem: a registry write-protect value, a group policy on office machines, or a faulty USB port. Test the drive on a second PC early - it splits the problem in half and stops you blaming a good drive.