sodcalculator

10 Tech How-To

Fix Windows Unable to Complete Format Error

Guide 10-51907 · Updated · Step by step

If Windows says it cannot complete the format of a USB drive, SD card, or hard drive, the fix usually involves clearing the drive’s write protection, removing stubborn partitions, or using a low-level formatting tool. This error appears when Windows’ built-in format tool fails to modify the drive’s file system, often due to hidden protection flags, corrupted partition tables, or in-use processes. Below are the proven methods to resolve it, from simplest to most thorough.

Why Windows Says It Cannot Complete the Format

The “Windows was unable to complete the format” error is not a single failure—it is a generic message that Windows displays when the format operation is rejected by the drive or the system. Common underlying causes include:

  • Write protection: A physical switch on an SD card or a software flag on a USB drive that blocks all writes, including formatting.
  • File system corruption: The partition table or boot sector is damaged, so Windows cannot read the drive’s structure to overwrite it.
  • Drive in use: A background process (antivirus, indexing, or a stuck explorer window) has a lock on the drive.
  • Unsupported file system: Trying to format a drive larger than 32 GB to FAT32 using the standard Windows dialog, which has that hidden limit.
  • Failing hardware: The drive’s controller or flash memory is failing, making it read-only or unresponsive.

Understanding which cause applies to your situation helps you choose the right fix, but the steps below cover them all.

Before You Start: Check the Physical Drive

For SD cards and some USB sticks, a physical write-protect switch is the most common reason Windows refuses to format. If the switch is in the locked position, the drive is read-only at the hardware level, and no software command can override it.

  1. Remove the card or USB drive from the computer.
  2. Look for a small sliding switch on the side of the card or the USB housing.
  3. Slide it to the opposite position (usually labeled “Lock” or showing a padlock icon).
  4. Reinsert the drive and try formatting again.

If there is no switch, or moving it does not help, proceed to the software methods below. Also, try a different USB port or computer—this rules out a faulty port or a driver issue on your current machine.

Method 1: Use DiskPart to Clear Attributes and Format

DiskPart is a command-line tool built into Windows that can remove read-only attributes and force a format. This is the most reliable first fix because it bypasses the graphical interface and its hidden restrictions.

  1. Press Win + R, type diskpart, and press Enter. If prompted by UAC, click Yes.
  2. In the DiskPart window, type list disk and press Enter. Note the disk number of your target drive (e.g., Disk 1). Be absolutely certain you select the correct disk—choosing the wrong one will erase all data on it.
  3. Type select disk X (replace X with your disk number) and press Enter.
  4. Type attributes disk clear readonly and press Enter. This removes the software write-protection flag.
  5. Type clean and press Enter. This removes all partitions and the partition table.
  6. Type create partition primary and press Enter.
  7. Type format fs=ntfs quick (or fs=fat32 for drives under 32 GB) and press Enter.
  8. Type assign and press Enter, then type exit.

If DiskPart reports “DiskPart has encountered an error: Access is denied,” the drive may be hardware-locked (physical switch) or the controller is failing. If it reports “The media is write protected,” the readonly attribute was not cleared—try the clean command again, or use the registry method below if the drive is a USB stick.

Method 2: Clear Write Protection via Registry (USB Drives Only)

Some USB flash drives have a software write-protection flag stored in the Windows registry. This is not a standard Windows feature, but certain USB controller drivers expose it. If DiskPart’s readonly clear fails, this registry tweak can help.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies.
  3. If the StorageDevicePolicies key does not exist, right-click on Control, select New → Key, and name it StorageDevicePolicies.
  4. Inside that key, look for a DWORD value named WriteProtect. If it exists, double-click it and set its value to 0. If it does not exist, create it (New → DWORD (32-bit) Value), name it WriteProtect, and set it to 0.
  5. Close the Registry Editor and restart your computer.
  6. Try formatting the drive again.

This method is safe if you only change the WriteProtect value. Do not delete or modify other keys in this branch unless you are certain of what they do. After the restart, repeat the DiskPart clean and format steps if the normal format still fails.

Method 3: Use Windows Disk Management for Stubborn Partitions

If DiskPart works but the standard right-click format still fails, the problem may be a lingering partition that Disk Management can delete more cleanly.

  1. Press Win + X and select Disk Management.
  2. Find your drive in the lower list. It will show as a removable disk or a basic disk with one or more partitions.
  3. Right-click each partition on the target drive and select Delete Volume. Confirm any warnings.
  4. After all partitions are deleted, the drive will show as Unallocated. Right-click the unallocated space and select New Simple Volume.
  5. Follow the wizard: choose a size, assign a drive letter, and select a file system (NTFS for internal drives, exFAT for large USB drives, FAT32 for compatibility with older devices).
  6. Complete the wizard and check if the drive is now accessible.

