How to Fix ‘Windows Was Unable to Complete the Format’ Error on USB Drives

Reformatting external storage media – such as USB flash drives, external SSDs, and SD cards – is a common procedure when reallocating drives or purging old installation media. However, encountering an abrupt dialogue box reading ‘Windows was unable to complete the format’ halts drive preparation, leaving the volume inaccessible or marked as RAW filesystem format.

This barrier is typically triggered by corrupted Master Boot Records (MBR), bad flash memory blocks, active read-only software flags, or background processes holding persistent file handles on the drive. Using the command-line Diskpart utility and Disk Management console provides a reliable solution.

Clean Partition Tables and Reformat via Diskpart

The graphical Windows formatting dialogue often fails when partition boundaries are fragmented. The built-in command-line tool Diskpart bypasses high-level shell restrictions to write clean partition structures.

  1. Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
  2. Type diskpart and press Enter.
  3. List all physical drives connected to your PC:
    list disk
  4. Carefully identify your USB drive based on its storage capacity (e.g., Disk 2). Select it:
    select disk X (Replace X with your actual USB disk number).
  5. Wipe all existing partition headers and filesystem tables:
    clean
  6. Create a fresh primary partition:
    create partition primary
  7. Format the partition with the NTFS or exFAT filesystem:
    format fs=ntfs quick (or format fs=exfat quick for cross-platform compatibility).
  8. Assign a drive letter:
    assign
  9. Type exit to close Diskpart. Your drive will now mount cleanly in File Explorer.

Clear Read-Only Storage Attributes

If the storage drive has its read-only attribute enabled, Windows rejects all formatting requests to protect existing data.

  1. Inside your elevated diskpart session, select your USB drive using select disk X.
  2. Execute the attribute query:
    attributes disk
  3. If ‘Read-only’ is marked as ‘Yes’, remove the flag by running:
    attributes disk clear readonly
  4. Proceed with formatting the volume.

Format Through the Disk Management Console

Formatting directly within the low-level Windows Disk Management console avoids Windows Shell caching hitches that plague File Explorer.

  1. Press Windows Key + X and choose Disk Management.
  2. Locate your USB volume in the lower visual grid.
  3. If the partition shows as ‘RAW’ or ‘Unallocated’, right-click the block and choose New Simple Volume… (or Format…).
  4. Follow the on-screen wizard to choose a volume label and filesystem, ensuring Perform a quick format is ticked.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.