sodcalculator

10 Tech How-To

Fix Windows Cannot Format USB Flash Drive Errors

Guide 10-40979 · Updated · Step by step

If Windows cannot format a USB flash drive, first check that you selected the correct drive and that it is not write-protected; then try Disk Management or DiskPart, depending on the error. These steps can fix partition, file-system, or drive-letter problems, but formatting erases data, and a flash drive with failing hardware may not be repairable.

Before you try to format the drive

Formatting removes the file system’s directory information and makes the existing files inaccessible. If you need anything stored on the drive, stop and copy it elsewhere if the drive still opens. If Windows cannot read it, avoid repeated repair and format attempts: they can make recovery harder. Consider recovery options before changing partitions, especially if the files are valuable.

Confirm the USB drive by its capacity and label. Unplug other removable drives if that makes it easier to identify. Never select your Windows system disk or another disk containing files you need. Also try a different USB port, preferably one connected directly to the computer rather than through a hub, and test the drive on another computer if possible. A port, hub, or computer problem can look like a damaged drive.

Try File Explorer and check write protection

For a drive that appears normally in Windows, open File Explorer, right-click the USB drive, choose Format, select a suitable file system, and start the format. A quick format is generally enough for a drive you intend to reuse; it rebuilds file-system structures but does not scan every sector for errors. If Windows reports that the disk is write-protected, formatting will fail until the protection is removed.

  1. If the USB device has a physical lock switch, disconnect it, move the switch to the unlocked position, reconnect it, and try again.
  2. Check whether a policy or security utility on a work or school computer blocks writing to removable drives. Ask the administrator rather than trying to bypass an organization’s restrictions.
  3. If the drive is still marked read-only in Windows, use DiskPart’s attributes command below only after confirming the disk number. Do not assume every write-protection error is caused by a physical switch.

Choose a file system based on how you will use the drive. FAT32 works with many devices, but Windows’ built-in formatting tools do not create a FAT32 volume larger than 32 GB, and FAT32 cannot store a single file of 4 GB or more. exFAT is commonly suitable for sharing large files between modern computers and devices that support it. NTFS is useful for Windows-focused storage, but some cameras, TVs, consoles, and other devices may not support it. Check the destination device’s documentation when compatibility matters.

Use Disk Management for missing or unformatted volumes

Disk Management can show a USB disk even when File Explorer cannot. Right-click Start and open Disk Management, or search Windows for “Create and format hard disk partitions.” Find the USB disk by capacity and status before making changes.

  • If the disk has a healthy partition but no drive letter, right-click that volume, choose Change Drive Letter and Paths, and assign an unused letter. This may restore access without formatting.
  • If a volume is shown as RAW or unallocated, Windows may not recognize its file system or partition. If you do not need its contents, you can delete the USB volume and create a new simple volume, then format it. Deleting a volume destroys its existing file-system access, so do not do this as a data-recovery step.
  • If the disk shows as offline, inspect the status and resolve the cause before formatting. Do not initialize or repartition a disk simply because Windows offers the option unless you have confirmed it is the USB drive and have accepted data loss.

In the New Simple Volume Wizard, use the intended capacity, assign a letter, and choose a file system. If the wizard fails, note the exact message; it can help distinguish a permission or partition issue from a drive that is not responding.

Use DiskPart when Windows still refuses

DiskPart is a command-line disk utility. Its clean command removes partition information from the selected disk, so a wrong selection can destroy access to data on another drive. Proceed only if data loss is acceptable and the USB disk is unmistakably identified.

  1. Search for Command Prompt, right-click it, and select Run as administrator. Enter diskpart.
  2. Run list disk. Identify the USB drive by its capacity; do not choose based only on its disk number.
  3. Enter select disk N, replacing N with the confirmed USB disk number. Run detail disk and check the information again.
  4. If the disk is read-only, run attributes disk to inspect its attributes. If it is safe to change, use attributes disk clear readonly.
  5. Only if you intend to erase the selected drive, run clean, then create partition primary, format fs=exfat quick, and assign. Use a different file system in the format command if your intended device requires it.

If a command fails, stop and record the message rather than trying increasingly destructive commands at random. DiskPart cannot fix a broken USB controller or failing flash memory.

What common errors can mean

“Windows was unable to complete the format” is a general failure, not a diagnosis. It can arise from a damaged partition table, a read-only state, file-system errors, access restrictions, or hardware failure. RAW status means Windows does not recognize a usable file system; it does not prove the data is gone or that formatting is the right first step.

A drive showing zero bytes, the wrong capacity, repeatedly disconnecting, or failing on multiple computers may have a hardware problem. A write-protection state that returns after being cleared can also indicate that the device has switched into a protective failure mode. Windows tools cannot restore worn-out flash memory. If the files matter, stop writing to the device and seek an appropriate recovery service; otherwise, replace a drive that remains unreliable.

Frequently Asked Questions

Why does Windows say the USB drive is write-protected?
It may have a physical lock switch, a Windows read-only attribute, a device policy, or a hardware fault. Check those causes in order. If the protection returns after being cleared, the drive may be failing.

Can I fix the error without losing files?
Possibly, if the problem is only a missing drive letter or a connection issue. Formatting, deleting a volume, and DiskPart’s clean command can make files inaccessible. Back up or recover needed data before using them.

Should I use quick format or full format?
Quick format is usually sufficient when reusing a functioning drive. A full format takes longer and checks the volume for bad areas, but it cannot repair failed hardware and is not a substitute for a backup.

Why can’t Windows format a large USB drive as FAT32?
Windows’ built-in formatting interface limits FAT32 volume creation to 32 GB. FAT32 also has a 4 GB maximum size for an individual file. Choose exFAT if the devices you use support it and you need larger files.

When should I stop troubleshooting?
Stop if the drive contains important files, has an incorrect capacity, disconnects repeatedly, or fails on more than one computer. Further formatting and partition changes can reduce recovery options, and persistent hardware symptoms usually require replacing the drive.

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 →