If Disk Management shows the drive as RAW or Unreadable, that indicates a severely corrupted partition table. In that case, the DiskPart clean method is your best bet, as it rebuilds the partition structure from scratch.

Method 4: Format with a Third-Party Tool or Command Prompt

When Windows’ own tools refuse, a low-level format utility can reset the drive’s controller and clear all data at the sector level. These tools are widely available from reputable software sites, but always download from the official vendor page to avoid malware.

  • SD Card Formatter: The official tool from the SD Association. It resets SD, SDHC, and SDXC cards to their factory state, including clearing write-protection flags that Windows cannot see.
  • Rufus: Primarily a USB bootable creator, but it can also format USB drives with a “low-level format” option that writes zeros to every sector.
  • HP USB Disk Storage Format Tool: An older utility that still works for many USB sticks, offering a “Format” and “Create a DOS startup disk” option.

Alternatively, you can try formatting via Command Prompt with a different file system. Open Command Prompt as Administrator (Win + R, type cmd, press Ctrl+Shift+Enter) and run:

format E: /fs:exfat /q

Replace E: with your drive letter. The /q flag performs a quick format. If this fails, try without /q for a full format, which may take longer but can repair bad sectors on some drives.

When the Drive Is Failing: What to Do Next

If none of the above methods work, the drive may be physically failing. Flash memory has a limited number of write cycles, and once the controller detects too many errors, it locks the drive into read-only mode to prevent data loss. This is a protective measure, not a fixable software issue.

  • Check if the drive appears in Device Manager: If it shows a yellow warning icon, the driver may be corrupted. Right-click and select Uninstall device, then restart the computer to reinstall the driver.
  • Try a different computer: If the drive formats on another machine, the issue is your USB port or Windows installation, not the drive.
  • Accept the drive is dead: If you have tried all methods and the drive still refuses to format, it is likely at the end of its life. Recycle it properly—do not throw it in the trash, as it may contain personal data.

For a failing drive, the only safe data recovery option is to use professional recovery software before the drive becomes completely unreadable. Do not attempt to format a drive that contains data you need—formatting erases everything permanently.

Frequently Asked Questions

Why does Windows say unable to complete format for a new USB drive?

A new drive can come with a hidden partition or a file system that Windows does not recognize, such as a proprietary format from the manufacturer. The DiskPart clean command removes all partitions and allows you to create a standard one. If the drive is brand new and still fails, it may be a counterfeit drive with a fake capacity—these often fail to format because the actual flash memory is smaller than the reported size.

Can I format a 64GB USB drive to FAT32?

Yes, but not with the standard Windows right-click format, which has a 32GB limit for FAT32. You can use DiskPart with format fs=fat32 quick, or use a third-party tool like Rufus. However, for drives over 32GB, exFAT is the better choice because it supports large files and is compatible with most modern devices.

Will a full format fix a corrupted drive?

A full format (without the /q flag) scans the drive for bad sectors and marks them, which can make a slightly corrupted drive usable again. However, if the corruption is in the controller firmware or the flash memory itself, a full format will not help. It is always worth trying, but do not expect it to fix hardware failure.

Is it safe to use third-party formatting tools?

Yes, if you download them from the official vendor websites. The SD Card Formatter from the SD Association is the safest for SD cards. For USB drives, tools like Rufus are open-source and widely trusted. Avoid downloading “free” tools from random pop-up ads, as these often bundle malware. Always scan any downloaded executable with Windows Defender before running it.

What does “write protected” mean on a USB drive?

Write protection means the drive rejects any attempt to write data, including formatting. It can be caused by a physical switch, a software flag set by the controller, or a registry setting on your Windows PC. The DiskPart attributes disk clear readonly command removes the software flag, and the registry method removes the Windows-level flag. If neither works, the drive’s controller has likely locked itself due to wear or damage.

Can I recover data from a drive that fails to format?

Yes, if the drive is still recognized by Windows. Do not format it—formatting overwrites the data. Use a data recovery tool like Recuva or PhotoRec to scan the drive and recover files to a different drive. If the drive is not recognized at all, professional recovery services may be the only option, but they are expensive. Always back up important data regularly to avoid this situation.

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

The whole Tech How-To bed →