December 29, 2015

How to fix "Windows was unable to complete the format" error

Symptom

"Hey guys, I bought a brand new 64GB USB flash drive with the purpose of carrying documents and other files between home and company. It was formatted to NTFS to store data, which was proved too slow. Recently it reports errors when it is connected to computer and yesterday it asked me to format it. So I tried to reformat it to FAT32. The problem is that formatting can't be performed successfully and gives error message 'Windows was unable to complete the format'.

For the moment, the USB flash drive turns inaccessible and can't be formatted. I really need to be able to format it and make it normal to use, as it holds important documents. Any help will be greatly appreciated!"



This is one of those frequently asked questions on many forums and question sites and this post will give detailed and overall explanation about this issue. USB flash drives or memory cards are useful storage devices in modern society, as they are capable of storing a large amount of data but occupying small physical space. USB flash drive is easy to carry and transfer data, and memory cards, with smaller size, have become essential component in various digital products such as digital camera, cell phone, MP3 player, etc. USB drives are important to users and it's necessary to learn skills and solve the problem.

            Main causes that Windows can't format USB drive


Now and then, you need to format USB flash drive or SD card but get error messages saying Windows couldn't format the drive. This error may happen as a result of following reasons:

Virus infection

USB drives are very portable and they can be connected to computer easily via USB drive to backup or transfer data. Since they are often carried by users and might be used on various computers, USB drives are more likely to get damaged or infect virus. Every time you plug a USB drive into USB port of computer which is not protected by antivirus software such as public computers, USB drive will infect virus which often acts with a manner that fill USB drive with dangerous files and makes USB drive stop working.

Storage devices have bad sectors

Storage devices have bad sectors. As we all know, storage devices consists of sectors which are the smallest unite for data storing. Files stored on hard drive or USB drive usually occupy discontinuous sectors. Bad sector means the sector is damaged and can't be read or written, thus bad sectors can disrupt the formatting operation as well as file recovery. There are quite a few causes of bad sector, like bad quality, excessive defragmentation, unplug USB drive directly while it is working, etc.

Storage device damage

Physical damage is another reason that makes storage device inaccessible. All components of USB drive or local disk can't escape physical damage. Computer won't be able to format the device if it can't use the device, such as chip or circuit board doesn't work. Professional repair center can replace damaged circuit and other damaged part to make it workable again. Whereas, the replacement process costs quite higher than the USB drive itself.

Disk is write-protected

Besides, Windows can't format a drive which is write-protected. When USB drive gets well connected to computer, you start to copy some documents to it, then it reports messages "The disk is write protected. Remove the write protection or use another disk." As formatting is a kind of writing operation, so you need to remove the write-protection before formatting it.


How to fix Windows couldn't complete format on USB drive

If you are not capable of formatting your USB drive (USB flash drive, external hard drive, SD card, pen drive, etc.) in usual process then try to format that drive with following methods. Now connect USB drive to computer and follow step-by-step guide given below:

You should note that all these solutions won't be workable if the USB drive gets badly physical damage. Thus there is no guarantee that these methods work on all scenarios. What's more, make sure that important data and files of the drive to be formatted have been backed up, as files will be erased once the drive is formatted. If USB drive became inaccessible before you had time to backup data, then you need to perform file recovery first prior to formatting. Steps of file recovery from damaged USB drive will be talked in next section of this post.

Solution 1: Format via Disk Management

Disk Management is provided by Windows and it helps to manage partitions and disks for computer. Disk Management is able to create new volume, extend or shrink partition, change drive letter, delete or format partition, etc. Damaged flash drives can be formatted within Disk Management. If USB drive uses unrecognized file system format or becomes unallocated or uninitialized, it will not show in My Computer or Windows Explorer. Thus it's not available to format the drive through right-click menu "Format" option.

Step 1
Open Disk Management. Right click on My Computer and select item "Manage", and then click Disk Management on the left side. In the center section you can see local hard drive and partitions and the USB drive which can be recognized by capacity.



Step 2
Right click the flash drive and select "Format" option and select file system format to perform quick format. However, this action is not workable in some cases, and you need to try step 3.

Step 3
Right click on the USB drive and select "New Simple Volume" item. You'll get the New Simple Volume Wizard which guides you recreate new partition for the flash drive. Operations are following the onscreen instructions, setting options and click "Next" button. When the process is done, you'll find the USB drive has been formatted and is properly recognized by system.

Solution 2: Format with Command Prompt

Disk Management is not almighty and it is not helpful in many cases. Thus we need to switch to command line based formatting solution. It looks like this method is complicated to common users, but it is not. Follow steps below and see whether it can get everything done.

