Getting “Windows Was Unable to Complete the Format” error when trying to format a disk drive or external storage device on a Windows system. This error usually indicates that the operating system could not execute the formatting operation on a target storage device due to underlying issues that prevent it from erasing data and preparing the drive. Several factors can cause this, such as write protection, file system errors, bad sectors, or a corrupted/damaged device that Windows can’t properly recognize or access. If you see the “Windows Was Unable to Complete the Format” error with a USB flash drive, SD card, or similar device, here’s what to do when Windows can’t format the drive.
Contents
- 1 Why Windows Was Unable to Complete the Format
- 1.1 How to Format a Drive in Windows
- 1.2 Check for Write Protection
- 1.3 Format The Drive Using Disk Management
- 1.4 Format the Drive Using Command Prompt (Diskpart)
- 1.5 Repair the Device Using Windows Explorer (Error Checking)
- 1.6 HP USB Disk Storage Format Tool
- 1.7 FAQs: Windows Was Unable to Complete the Format
Why Windows Was Unable to Complete the Format
Several underlying issues prevent Windows from erasing data and formatting the drive. Corrupted file system, bad sectors (damaged areas), write protection, malware, or physical damage are common causes of the “Windows was unable to complete the format” error on your USB flash drive or SD card.
- The device is write-protected, which means it cannot be modified or erased.
- The device is corrupted or physically damaged, so Windows cannot recognize or access it correctly.
- The device has bad sectors, so some parts of it are physically damaged and cannot store data.
- The device is incompatible with the file system or partition style you are trying to format it with.
How to Format a Drive in Windows
Formatting a drive in Windows is usually straightforward. However, note that formatting a drive erases all data on it. Make sure you have a backup of important data before you proceed.
- Press Win + E on your keyboard or click the File Explorer icon in the taskbar.
- Locate the drive you want to format. Be very careful to select the correct drive to avoid accidental data loss.
- Right-click the drive you want to format and select Format from the context menu.

