This guide walks you through the most common fixes for the “Windows was unable to complete the format” error and other cases where a USB flash drive refuses to format in Windows 10. You’ll start with the quickest software fixes and move to more thorough methods like DiskPart and registry edits, so you can get the drive working again without losing data you still need.
What You’ll Need
- A Windows 10 PC with an available USB port
- The USB flash drive that won’t format
- Administrator access to the PC (you’ll need it for DiskPart and some other steps)
- A backup location for any files you want to keep from the drive
Step-by-Step
- Back up any important files. Before doing anything else, copy any files you need from the USB drive to your PC or another drive. Several of the fixes below erase everything on the USB drive.
- Try a different USB port. Plug the drive into a different port, preferably a USB 2.0 port on the back of a desktop or a different port on a laptop. Faulty ports can cause write errors that make formatting fail.
- Try formatting with File Explorer. Open This PC, right-click the USB drive, select Format, choose a file system (FAT32 for drives under 32 GB, exFAT for larger ones), leave allocation unit size as default, check “Quick Format,” and click Start. If this works, you’re done.
- Use Disk Management. Right-click the Start button and select Disk Management. Find your USB drive (it’s usually labeled “Removable”), right-click its partition, and choose Format. If the option is grayed out, right-click the partition and choose Delete Volume, then right-click the unallocated space and select New Simple Volume to create and format a new partition.
- Clean the drive with DiskPart. Open Command Prompt as administrator (type “cmd” in the search box, right-click Command Prompt, and select Run as administrator). Type
diskpartand press Enter. Then typelist diskand press Enter. Note the disk number of your USB drive (check its size to identify it). Typeselect disk X(replace X with the number) and press Enter. Typecleanand press Enter. This removes all partitions and data. Then typecreate partition primary, press Enter, typeformat fs=fat32 quick(orfs=exfatfor larger drives), press Enter, and finally typeassignand press Enter. Close the window. - Check the drive for errors. Open File Explorer, right-click the USB drive, select Properties, go to the Tools tab, and click Check under Error checking. If prompted, select “Repair drive.” After it finishes, try formatting again.
- Disable write protection via Registry Editor. Press Win + R, type
regedit, and press Enter. Navigate toHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. If theStorageDevicePolicieskey doesn’t exist, right-click Control, select New > Key, and name itStorageDevicePolicies. Inside that key, look for a DWORD value namedWriteProtect. If it exists, double-click it and set its value to0. If it doesn’t exist, right-click in the right pane, select New > DWORD (32-bit) Value, name itWriteProtect, and set it to0. Close the editor and restart the PC. - Remove the drive’s physical write-protect switch. Some USB drives have a tiny slider on the side. If yours has one, slide it to the unlocked position (usually away from the “lock” icon) and try again.
- Use a third-party formatting tool. If Windows still fails, download a reputable USB formatting utility like Rufus or HP USB Disk Storage Format Tool. These tools often bypass Windows’ built-in limitations. In Rufus, select your drive, choose a partition scheme (MBR for most), file system (FAT32 or exFAT), and click Start.
Common Mistakes
- Choosing the wrong disk in DiskPart. Running
cleanon your main hard drive instead of the USB drive will erase your operating system. Always double-check the disk number and size before proceeding. - Formatting the wrong drive in File Explorer. Make sure you right-click the USB drive, not an internal partition. Look at the drive letter and total size to confirm.
- Using FAT32 on a drive larger than 32 GB. Windows’ built-in format tool won’t offer FAT32 for drives over 32 GB. Use exFAT instead, or use a third-party tool if you specifically need FAT32.
- Skipping the “Quick Format” checkbox. A full format takes a long time on large drives and can appear to hang. Quick format is usually sufficient unless the drive has bad sectors.
- Forgetting to eject the drive safely. Pulling the drive out while it’s being written to can corrupt the file system, making it unformattable. Always use “Safely Remove Hardware” when possible.
Tips
- Try formatting on a different computer. If it works there, the issue is with your PC’s USB controller or drivers, not the drive.
- Update your USB controller drivers. Open Device Manager (right-click Start > Device Manager), expand “Universal Serial Bus controllers,” right-click each item, and select “Update driver.”
- If the drive is very old or has been used heavily, it may simply be failing. Drives have a limited number of write cycles, and a dying drive often becomes read-only or unformattable.
- Use the manufacturer’s repair tool if your drive is from a major brand like SanDisk or Kingston. These tools can sometimes revive drives that Windows can’t touch.
- If the drive still shows up in Disk Management but not File Explorer, assign a drive letter manually: right-click the partition, select “Change Drive Letter and Paths,” and add a letter.
Troubleshooting
DiskPart says “Access is denied.” You didn’t run Command Prompt as administrator. Close and reopen it with “Run as administrator.”
DiskPart says “The disk is write-protected.” Check the physical switch on the drive, then try the registry fix in Step 7. If the registry key is already set to 0, the drive’s controller may have locked itself due to failing flash memory.
The drive doesn’t appear anywhere. Unplug it, restart your PC, and plug it back in. If it still doesn’t show, try a different cable (if it’s an external SSD) or a different USB port. If it’s completely dead, it may need replacement.
Formatting gets to 100% then fails. This usually indicates a bad sector or a corrupted partition table. Run clean in DiskPart (Step 5) to wipe the entire partition table, then create a new partition. If that fails, the drive is likely physically damaged.
The drive formats but files can’t be written. The drive is probably failing or has a physical write-protect switch engaged. Check the switch, then run a full format (uncheck “Quick Format”) to remap bad sectors.
After cleaning, Windows won’t assign a letter. In Disk Management, right-click the unallocated space, select New Simple Volume, and follow the wizard. If the option is grayed out, the drive may not be properly connected or is failing.
Frequently Asked Questions
Why does Windows say “Windows was unable to complete the format”? This error usually means the drive has a corrupted file system, bad sectors, or a write-protection flag. The DiskPart clean command is the most reliable fix because it wipes the entire partition table.
Will formatting erase my files permanently? Yes, formatting removes the file system and makes data unrecoverable through normal means. If you need the data, back it up first. If the drive won’t let you copy files, try data recovery software before formatting.
What file system should I use? Use FAT32 for drives 32 GB or smaller and for maximum compatibility with older devices. Use exFAT for larger drives or files over 4 GB. NTFS works on Windows but may not be readable on cameras, TVs, or game consoles.
Can a write-protected USB drive be fixed? Sometimes. First check for a physical switch. Then try the Registry Editor fix (Step 7). If neither works, the drive’s controller has locked it permanently, often because the flash memory is worn out.
Why is my USB drive showing 0 bytes or no media? This usually means the drive’s controller can’t read the flash memory properly. Try DiskPart clean, then create a new partition. If it still shows 0 bytes, the drive is likely dead and should be replaced.
Is it safe to use third-party formatting tools? Yes, reputable tools like Rufus are widely used and safe. They simply bypass Windows’ built-in restrictions. Avoid tools from unknown websites, as they may bundle malware.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Access Your Computer From Anywhere: Step-by-Step
- How to Get More Disk Space on Mac: 12 Fixes
- Wii Browser Games With a USB or Bluetooth Controller
- Delete Focus on iPhone: Quick Steps
- Open System Configuration in Windows 10: 7 Ways
- How to Connect VPN: Step-by-Step Setup Guide