Step 1
For Windows 7 users click Start button and type cmd in the search both and press Enter. If UAC is enabled, you need to find Command Prompt from start menu and run it as administrator.

Step 2
Type command diskpart on the black windows and press Enter key. Then you can see partition and disk list of current computer. All drives are listed with numbers and Disk 4 is the flash drive in question.


Step 3
Continue typing disk 4 which is the problem drive and clean and press Enter. The drive will be scanned and its damaged file structure will be erased during scanning. Once the process is done, it reports confirmation message telling that it has successfully cleaned the drive, and new partition need to be created.

Step 4
Type create primary partition and hit Enter; next type in Command prompt format /FS:FAT32J: (you can copy and paste it.) and press Enter. Here J is the drive letter of the USB drive, and you can change it in line with specific cases. The drive will be formatted to FAT file system and the formatting is very fast.

Solution 3: Use PartitionGuru

If the first two methods do not work as expected for you then try to fix the issue with third party tool PartitionGuru. It's effective disk tool and partition manager and file recovery tool, which can check and repair bad sectors for local and USB drive, format partition or HDD, recover formatted and deleted data, etc. As the Windows can't format USB drive issue might be caused by bad sectors, we can check and repair bad sector for flash drive with PartitionGuru ahead of trying formatting.

Step 1
Run PartitionGuru and see its main interface listing detailed information of internal and external drives and their partitions.

Step 2
Click the problem USB drive and menu "Disk" to select "Verify or Repair Bad Sectors".



Step 3
It displays cylinder conditions with colored blocks, such as good, severe, damaged, etc. When bad sector checking completes, it reports how many bad sectors it finds out. Then click "Repair" button to repair bad sectors.

Step 4
Select the USB drive and click "Format" button to format the flash drive.

Note:
Repairing bad sectors damages files stored on and near bad sectors, thus if files on the drive are important to you, you need to backup or recover data first.


Free Download PartitionGuru

File recovery from USB drive that can't be formatted

Such kind of problem is very common to those who often works with USB drive, and it might end up with losing all files and folders. However, you are able to recover lost data provided that USB devices are not totally dead. One thing you should keep in mind is that you might not be able to recover data completely if the drive is formatted or repaired. Thus file recovery should be performed first if the problem drive contains valuable files which haven't been backed up.

Apart from checking and repairing bad sectors, PartitionGuru is able to recover lost files that are deleted, formatted, reformatted or corrupted from local or USB drives. File recovery process is read-only and doesn't do harm to original data and storage. Let's see how to recover files from USB drive.

Step 1
Connect the USB drive to computer and run PartitionGuru. Then you can see your USB flash drive or SD card is listed on the interface.

Step 2
Click on the drive and the button "File Recovery". Select "Complete Recovery" option and check the box "Search for Known File Types" on the Recover Files window, then you can start file scanning. This recovery tool allows users to preview files while file scanning is on-going as screenshot below:



Step 3
Select and save desired files to a secure location. When file recovery completes, you can try methods mentioned to format or repair it.

Conclusion

These are best methods to fix Windows was Unable to Complete the Format issue at present and most of times they work well. You can try these solutions above one after another and find the one works for you. If none of them works, then the USB drive might be damaged permanently and there is no way to fix it.

DiskPart to Clean the HDD/SSD

Following the steps in the this guide will remove the partitions from your drive resulting in data loss.


Introduction and Preparation

This guide instructs in using DISKPART to clean any hard drives from Windows installation media.
This procedure is necessary if you get the error message during a Windows 7 or 8.1 installation:
We couldn’t create a new partition or locate an existing one. For more information, see the Setup log files
This error message seems to be related to differences in GPT and MBR. For example if MBR partitions are setup on the HDD and you try to install in GPT. If you get this error message you can’t proceed so exit the setup.
To proceed with this guide you will need either a Dell Windows 7 Reinstallation DVD, a Microsoft Windows 7 Installation DVD, Windows 8.1 with Update 1 or Windows 10 installation media.
Windows 7 installation media isn’t downloaded but Windows 8.1 and Windows 10 are:
You need the Windows 8.1 or Windows 10 installation media to be prepared in GPT (for a UEFI BIOS > 2012) or MBR (for a GPT BIOS <2010). For a (2010-2011) you’ll need to see if the BIOS has been updated to support UEFI.

Booting from Windows 7, 8.1 and 10 Installation Media

Power down your computer. Hold F12 while powering up your computer (at the Dell BIOs screen).Dell BIOS Screen
Follow the instructions below to Boot either via UEFI or Legacy respectively.

Variant A: UEFI Boot

