Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Why Disk Utility Can't Erase USB Drive (Fix)

· 5 min read · Home Tech

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

Disk Utility often fails to erase a USB drive because the drive is mounted, has a partition map type it doesn't recognize, or is using a file system format that macOS can't write to. The quickest fix is to unmount the drive first, then use the Erase function with the correct scheme (GUID Partition Map) and format (APFS or Mac OS Extended). If that still fails, you may need to use the command line or a different tool. This guide walks you through the exact steps to get your USB drive erased successfully.

What You'll Need

  • A Mac with macOS (any recent version)
  • The USB drive you want to erase (back up any important data first, as erasing will destroy everything on it)
  • An internet connection (only if you need to download a third-party tool as a last resort)

Step-by-Step

  1. Back up any data on the USB drive that you need. Erasing will permanently delete all files.
  2. Connect the USB drive to your Mac. Wait a few seconds for it to appear on the desktop or in Finder.
  3. Open Disk Utility. You can find it in Applications > Utilities, or search for it with Spotlight (Cmd+Space).
  4. Select your USB drive in the sidebar. Make sure you select the physical drive (the top-level entry, often showing the brand and capacity) and not just a volume underneath it. If you don't see the sidebar, go to View > Show Sidebar.
  5. Unmount the drive first. With the drive selected, click the Unmount button (the eject icon) in the toolbar. This is often the key step that fixes the "erase failed" error. If the button is greyed out, skip to step 6.
  6. Click the Erase button in the toolbar. A dialog will appear.
  7. Choose the correct format from the Format dropdown. For most USB drives, choose APFS (if you only use the drive with macOS) or Mac OS Extended (Journaled) (if you need compatibility with older Macs or want to use it with Time Machine). If you need to use the drive with Windows, choose ExFAT instead.
  8. Choose the correct scheme from the Scheme dropdown. Select GUID Partition Map for Intel Macs or Apple Silicon Macs. If you don't see a Scheme dropdown, it may be hidden; click the small arrow next to the Format dropdown to expand it.
  9. Give the drive a name (optional) and click Erase. Confirm if prompted.
  10. Wait for the process to finish. You should see a green checkmark and "Operation successful" when done. If you get an error, proceed to the Troubleshooting section below.

Common Mistakes

  • Selecting a volume instead of the whole drive. If you select a volume (like "USB Drive" under the physical disk), Disk Utility may only try to erase that partition and fail. Always select the top-level entry that shows the disk capacity and brand.
  • Not unmounting the drive. If the drive is in use (e.g., you have a file open from it), Disk Utility may refuse to erase it. Unmounting first releases the drive.
  • Choosing the wrong scheme. If you pick "Master Boot Record" or "Apple Partition Map" when your Mac expects GUID, the erase may fail. Stick with GUID Partition Map unless you have a specific reason.
  • Forgetting that the drive is write-protected. Some USB drives have a physical lock switch. If the drive is locked, Disk Utility will show an error. Check the side of the drive for a small switch and slide it to the unlocked position.

Tips

  • Use the "Show All Devices" view. In Disk Utility, go to View > Show All Devices (or press Cmd+2). This displays the physical drive and all partitions, making it easier to select the correct one.
  • Try a different USB port. Occasionally, a faulty port can cause issues. Plug the drive into another port (preferably directly on the Mac, not a hub).
  • Check if the drive is mounted elsewhere. If you have the drive open in another app (like a file manager or a virtual machine), close those apps first.
  • Use the command line if Disk Utility keeps failing. Open Terminal and run diskutil list to find the disk identifier (e.g., /dev/disk2). Then run diskutil eraseDisk APFS MyUSB /dev/disk2 (replace MyUSB with your desired name). This often works when the GUI fails. Be very careful to select the correct disk identifier to avoid erasing your main drive.

Troubleshooting

If Disk Utility still cannot erase the drive, try these in order:

  1. Restart your Mac. This clears any temporary system glitches that might be holding the drive.
  2. Try the drive on another Mac or computer. If it works there, the issue is with your Mac's USB controller or Disk Utility settings.
  3. Use the Terminal method as described in the Tips section. The diskutil eraseDisk command bypasses the GUI and often succeeds when Disk Utility fails.
  4. Repair the drive first. In Disk Utility, select the drive and click First Aid. Run it, then try erasing again. This can fix minor corruption that prevents erasing.
  5. If the drive still fails, it may be physically damaged. Try a different USB cable (if it's an external SSD) or a different computer. If it fails everywhere, the drive may be dead and need replacement.

Frequently Asked Questions

Why does Disk Utility say "Erase process has failed"?

This usually means the drive is in use, write-protected, or has a partition map that Disk Utility can't handle. Unmount the drive first, check for a physical lock switch, and try the Terminal method if it persists.

What format should I choose for a USB drive to use on both Mac and Windows?

Choose ExFAT. It works on both macOS and Windows without extra software. If you only use it on Mac, APFS or Mac OS Extended is fine.

Can I erase a USB drive that is bootable?

Yes, but you need to erase the entire disk, not just a volume. Select the physical drive and erase it. The bootable data will be removed.

Why is my USB drive not showing in Disk Utility?

It might be disconnected, faulty, or not mounted. Check Finder to see if it appears. If not, try a different port or restart your Mac. If it still doesn't show, the drive may be damaged.

Is it safe to use the Terminal to erase a USB drive?

Yes, if you are careful to select the correct disk identifier. Running diskutil list first to confirm the identifier is crucial. Erasing the wrong disk will wipe your entire system drive.

What if the USB drive has a physical write-protect switch?

Slide the switch to the unlocked position. If it's stuck, you may need a different drive, as software cannot override a physical lock.