TechBuzzPro

Fix a USB That Cannot Be Formatted: Step‑by‑Step Guide

· 5 min read · Windows & PC

In this article
  1. What You’ll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can fix a USB that cannot be formatted by using built‑in disk tools, command‑line utilities, or trusted third‑party software, depending on the root cause.

What You’ll Need

  • A computer with an available USB port and administrative privileges.
  • The USB drive that is refusing to format.
  • Backup of any important data (if the drive still holds readable files).
  • Access to Windows Disk Management, macOS Disk Utility, or a Linux terminal.
  • Optional: third‑party tools such as GParted (Linux), MiniTool Partition Wizard (Windows), or SD Card Formatter.

Step‑by‑Step

  1. Verify the drive is not physically write‑protected. Many USB sticks have a tiny switch on the side; flip it to the unlocked position if present. On the computer, open a command prompt or terminal and run diskpart (Windows) or diskutil list (macOS). If the drive is marked as "readonly" or "write‑protected," proceed to step 4.
  2. Check for bad sectors or firmware issues. On Windows, open Command Prompt as administrator and execute chkdsk X: /r (replace X with the drive letter). On macOS, use diskutil verifyDisk /dev/diskX. If errors are reported, note them; they may indicate a failing device.
  3. Attempt a basic format.
    • Windows: Right‑click the drive in File Explorer, choose Format…, select NTFS or exFAT for cross‑platform use, and click Start.
    • macOS: Open Disk Utility, select the drive, click Erase, choose ExFAT or MS-DOS (FAT), and confirm.
    • Linux: In a terminal, run sudo mkfs.exfat /dev/sdX1 (replace sdX1 with the correct partition). If the partition does not exist, create one with sudo fdisk /dev/sdX.
  4. Remove write protection via diskpart (Windows). Open Command Prompt as administrator, type diskpart, then list disk to locate the USB drive. Select it with select disk X, and run attributes disk clear readonly. Exit diskpart and retry formatting.
  5. Use low‑level formatting if standard methods fail. On Windows, download the SD Card Formatter or use dd if=/dev/zero of=/dev/sdX bs=1M on Linux. For macOS, use diskutil eraseDisk ExFAT MyUSB /dev/diskX. These commands overwrite the partition table and can clear stubborn corruption.
  6. Check for hidden partitions. Some drives contain recovery or system partitions that prevent formatting. In Disk Management (Windows) or Disk Utility (macOS), delete all partitions, then create a new primary partition that spans the entire device.
  7. Try a different USB port or computer. Faulty ports or BIOS restrictions can block formatting. Plug the drive into another machine or use a powered USB hub.
  8. Update the USB controller drivers. Open Device Manager (Windows), locate Universal Serial Bus controllers, right‑click each item, and choose Update driver. On macOS, ensure the system is up to date via System Settings > General > Software Update.
  9. Reboot the computer and retry. A fresh session can clear temporary locks or cache that might be preventing the format.
  10. Use a third‑party partition manager. Tools like MiniTool Partition Wizard (Windows) or GParted Live (Linux) often succeed where native utilities fail. Create a live USB, boot from it, and use the GUI to delete all partitions and create a new one.
  11. Verify the drive after formatting. Once the format completes, test by copying a large file or running a write test. On Windows, use winsat disk -w; on macOS, use diskutil verifyVolume /Volumes/MyUSB.

Common Mistakes

  • Assuming the drive is fully writable when a physical write‑protect switch is engaged.
  • Choosing a file system that is incompatible with the intended use (e.g., formatting a 2 TB drive as FAT32, which limits individual file size).
  • Running a low‑level format on the wrong device, which can erase all data from an unrelated drive.
  • Skipping a backup before attempting destructive commands like dd or diskpart attributes disk clear readonly.
  • Using the wrong disk identifier (e.g., sdX vs. sdX1) and inadvertently deleting the wrong partition.

Tips

  • When formatting a drive larger than 32 GB for use on both Windows and macOS, choose exFAT to avoid FAT32’s 4 GB file size limit.
  • Use the format /fs:exfat X: command in Windows Command Prompt for a quick, scriptable format.
  • On Linux, the blkid command can confirm the new UUID after formatting, which is useful for mounting automatically.
  • For drives that consistently refuse formatting, consider the possibility of a firmware lock; manufacturers sometimes disable writes to protect against counterfeit products.
  • Keep a copy of the original firmware image if you plan to flash the drive’s controller; this is advanced and not recommended for casual users.

Troubleshooting

If the USB still refuses to format after following the steps above, try the following in order:

  1. Run a SMART check. Some USB sticks expose SMART data. Use smartctl -a /dev/sdX on Linux or a tool like CrystalDiskInfo on Windows. Look for high reallocated sector counts or pending sectors.
  2. Check for malware. Rarely, malicious firmware can lock a drive. Scan the USB with reputable antivirus software before attempting another format.
  3. Use a different operating system. Boot a Linux live CD/USB and attempt formatting there; sometimes Windows or macOS drivers interfere.
  4. Contact the manufacturer. If the drive is still under warranty, request a replacement. Many brands offer a free replacement for a defective unit.
  5. Accept that the drive may be permanently damaged. If all software methods fail and SMART reports severe errors, the device may be physically defective. In that case, replace the drive.

Frequently Asked Questions

Can I recover data from a USB that won’t format?

Yes, if the drive still shows up in Disk Management or Disk Utility, use data‑recovery tools like Recuva (Windows) or TestDisk (Linux/macOS). Copy recovered files to a different device before attempting a format.

Why does my USB say it is write‑protected?

Write protection can be enabled by a hardware switch, a software flag in the controller, or a firmware lock. Clearing the flag with diskpart or using a low‑level format can remove it.

What file system should I use for a USB that will be used on both Windows and macOS?

exFAT is the safest choice for drives larger than 32 GB. It supports large files and is natively supported by both operating systems.

Is it safe to use a low‑level format on a USB?

Low‑level formatting erases the partition table and writes zeros to the entire device. It is safe for most drives but will permanently delete all data. Back up before proceeding.

Can a USB be permanently damaged by repeated formatting attempts?

Repeated writes can wear out flash memory, but formatting itself does not usually cause permanent damage. If the drive fails after many attempts, it is likely already defective.