If Windows says “Windows was unable to complete the format” or “The format did not complete successfully,” the fix usually involves clearing the drive’s read-only attribute, using DiskPart, or formatting via Disk Management. These errors are common when a USB drive is write-protected, has a corrupted partition table, or contains a lingering file system issue. Below are the practical steps to resolve the problem, along with the reasons it happens and how to avoid it in the future.
Why Does the “Cannot Format” Error Happen?
USB flash drives are simple devices, but they rely on a controller chip and NAND memory that can behave unpredictably. The “cannot format” error typically appears for one of these reasons:
- Write protection: Many drives have a physical lock switch; if it’s set to “lock,” Windows will refuse to format. Some drives also have a firmware-level read-only flag that persists even without a switch.
- File system corruption: An interrupted write, unsafe removal, or power surge can corrupt the partition table or file system, making the drive unreadable to Windows’ normal format tool.
- Driver or port issues: A faulty USB port, outdated driver, or conflicts with other storage software can prevent the format operation from completing.
- Failing hardware: NAND flash cells wear out after a limited number of write/erase cycles. When they fail, the controller may lock the drive to protect remaining data, and formatting becomes impossible.
First Steps: Check the Lock and Try a Different Port
Before touching any software, do a quick physical check. Look at the side of the USB drive for a small switch. If it’s present and slid to the “lock” position, slide it back to “unlock” and try again. If there’s no switch, the drive might still be write-protected at the firmware level, which we’ll address in the DiskPart section.
Also try a different USB port, preferably one directly on the computer’s motherboard (not a hub). A port with insufficient power or a loose connection can cause intermittent write failures. If the drive works on another computer, the issue is likely your port or driver, not the drive itself.
Use DiskPart to Clear Write Protection and Reformat
DiskPart is a built-in Windows command-line tool that can remove read-only attributes and recreate partitions. This is the most reliable fix for a drive that refuses to format in File Explorer.
- Press Windows Key + X and select Windows PowerShell (Admin) or Command Prompt (Admin).
- Type
diskpartand press Enter. If prompted by UAC, click Yes. - Type
list diskand press Enter. Note the disk number of your USB drive (e.g., Disk 2). Be careful – do not select the wrong disk or you could wipe your system drive. - Type
select disk X(replace X with the correct number) and press Enter. - Type
attributes disk clear readonlyand press Enter. This removes the read-only flag. - Type
cleanand press Enter. This erases the entire drive’s partition table. - Type
create partition primaryand press Enter. - Type
format fs=ntfs quick(orfs=fat32for compatibility) and press Enter. - Type
assignto give the drive a letter, then typeexit.
If the clean command fails with “DiskPart has encountered an error: The parameter is incorrect,” the drive may be physically damaged or the controller is failing. In that case, try the next steps.
Use Disk Management to Create a New Volume
If DiskPart works but formatting still fails, the drive may have a partition that Windows can’t properly initialize. Disk Management gives you a graphical way to delete and recreate partitions.
- Right-click the Start button and select Disk Management.
- Find your USB drive in the lower list. It will be labeled “Removable” and show the correct capacity.
- Right-click each partition on the drive and select Delete Volume. If the drive shows “Unallocated,” skip this step.
- Right-click the unallocated space and select New Simple Volume.
- Follow the wizard, choosing a file system (NTFS for files over 4GB, FAT32 for compatibility) and assigning a drive letter.
If Disk Management shows the drive as “Unreadable” or “No Media,” the drive’s controller is not responding correctly, and software fixes may not help.
Try Third-Party Formatting Tools
When Windows tools fail, dedicated formatting utilities can sometimes reset the drive’s controller. These tools often bypass Windows’ restrictions and perform a low-level format that clears all data and rebuilds the file system.
- HP USB Disk Storage Format Tool – a free tool that formats USB drives and can create bootable media.
- SD Card Formatter – designed for SD cards, but works with many USB drives that use the same controller.
- Rufus – primarily for creating bootable USBs, but it also has a format option that can overwrite stubborn drives.
Before using any third-party tool, back up any data you need – these tools will erase everything. Also, be aware that some tools may not support the latest USB 3.0 drives or exFAT file systems.
Update USB Drivers and Check for Hardware Issues
Sometimes the problem is not the drive but the computer’s USB controller. Outdated or corrupted drivers can cause write failures that look like a drive problem.
- Right-click the Start button and select Device Manager.
- Expand Universal Serial Bus controllers.
- Right-click each USB Root Hub and select Uninstall device. Restart your computer – Windows will reinstall the drivers automatically.
- Alternatively, right-click and select Update driver to search for newer versions.
If the drive still won’t format after trying it on another computer, it’s likely dead. Flash memory has a finite lifespan, and once the controller locks up, no software can revive it.
Frequently Asked Questions
Why does my USB drive say “The disk is write-protected” even though there’s no lock switch?
Some drives have a firmware-level write-protection flag that gets set automatically when the controller detects errors or when the drive reaches its end-of-life. DiskPart’s attributes disk clear readonly command can often remove this flag, but if the drive is failing, the flag may reappear or the command may fail.
Can I format a USB drive that has a physical lock switch in the locked position?
No. The physical switch cuts power to the write circuitry, so the drive is read-only at the hardware level. Slide the switch to the unlocked position and try again. If the switch is broken, the drive may be permanently read-only.
Will formatting a USB drive fix bad sectors?
No. Formatting does not repair physical damage to the NAND memory. It only recreates the file system, which can hide bad sectors temporarily, but they will reappear. If the drive has bad sectors, back up your data and replace it.
What is the difference between a quick format and a full format?
A quick format only removes the file system metadata, making the drive appear empty. A full format also scans the entire drive for bad sectors and writes zeros to every sector, which takes much longer. For a failing drive, a full format may cause the drive to lock up completely.
Can I format a USB drive to exFAT if it’s larger than 32GB?
Yes. Windows’ built-in format tool only offers FAT32 for drives up to 32GB, but you can use DiskPart or third-party tools to format larger drives as exFAT. exFAT supports files larger than 4GB and is compatible with Windows, macOS, and many modern devices.
Is it safe to use a third-party formatting tool?
Generally yes, but only if you download from the official source. Third-party tools can overwrite the drive’s firmware if they include a low-level format option, which can brick the drive if interrupted. Always back up data and use the tool’s default settings unless you know what you’re doing.
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
- Android Enterprise Device Management: How to Choose
- Fix Windows 10 Computer Freezes Randomly
- Enable or Disable Speech Recognition in Windows 10
- iPad Mini Tips: Settings, Shortcuts, and Everyday Use
- Schedule Do Not Disturb in Windows 11 for Work and Sleep
- Fix iPhone Battery Drain on iOS 10: 10 Practical Tips