Whether it’s a USB key, an external hard drive, an SSD or a simple HDD, formatting can be a problem if your system is not well optimized or if the drive is damaged…
When a drive or disk cannot be formatted we are faced with the error: “Windows could not perform the format.”
And to resolve this problem there are several solutions which I will tell you about in this tutorial.
Let’s go!
Possible causes of the error “Windows could not complete the format.”
If you regularly use your USB key or hard drive or SSD you need to format them from time to time…
And if one day while formatting you get this error: Windows could not perform the format.
![How to resolve “Windows could not complete the format” 2 1](https://webtrainer.net/wp-content/uploads/2023/09/1.webp)
So you need to know that every effect has a cause, and in this case the causes are simple and there is always a solution.
Cause #1: Virus infection
When we use our USB key or hard drive in an internet café we risk contaminating it with a virus, to remedy this we must scan the computer using MalwareBytes or an Anti-spyware such as Microsoft Defender. I am not going to detail the MalwareBytes analysis in this tutorial but it is advisable to do it if you think the cause is a virus and if your PC restarts by itself or does funny things…
Cause #2: Physical damage
If the storage device is physically damaged, no software can format it unless you repair it by a specialist in order to replace the motherboard if it is an external hard drive or to repair it physically.
Cause #3: Write protection
There is also a good chance that the device is write protected and therefore impossible to format.
The solution to the “Windows could not complete the format” error.
1. Use Disk Management to format USB drive
To start we will use Disk Management which you can access by right-clicking on Start and then clicking on “ Disk Management ”.
![How to resolve “Windows could not complete the format” 3 2](https://webtrainer.net/wp-content/uploads/2023/09/2.webp)
You can also access it by using the following command in Run ( Win+ R):
diskmgmt.msc
![How to resolve “Windows could not complete the format” 4 3](https://webtrainer.net/wp-content/uploads/2023/09/3.webp)
Right-click on the storage device (USB key, SSD, etc.) that you want to format then choose ” Format… ” (avoid the C: it is the System disk)
![How to resolve “Windows could not complete the format” 5 4](https://webtrainer.net/wp-content/uploads/2023/09/4.webp)
Click “Yes” to confirm that the data will all be lost…
![How to resolve “Windows could not complete the format” 6 5](https://webtrainer.net/wp-content/uploads/2023/09/5.webp)
Put FAT32 for drives less than 32GB, and exFAT for drives 64GB and above. NTFS for hard drives and SSDs.
Check “ Perform a quick format ” then click “ OK ”.
![How to resolve “Windows could not complete the format” 7 6](https://webtrainer.net/wp-content/uploads/2023/09/6.webp)
2. Format via CMD Command Prompt
Open a new CMD window via the Start menu as administrator then use the following command:
format /q /x F:
Replace F: with the letter of your drive or hard drive you want to format. Press Enter to confirm formatting.
![How to resolve “Windows could not complete the format” 8 7](https://webtrainer.net/wp-content/uploads/2023/09/7.webp)
3. Remove write protection
To remove write protection and format storage devices open the Registry Editor.
In order to open the Registry Editor use the following command in Run:
regedit
![How to resolve “Windows could not complete the format” 9 8](https://webtrainer.net/wp-content/uploads/2023/09/8.webp)
Copy the following path into the address bar at the top then press Entrer:
Ordinateur\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
Then create a new Key with the name “ StorageDevicePolicies ”, if this key already exists skip this step and click on “ StorageDevicePolicies ”.
![How to resolve “Windows could not complete the format” 10 9](https://webtrainer.net/wp-content/uploads/2023/09/9.webp)
After selecting the ” StorageDevicePolicies ” key create a new 32-bit DWORD Value and name it ” WriteProtect “, if this value already exists skip this step.
![How to resolve “Windows could not complete the format” 11 10](https://webtrainer.net/wp-content/uploads/2023/09/10.webp)
Double-click on “ WriteProtect ” and set the value to “ 0 ” (zero)
![How to resolve “Windows could not complete the format” 12 11](https://webtrainer.net/wp-content/uploads/2023/09/11.webp)
4. Format USB drive with diskpart
Open a new CMD window via the Start menu as administrator then type the following command:
diskpart
![How to resolve “Windows could not complete the format” 13 12 1](https://webtrainer.net/wp-content/uploads/2023/09/12-1.webp)
Enter the following command with change of the disk number to select depending on the size of the device:
list disk
select disk 3
![How to resolve “Windows could not complete the format” 14 13 1](https://webtrainer.net/wp-content/uploads/2023/09/13-1.webp)
Then put the following commands chained together as below (replace ntfs with exfat if you want to format a USB key) :
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
format fs=ntfs quick
ASSIGN
EXIT
![How to resolve “Windows could not complete the format” 15 14](https://webtrainer.net/wp-content/uploads/2023/09/14.webp)
5. Check the file system on the drive
Right-click on your USB drive and choose “ Properties ”.
![How to resolve “Windows could not complete the format” 16 15](https://webtrainer.net/wp-content/uploads/2023/09/15.webp)
Open the “ Tools ” tab then click “ Check ”.
![How to resolve “Windows could not complete the format” 17 16](https://webtrainer.net/wp-content/uploads/2023/09/16.webp)
Click “ Scan and Repair Drive ”.
![How to resolve “Windows could not complete the format” 18 17](https://webtrainer.net/wp-content/uploads/2023/09/17.webp)
6. Repair file system with chkdsk
A final step to repair the file system in order to format your USB key or external hard drive is to use the following command in CMD (as admin) :
chkdsk F: /f /r /x
![How to resolve “Windows could not complete the format” 19 18](https://webtrainer.net/wp-content/uploads/2023/09/18.webp)
And there you have it dear reader
I hope this tutorial helped you format your USB drive successfully!