How to Fix ‘Windows Was Unable to Complete the Format’ in Windows 11

The error dialogue “Windows was unable to complete the format” appears in Windows 11 when the operating system’s storage formatting subsystem fails to write a fresh file system allocation table (such as FAT32, exFAT, or NTFS) to an external USB flash drive, SD card, or hard drive. This abrupt failure typically occurs due to active write-protection attributes, partition table corruption, damaged master boot records (MBR/GPT), bad storage sectors, or raw filesystem states. Resolving this issue involves using low-level disk management utilities like DiskPart, clearing read-only flags, and performing disk surface repairs.

Why Windows Fails to Format Storage Drives

Formatting a storage volume requires Windows to initialise track boundaries, create partition tables, and verify the integrity of sequential allocation clusters. If the underlying controller detects bad NAND flash blocks, a physical or software write lock, or sudden device disconnections during I/O operations, Windows halts the process to prevent unstable partition mapping.

The primary origins of formatting failures include:

  • Read-Only and Write-Protection Flags: The drive’s controller has tripped into safety mode due to worn memory blocks, or Windows has flagged the volume as read-only.
  • Corrupted Partition Tables (RAW Format): The drive filesystem is marked as RAW, preventing standard Windows File Explorer high-level format tools from identifying boundary parameters.
  • Damaged Sectors: Physical media degradation or unreadable sector clusters causing I/O timeouts. If your drive experiences read timeouts, check our guide on fixing the drive cannot find the sector requested in Windows 11.
  • Active Process Locks: Antivirus software, indexing services, or open background file handles preventing the format utility from unmounting the volume exclusively.
Condition Underlying Cause Primary Resolution
Read-Only State Software write-protection bit enabled on disk Clear attributes via diskpart attributes disk clear readonly
RAW Filesystem Corrupted boot sector or partition header Clean disk structure and create new primary partition
Bad Sectors Unreadable blocks on flash memory or magnetic platter Scan and isolate defective blocks using chkdsk /f /r
Hardware Switch Physical lock slider engaged on SD card adapter Toggle physical lock switch towards contacts

Step 1: Check Physical Locks and Port Integrity

Before executing command-line storage repairs, inspect the physical hardware:

  1. If formatting an SD card or microSD adapter, examine the side of the plastic casing. Ensure the tiny Lock slider is pushed forward (away from the locked position).
  2. Disconnect the USB drive and plug it into a direct USB port on the motherboard (rear I/O panel) rather than an unpowered USB hub or front-panel chassis port to prevent power delivery drops.
  3. Test the drive in an alternate USB port to verify that port controller drivers are functioning correctly.

Step 2: Format the Drive Using Disk Management

Windows File Explorer often fails to format drives with missing partition metadata. The built-in Disk Management console provides greater control over volume allocation.

  1. Right-click the Start button and select Disk Management.
  2. Locate your external USB drive in the lower graphical panel (verify its capacity to ensure you do not select your primary system drive).
  3. If the volume displays as Unallocated or RAW, right-click the volume and select New Simple Volume.
  4. If the volume exists, right-click it and choose Format.
  5. Set the File system to NTFS (for internal drives or large USBs) or exFAT (for cross-platform flash drives).
  6. Set Allocation unit size to Default, untick Perform a quick format (to force Windows to test each sector), and click OK.

Step 3: Clean and Format via DiskPart Command Line

DiskPart operates at a lower abstraction level than graphical tools, enabling it to bypass corrupted file system tags and reconstruct clean partition structures.

  1. Press Windows Key + X and select Terminal (Admin).
  2. Launch the disk partitioning tool by typing:
diskpart
  1. List all physical drives attached to the system:
list disk
  1. Identify your external drive number (e.g., Disk 2) and select it:
select disk 2
  1. Clear any read-only attributes that might be blocking write operations:
attributes disk clear readonly
  1. Completely erase all existing partition headers and metadata from the drive:
clean
  1. Create a fresh primary partition and format it:
create partition primary
select partition 1
active
format fs=exfat quick
assign
  1. Type exit to leave DiskPart. The drive will now appear with an assigned drive letter in File Explorer, fully accessible for read and write tasks.

Step 4: Scan and Repair Bad Sectors via CHKDSK

If DiskPart encounters I/O device errors, damaged storage blocks may be preventing cluster initialisation.

  1. Open Terminal (Admin) as demonstrated previously.
  2. Execute Check Disk against the drive letter assigned to the USB drive (replace E: with your actual drive letter):
chkdsk E: /f /r /x

The /f parameter fixes file system errors, /r locates bad sectors and recovers readable data, and /x forces the volume to dismount before scanning begins.

Step 5: Audit Registry Write Protection Attributes

A global Windows registry key can inadvertently enforce system-wide write protection on all external removable media.

  1. Press Windows Key + R, type regedit, and press Enter.
  2. Navigate to the following key path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
  1. If StorageDevicePolicies exists, look for a DWORD value named WriteProtect in the right-hand pane.
  2. Double-click WriteProtect, change its value from 1 to 0, and click OK.
  3. Restart your PC and attempt formatting the drive again.

Get the best tech tips delivered straight to your inbox.

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