"The format did not complete successfully" appears when Windows cannot complete a format operation on a USB drive, SD card, or external drive. The most common causes are write protection, bad sectors, and driver issues — all fixable without replacing the drive.
Part 1. Check for Write Protection
Physical write protection:
- Check the SD card's physical lock switch on the side — slide it to the unlocked position
- Some USB drives have a write-protect switch — check the drive body
Software write protection (via diskpart):
- Open Command Prompt as Administrator
- Type
diskpart→ Enter list disk→select disk X(your USB/SD disk number)attributes disk clear readonly- Exit diskpart and try formatting again
| Write Protection Type | How to Detect | How to Remove |
|---|---|---|
| Physical SD card lock | Slide switch visible on card side | Slide switch to unlocked position |
| Software (diskpart) | attributes disk shows "Read Only: Yes" | attributes disk clear readonly |
| Group Policy | Only on corporate PCs | Admin/IT policy change |
| SD controller fault | Disk shows read-only after errors | Try clear readonly — replace if it returns |
💡 Tip: After running
attributes disk clear readonly, verify it worked by runningattributes diskagain — confirm "Read Only: No" before attempting format. Some drives re-apply write protection after a BIOS power cycle if the controller is damaged.
⚠️ Important: Before running diskpart commands, verify the disk number with
list diskusing the Size column. Clearing readonly on the wrong disk is harmless, but selecting and formatting the wrong disk would erase it.
Part 2. Format via diskpart to Bypass File Explorer Limitations
If the right-click Format in File Explorer fails, diskpart can force a format:
diskpart
list disk
select disk X
clean
create partition primary
format fs=exfat quick
assign
exit
⚠️ Important: The
cleancommand removes all partitions and data from the selected disk. Confirm you have selected the correct disk by verifying its size before runningclean.
Part 3. Run CHKDSK Before Formatting
Bad sectors can cause format failures. Run CHKDSK first to map bad sectors as unusable:
chkdsk E: /f /r
After CHKDSK completes, retry the format. If CHKDSK reports too many bad sectors, the drive may be too damaged to reliably format — consider replacement.
💡 Tip: If CHKDSK itself fails ("cannot continue in read-only mode"), the drive may have a hardware-level write issue. Try a different USB port, cable, or card reader before concluding the drive is defective.
Part 4. Reinstall the USB/SD Driver
- Open Device Manager (
Win + X) - Expand Disk Drives
- Right-click the USB/SD device → Uninstall Device
- Disconnect, reconnect — Windows reinstalls the driver
- Retry the format
| Error Condition | Most Likely Cause | Recommended Fix |
|---|---|---|
| Format fails immediately | Write protection enabled | Clear readonly via diskpart |
| Format fails at X% | Bad sectors | CHKDSK first, then format |
| Format fails with driver error | Corrupted device driver | Reinstall driver in Device Manager |
| Format fails on all file systems | Drive controller fault | Try different PC; may need replacement |
| diskpart clean fails | Drive not recognized | Try different USB port/cable |
💡 Tip: If format fails at a specific percentage every time, that percentage points to a specific sector range with physical damage. After CHKDSK maps out those sectors, attempt the format again — it may succeed now that the bad sectors are excluded.
🗣️ r/techsupport user: "Format kept failing on my SD card. Tried diskpart with
cleanand it worked immediately. Sometimes the standard format tool just can't handle a corrupted partition table."
🗣️ r/datarecovery tip: "If you need the data on the drive before forcing a format, use recovery software first. diskpart clean wipes everything — save files before using it."
Part 5. Recover Files Before or After a Failed Format With Ritridata
If the drive has files you need — whether the format attempt failed or succeeded — Ritridata can recover files from a drive with a failed or partial format on both Windows and Mac.
Step 1 — Select the USB or SD card from the drive list
Step 2 — Run a scan — finds files even through failed format attempts
Step 3 — Preview and recover files to your computer
FAQ
Why does "the format did not complete successfully" appear? Most commonly: write protection is enabled (physical or software), bad sectors prevent the format from finishing, or the driver has an issue that prevents write operations. The drive itself is usually functional.
Can I format an SD card that says "format did not complete successfully"? Yes — use diskpart with the clean and format commands as described above. This bypasses the standard Windows format tool and works on SD cards that refuse normal formatting.
Does a failed format delete data? A failed format typically doesn't complete enough to delete file data. A partial format may corrupt the file system directory. In either case, recovery software can still find files in the sectors.
My SD card physically has no write-protect switch but still shows write-protected — why? Some SD cards enter a software write-protection mode when they detect controller errors or flash memory wear. This is a self-protection mechanism. Using diskpart attributes disk clear readonly may temporarily clear it, but a card in this state is often near end-of-life.