Here, you can select the File System (NTFS is generally recommended for Windows) and the Allocation Unit Size. You can usually leave the Allocation Unit Size at the default setting.
If you’re in a hurry, you can check the Quick Format option. This will speed up the process, but it will not check for bad sectors on the disk.
Check for Write Protection
Some devices, especially SD cards and certain USB drives, have a physical switch that enables or disables write protection. If your device has one, make sure it is in the unlocked position.
If your device does not have a physical switch, you can use Command Prompt or Diskpart to try to remove write protection at the software level.
Format The Drive Using Disk Management
The Disk Management tool in Windows allows you to manage partitions and disks. With Disk Management, you can create new volumes, extend or shrink partitions, change drive letters, delete or format partitions, and more. Damaged flash drives or USB drives can often be formatted using this tool.
Disk Management is another tool that can help you format your device.
To format a drive using Disk Management:
- Press Windows key + X and select Disk Management.
- Disk Management will display all attached storage devices (including USB drives).
- In the center pane, find your problematic device. You should be able to recognize it by its size and by the way Windows displays it (for example, as Unallocated space or with an existing partition).
- If the drive has a partition, right-click that partition and select Format.
- Choose the desired File System (for example, NTFS) and check Perform a quick format if you want a faster process. Then click OK to start formatting.
If the Drive Shows Unallocated Space
If, in Computer Management / Disk Management, the problematic drive is displayed as Unallocated space:
- Right-click on the unallocated area and select New Simple Volume.
- The New Simple Volume Wizard will start. Click Next.
- Specify the volume size (you can usually leave the default to use all available space) and click Next.
- Assign a drive letter and click Next.
- Select Format this volume with the following settings, choose the File system (NTFS is recommended), leave Allocation unit size as Default, and check Perform a quick format.
- Click Next, then Finish.
After a few moments, your drive should be formatted and correctly recognized by Windows in File Explorer.
Format the Drive Using Command Prompt (Diskpart)
If the above methods don’t work, you can use the Diskpart command-line tool. This is one of the most effective ways to format a USB drive or other storage device, especially when you’re facing errors.
Warning: Diskpart is powerful. Selecting the wrong disk can cause data loss on other drives. Double-check the disk number before proceeding.
- On the Start menu, type cmd. Right-click Command Prompt in the search results and select Run as administrator.
- In the Command Prompt window, type: diskpart and press Enter.
- Next, type “list volume” and press Enter. You’ll see a list of all volumes on your computer.
- Identify your USB drive or problematic drive by its size and label. For example, assume it is listed as Volume 4.
- Type the following command select volume 4 (replace 4 with your actual volume number) and press Enter. You should see a message that Volume 4 is now the selected volume.
- Now type the following commands one by one, pressing Enter after each:
clean
This command will erase the partition and file system information from the selected disk. Once the process is complete, Diskpart will confirm that the disk has been cleaned.
Create a new primary partition and make it active:
- create partition primary
- select partition 1
- active
Now format the partition with the NTFS file system: format fs=ntfs
Wait for the formatting process to reach 100%.
Finally, assign a drive letter using (optional but recommended): assign
Type exit to close Diskpart, then close Command Prompt.
Open This PC or File Explorer and check the drive. Try copying some data to verify it’s working correctly.
Using this method, you can often repair corrupted SD cards, USB flash drives, and even external hard drives.
For quick reference, here is the basic Diskpart command list to format a USB drive:
Diskpart command sequence:
-diskpart
-list disk
-select disk ‘your disk number’
-clean
-create partition primary
-active
-format fs=NTFS
-assign
After running these commands, you should no longer see errors when trying to format the disk drive. If you still encounter problems, consider using third-party software to format, clean, and attempt to repair the drive.
Repair the Device Using Windows Explorer (Error Checking)
Sometimes, Windows can detect and fix file system errors on your device automatically using the built-in Error checking tool.
- Connect your device to your PC and open Windows Explorer.
- Right-click on your device’s drive letter and choose “Properties”.
- Click on the “Tools” tab and then click on the “Check” button under “Error checking“.
- Click on “Scan and repair drive” and wait for the process to complete.
- When the scan finishes, try formatting your device again and see if the error is resolved.
HP USB Disk Storage Format Tool
If none of the above methods work, you can try a third-party tool to format your device more effectively. HP USB Disk Storage Format Tool is an easy-to-use yet powerful application that can fix many formatting issues with USB drives. Its interface is very similar to the standard Windows format dialog.
Download HP USB Disk Storage Format Tool
- Download and install HP USB Disk Storage Format Tool.
- Run the tool and select your USB drive from the device list.
- Choose the desired file system (for example, NTFS for drives larger than 4 GB).
- Click Start to format the drive.
Note: For problem drives, avoid using the Quick Format option if possible. A full format takes longer, but it is generally safer and more effective at detecting bad sectors.
After completing these steps, your drive should be usable again in Windows without the “Windows Was Unable to Complete the Format” error.
FAQs: Windows Was Unable to Complete the Format
1. What does “Windows was unable to complete the format” mean?
It means Windows tried to format your storage device (USB, SD card, external drive, etc.) but failed due to issues like a corrupted file system, bad sectors, write protection, malware, or physical damage.
2. Can I fix a USB drive that shows this error?
In many cases, yes. You can try formatting via File Explorer, Disk Management, or Diskpart, running CHKDSK to repair file system errors, and scanning for viruses. If the drive is physically damaged, it may not be repairable.
3. Will formatting the drive erase all my data?
Yes. Formatting erases all data on the drive. If you have important files, try to recover them first using data recovery software or a professional service before formatting.
4. Why is my USB or SD card write-protected and won’t format?
It may have a physical write-protection switch (especially SD cards), or a software-based write-protection flag set by Windows, malware, or the device firmware. Check the switch, scan for malware, and, if possible, use DiskPart to clear attributes.
5. What should I do if none of the methods work?
If File Explorer, Disk Management, Diskpart, and third‑party tools all fail, the drive is likely severely corrupted or physically damaged. At that point, replacing the drive is usually the best option, especially if the cost of recovery is higher than the device value.
Also read:
- Fix Windows 10 memory management blue screen error 0x0000001a
- How to Fix You need to format the Disk before you can use it Windows
- Format write-protected USB Drive using CMD Prompt
- EaseUS Partition Master: Best Partition Manager for Windows PC
- Solved: Windows 10 Unmountable boot volume (STOP: 0x000000ED) BSOD