keepcalculator

06 Numbers and Powers

Failed to Format Selected Partition? Fixes That Work

Card No. 06·39724 · Updated · Standard formula, shown below

If you see “Failed to format the selected partition” in Windows, it usually means the built-in formatting tool could not complete the operation due to file system errors, write protection, or a locked partition. The fix depends on the cause: run a disk check, remove write protection, use DiskPart, or format from a different tool. Below is a step-by-step guide to resolve it, plus what to do if the drive still won’t cooperate.

What Causes the Error

Windows reports this error when it cannot format a partition for several common reasons:

  • File system corruption – Bad sectors or a damaged file system can block formatting.
  • Write protection – A physical switch on a USB drive or a software policy can make the disk read-only.
  • Partition in use – If the partition contains the Windows system files, the page file, or is the active boot partition, Windows will not format it while running.
  • Unsupported file system – Trying to format a partition larger than 32 GB as FAT32 fails in Windows’ built-in tool.
  • Insufficient permissions – You need administrator rights to format a drive.
  • Hardware issues – A failing drive or loose cable can cause the format to fail mid-way.

Identifying the exact cause saves time. For example, if you just plugged in a USB stick and see the error, check for a physical lock switch first. If the drive is your system drive, you cannot format it from within Windows – you need to boot from installation media.

Before You Start: Backup and Safety

Formatting erases all data on the partition permanently. There is no standard way to recover files after a full format, so back up anything you need before proceeding. If the drive contains data you cannot lose, stop and copy it to another location. For a system drive, you will need a Windows installation USB or recovery drive to proceed.

Fix 1: Run a Disk Check

Corrupted file systems often cause format failures. Windows’ built-in check tool can repair many issues:

  1. Open Command Prompt as administrator (search “cmd”, right-click, “Run as administrator”).
  2. Type chkdsk X: /f (replace X with the drive letter of the partition) and press Enter.
  3. If the drive is in use, you will be asked to schedule a check on restart – type Y and reboot.
  4. After the check completes, try formatting again.

For a deeper scan, use chkdsk X: /r which also locates bad sectors. This can take a long time on large drives. If chkdsk reports serious errors, the drive may be failing – consider replacing it.

Fix 2: Remove Write Protection

If the drive is read-only, formatting will fail. Check these:

  • Physical switch – Many USB flash drives and SD cards have a tiny switch on the side. Move it to the unlocked position.
  • Diskpart attributes – Open Command Prompt as administrator, type diskpart, then list disk, select disk X (where X is your disk number), then attributes disk clear readonly. Type exit to close.
  • Registry policy – In rare cases, a registry key (StorageDevicePolicies) enforces write protection. Editing the registry is risky; only do this if you are comfortable. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies and set WriteProtect to 0, then restart.

Fix 3: Use DiskPart to Clean and Format

DiskPart is a command-line tool that can force a format when the GUI fails. Warning: This erases everything on the selected disk.

  1. Open Command Prompt as administrator.
  2. Type diskpart and press Enter.
  3. Type list disk to see all disks. Identify your target disk by size.
  4. Type select disk X (replace X with the disk number).
  5. Type clean – this removes all partitions and data.
  6. Type create partition primary.
  7. Type format fs=ntfs quick (or fat32 or exfat as needed).
  8. Type assign to give it a drive letter, then exit.

If the clean command also fails, the disk may be physically damaged or have a hardware write-protect. Try on another computer or with a different cable.

Fix 4: Format from Windows Installation Media

If the partition is the system drive (where Windows is installed), you cannot format it while the OS is running. Use a Windows installation USB:

  1. Boot from the USB (change boot order in BIOS/UEFI).
  2. Choose your language, then click “Install now”.
  3. When asked for a product key, skip it if you are only formatting.
  4. Select “Custom: Install Windows only (advanced)”.
  5. Select the partition you want to format, click “Format”, and confirm.

If you do not want to reinstall Windows, you can also boot from a Linux live USB (like Ubuntu) and use its disk utility to format the partition. This is a useful alternative if Windows tools fail.

Fix 5: Try a Third-Party Formatting Tool

Sometimes Windows’ built-in tools are too restrictive. Free tools like Rufus (for USB), HP USB Disk Storage Format Tool, or EaseUS Partition Master can format drives that Windows refuses. These tools often bypass minor issues. However, they cannot fix hardware failures. Always download from official sources to avoid malware.

What If Nothing Works?

If you have tried all the above and still get the error, the drive is likely failing or dead. Check if the drive appears in Device Manager (look for yellow warnings). Try a different USB port, cable, or computer. If it is an external drive, try connecting it internally (for desktops). If the drive is under warranty, contact the manufacturer – but do not mention data recovery, as that voids most warranties. If the data is irreplaceable, stop using the drive immediately and consult a professional data recovery service.

Frequently Asked Questions

Why does formatting a 64 GB USB drive to FAT32 fail?

Windows’ built-in format tool only allows FAT32 on partitions up to 32 GB. To format larger drives as FAT32, use a third-party tool like Rufus or the command-line format command with the /FS:FAT32 switch (though it may be slow). Alternatively, use exFAT, which works on modern devices and supports large files.

Can I format a partition that is in use?

No, Windows will not format a partition that contains the system files, page file, or is the active boot partition. You must boot from installation media or another OS to format it. For non-system partitions, close all programs that might be using the drive (like a file explorer window) and try again.

Will formatting fix bad sectors?

No. Formatting only creates a new file system; it does not repair physical damage. If chkdsk reports bad sectors, the drive is degrading. Backup your data and replace the drive. Continuing to use it risks total failure.

What is the difference between quick format and full format?

A quick format only removes the file system metadata, making the drive appear empty. A full format also scans for bad sectors and overwrites every sector, which takes much longer. A full format can help if quick format fails, but it does not securely erase data – use a dedicated tool for that.

Is it safe to use DiskPart clean?

Yes, if you select the correct disk. Double-check the disk number and size before running clean. Once executed, all partitions and data on that disk are gone. There is no undo.

Why does my SD card show “Failed to format” on my phone but works on a computer?

Some devices use a file system the phone does not fully support, or the card’s partition table is damaged. Try formatting it as exFAT or FAT32 on a computer, then reinsert. If that fails, the card may be counterfeit or damaged – try a different card.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →