Can't Format USB Drive on Windows? Fix It
In this article
If Windows refuses to format your USB flash drive, the cause is usually one of a few things: the drive is write-protected, the partition table is damaged, a background process is holding the drive, or the flash memory itself has failed. The fastest fix is to open Disk Management, delete the existing volume, and create a new simple volume. If that fails, try the DiskPart clean command, then check the physical write-protect switch and the drive's health. Below is the full step-by-step, plus what to do when Windows still says the format did not complete.
What You'll Need
- A Windows PC (Windows 10 or 11; steps are similar on Windows 8.1).
- The USB flash drive you want to format.
- Administrator rights on the PC (needed for Disk Management and DiskPart).
- If the drive contains data you want to keep, a second drive or cloud folder to copy it to first — formatting erases everything.
Step-by-Step
- Back up anything you need. Formatting deletes all files on the drive. Copy important files to another drive or cloud storage before you start. If the drive is unreadable, skip this step and accept the data loss.
- Check the physical write-protect switch. Some USB drives and SD-card adapters have a tiny sliding switch on the side. If it is set to Lock, Windows can read the drive but cannot format it. Slide it to the unlocked position.
- Close everything that might be using the drive. Close File Explorer windows showing the drive, any backup or sync tools (OneDrive, Google Drive, backup software), antivirus scans, and command prompts. Then unplug the drive, wait five seconds, and plug it back in.
- Open Disk Management. Right-click the Start button and choose Disk Management (or press Windows+X and pick it from the menu). Wait for the list of drives to load. Labels can differ slightly by Windows version and region, but the layout is the same.
- Find your USB drive. Look at the disk number and size to identify it — for example, Disk 2 with 14.9 GB. Do not touch Disk 0 (your system drive). If the drive shows as “Not initialized” or “Unallocated”, that is a strong sign the partition table is damaged, which is why the normal format failed.
- Delete the existing volume. Right-click the partition on the USB drive and choose Delete Volume. This removes the partition but does not touch other disks. If Delete Volume is greyed out, the drive is likely write-protected or read-only at the firmware level — skip to the DiskPart steps below.
- Create a new simple volume. Right-click the now-unallocated space and choose New Simple Volume. Follow the wizard: accept the default size, assign a drive letter, and choose a file system. For a drive used on Windows only, NTFS is fine. For a drive that must work on Windows, macOS, and many TVs and car stereos, choose exFAT. FAT32 works almost everywhere but cannot store files larger than 4 GB.
- Finish the wizard and test. Click Finish. Windows formats the drive and assigns the letter. Open File Explorer, open the drive, and create a small test file to confirm it is writable.
- If Disk Management fails, use DiskPart. Right-click Start, choose Terminal (Admin) or Command Prompt (Admin), and type
diskpart. Then typelist diskand identify your USB drive by its size. Typeselect disk N(replace N with the USB disk number — double-check it, because the next command erases the selected disk). Typeclean, thencreate partition primary, thenformat fs=exfat quick(orfs=ntfs), thenassign, thenexit. This wipes the partition table and rebuilds it, which fixes most “Windows was unable to complete the format” errors. - Check the drive's health if it still fails. If both Disk Management and DiskPart fail, the flash memory or controller is probably failing. Try the drive in another USB port (preferably on the back of a desktop) and on another PC. If it fails everywhere, replace it — a drive that cannot be formatted reliably should not be trusted with data.
Common Mistakes
- Formatting the wrong disk. In Disk Management and DiskPart, always confirm by size and disk number. Selecting Disk 0 erases your Windows installation.
- Choosing FAT32 for large files. FAT32 cannot hold a single file over 4 GB, so a movie copy will fail even though the format succeeded. Use exFAT or NTFS instead.
- Ignoring the write-protect switch. A locked SD adapter or USB drive will make every format attempt fail with a generic error.
- Formatting while a program is using the drive. Sync clients and antivirus tools can lock the volume mid-format. Close them first.
- Using Quick Format when the drive is corrupted. Quick Format only rewrites the file system; if the partition table is damaged, do a full format or the DiskPart clean method instead.
Tips
- Use a rear USB port on a desktop rather than a front-panel hub — power and connection stability matter during formatting.
- For drives used across Windows, macOS, and devices like TVs, exFAT is the most compatible choice that still supports large files.
- Label the drive with a short name (no spaces or special characters) so it is easy to identify later.
- After formatting, safely eject the drive before unplugging it to avoid corrupting the new file system.
- If the drive repeatedly becomes read-only, treat it as a hardware warning sign and stop relying on it for important data.
Troubleshooting
- “The disk is write-protected” error. Check the physical switch first. If there is none, the drive's controller may have locked itself after a failure; DiskPart's
cleancommand sometimes clears it, but if not, the drive is likely at the end of its life. - “Windows was unable to complete the format.” Run DiskPart and use
cleanfollowed bycreate partition primaryandformat. If that fails, try a full format instead of quick, and test in another USB port. - Drive shows as “No Media” or 0 bytes. The controller is not reporting the flash memory correctly. Try another PC; if it still shows 0 bytes, the drive is failing and should be replaced.
- Format succeeds but the drive is read-only. This usually means the flash memory has worn out and switched to read-only mode to protect your data. Copy anything you need off it and replace it.
- Disk Management shows the drive as “Not Initialized.” Right-click the disk and choose Initialize Disk, then create a new volume. If initialization fails, use DiskPart
clean. - Antivirus blocks the format. Temporarily disable real-time protection, format the drive, then re-enable it. Do not leave protection off longer than needed.
Frequently Asked Questions
Will formatting erase everything on the USB drive?
Yes. Formatting removes all files and folders. Back up anything important before you start; recovery after formatting is not guaranteed.
What file system should I choose?
NTFS for Windows-only use, exFAT for cross-platform use with large files, and FAT32 only when a device specifically requires it and your files are under 4 GB.
Can I format a USB drive that shows 0 bytes?
Usually not. A 0-byte reading means the controller cannot see the flash memory, which is a hardware failure. Try another port and PC, but expect to replace the drive.
Why is the Format option greyed out in File Explorer?
The drive is probably write-protected, in use by another program, or its partition table is damaged. Use Disk Management or DiskPart instead.
Does formatting fix a corrupted USB drive?
It fixes file-system corruption and damaged partition tables. It cannot repair failing flash memory or a dead controller.
Is it safe to use DiskPart clean?
Yes, if you select the correct disk. clean erases the entire selected disk, so confirm the disk number by its size before running it.