If your system is newer than 2012 its recommended to use a UEFI Boot  and a GPT partition scheme; this is faster and more reliable. The boot manager should mention a UEFI Boot similar to below.
Note UEFI may not work with a DVD and you should Install from a USB.
Press the ↓ arrow and select your Windows 8.1 Bootable USB Flash Drive and press [Enter]
vlcsnap-2015-02-26-02h38m50s185

Variant B: Legacy Boot

For systems older than 2012 you will have to just use the legacy boot with the MBR partition scheme which will be listed by default. There will be no mention of Legacy or UEFI Boot but the boot option will be legacy.
If you wish to install Windows 8.1 32 Bit (unrecommended) on a 2012 or later system you will need to disable SecureBoot and enable legacy boot options.
Press the ↓ arrow and select your Windows 8.1 Bootable USB Flash Drive or DVD and press [Enter]
vlcsnap-2015-02-26-02h53m10s76
Select boot from CD/DVD or from USB respectively.
Press any key when prompted such as “h” when it says Press any Key to boot from CD/DVD.

Launching DISKPART from the Command Prompt

You will get a black screen that says Windows.
8-1
Change the Time and Currency format and the Keyboard to your desired country. When ready select next.
8-2
Now select Repair your Computer.
3
The following screens differ slightly for Windows 7 and Windows 8.1.

Windows 8.1/10

Select Troubleshoot.
4
Select Advanced Options
5
Select Command Prompt
6
Proceed to using DISKPART

Windows 7

Windows 7 will search for previous installations.
diskparta
Once its found one, highlight it and select next:
diskpartb
Alternatively if its not found, select next.
Select Cancel when it looks for a system image:
DISKPART 3
DISKPART 4
Select cancel again:
diskpart 5
Select Command Prompt:
DISKPart1
Proceed to using DISKPART

Launch of DISKPART from within Windows

The following instructions are different for Windows 7 and Windows 8.1

Windows 8.1/10

Right click the Start Button and Select Command prompt Admin.
Product Activation Removal
The elevated command prompt will then open:
Type in DISKPART and press Enter.
Type in LIST DISK and press Enter.
DISKPART3

Windows 7

Select the start button and search for cmd:
commandprompt
You will see cmd listed under programs, right click it and select run as administrator:
commandprompt2
The elevated command prompt will then open:
Type in DISKPART and press Enter.
Type in LIST DISK and press Enter.
DISKPART3

Using DISKPART

Type in DISKPART and press [Enter]
7
Type in LIST DISK and press [Enter]
9
I only have one Disk listed in this example for simplicity so the only choice for me is to select it. The Bootable USB will also be listed as a Disk and you should be careful not to select this by accident.
For a more complicated configuration there may be multiple disks for example on my XPS 8300.
  • DISK 0 = 119 GB = 128GB Crucial M4-CT128M4SSD2 (SSD Boot Drive)
  • DISK 1 = 931 GB = 1 TB Hitachi HD721010CLA332 (Data HDD 1)
  • DISK 2 = 931 GB = 1 TB Hitachi HD721010CLA332 (Data HDD 2)
  • DISK 3 = 1863 GB = 2 TB SeaGate Expansion Desk USB Device (External Hard Drive)
  • DISK4-DISK7 = Empty Card Reader
  • DISK8 = 3894 MB = 4 GB USB Flash Drive (Windows 8.1 USB Flash Drive)
DISKPART3
Type in SELECT DISK X where X is the disk number, in the case of my simple example SELECT DISK 0 and press [Enter]
10
Type in CLEAN and press [Enter] or CLEAN ALL and press [Enter].
  • CLEAN removes all partitions and assigns them as unallocated and is recommended for a Solid State Drive. This allows for the recreation of partitions but is not a through wipe. If you want to wipe for a SSD you will need to use a utility like Magic Parted.
  • CLEAN ALL writes zeroes to the entire drive and is recommended for a Mechanical Hard Drive. This will take some time to carry out as you are not just removing partitions and assigning data as “free space” like in CLEAN but physically overwriting this “free space” to effectively remove all the data from the drive. CLEAN ALL is not recommended for a SSD as data is continuously remapped across the SSD Drives surface and a cleaning algorithm like this doesn’t work correctly and may reduce the SSDs lifecycle.
11
Close down the command prompt by pressing the [x] at the top right.
Alternatively type in EXIT and press [Enter] to Exit Disk Part. Then type in EXITand press [Enter] to exit the Command Prompt.
16
17
Select turn off your PC
18
Turn back on the PC and begin your install… See Windows 8.1 Installation.
Solution taken from here but images added for clarity:


 Part at the end of the Technet solution was unnecessary and caused hassles with a UEFI install.