Cleaning a USB flash drive means removing all files and partitions so it works like new. This guide shows you how to do that on Windows and Mac, including how to fix a drive that won’t format or shows the wrong capacity. You’ll need a computer with a USB port and the drive itself; no extra software is required.
What You’ll Need
- A USB flash drive (the one you want to clean)
- A computer with a USB port (Windows or Mac)
- Backup location for any files you want to keep (cloud, another drive, etc.)
Step-by-Step
On Windows
- Insert the drive. Plug the USB flash drive into an available port. Wait a few seconds for Windows to recognize it.
- Open File Explorer. Press Win + E or click the folder icon in the taskbar.
- Locate the drive. Look under “This PC” or “Devices and drives” for your USB drive. It usually appears as a removable disk with a letter (e.g., E:). Note the drive letter—you’ll need it later.
- Back up important files. If there’s anything you want to keep, copy it to another location now. Cleaning will erase everything.
- Format the drive (quick method). Right-click the drive in File Explorer and select “Format…”. In the dialog:
- Choose a file system: FAT32 for maximum compatibility (works with most devices), exFAT for large files (over 4GB) and cross-platform use, or NTFS for Windows-only with large file support.
- Set “Allocation unit size” to “Default allocation size”.
- Check “Quick Format” if you want speed; uncheck it for a full format (takes longer but checks for bad sectors).
- Click “Start”. Confirm any warning. Wait for the progress bar to finish.
- If formatting fails or the drive is not recognized, use Diskpart (advanced).
- Press Win + R, type
diskpart, and press Enter. Allow the UAC prompt. - In the Diskpart window, type
list diskand press Enter. Find your USB drive by size (e.g., 14 GB for a 16 GB drive). Note the disk number (e.g., Disk 1). - Type
select disk X(replace X with your disk number) and press Enter. - Type
cleanand press Enter. This removes all partitions and data. - Type
create partition primaryand press Enter. - Type
format fs=fat32 quick(or replace fat32 with exfat or ntfs) and press Enter. - Type
assignand press Enter to give the drive a letter. - Type
exitto close Diskpart.
- Press Win + R, type
On Mac
- Insert the drive. Plug it in. It usually appears on the desktop or in Finder’s sidebar.
- Open Disk Utility. Go to Applications > Utilities > Disk Utility, or search for it with Spotlight (Cmd+Space).
- Select the drive. In the left sidebar, click the external drive (not the volume underneath it). If you don’t see it, click “View” and choose “Show All Devices”.
- Erase the drive. Click the “Erase” button at the top. In the dialog:
- Name: give it a name (e.g., “USB”).
- Format: choose MS-DOS (FAT) for FAT32 compatibility, ExFAT for large files and cross-platform, or Mac OS Extended (Journaled) for Mac-only.
- Scheme: if available, choose GUID Partition Map (or Master Boot Record for older PCs).
- Click “Erase”. Wait for it to finish.
- If the drive doesn’t appear or erase fails, use Terminal (advanced).
- Open Terminal (Applications > Utilities > Terminal).
- Type
diskutil listand press Enter. Find your USB drive by size (e.g., /dev/disk2). - Type
diskutil eraseDisk FAT32 USB MBR /dev/diskX(replace X with your disk number; replace FAT32 with ExFAT or JHFS+ if needed). Press Enter. - Wait for the process to complete. The drive will be reformatted.
Common Mistakes
- Choosing the wrong drive. In Diskpart or Disk Utility, selecting the wrong disk can erase your internal hard drive. Always double-check the disk number and size.
- Not backing up. Formatting erases everything. If you forget to copy files, they’re gone.
- Using the wrong file system. FAT32 can’t store files larger than 4GB. If you need to transfer a movie or backup, use exFAT or NTFS.
- Quick format when you need a full format. Quick format only removes the file table, not the data. If you want to securely erase or fix bad sectors, do a full format.
- Pulling the drive out during formatting. This can corrupt the drive. Always eject safely.
Tips
- Use FAT32 if you plan to use the drive with older devices like TVs, car stereos, or game consoles.
- Use exFAT if you need to transfer files larger than 4GB between Windows and Mac.
- If the drive is write-protected (you get a “disk is write-protected” error), check for a physical lock switch on the side of the drive. Slide it to the unlocked position.
- If you want to securely erase data, use a full format or a third-party tool. Quick format leaves data recoverable.
- After cleaning, safely eject the drive (right-click > Eject on Windows, drag to Trash on Mac) before unplugging.
Troubleshooting
Drive not recognized at all
- Try a different USB port. If it’s a desktop, use a port on the back of the case.
- Try another computer. If it works there, the issue is your computer’s USB driver.
- Open Device Manager (Windows) and look for yellow exclamation marks under “Universal Serial Bus controllers”. Right-click and “Update driver”.
- On Mac, reset the SMC (for Intel Macs) or try a different adapter.
Formatting fails with “Windows was unable to complete the format”
- Remove the drive and reinsert it.
- Try a full format (uncheck Quick Format).
- Use Diskpart as described above. The
cleancommand usually fixes this. - If Diskpart fails, the drive may be physically damaged or have a failing controller. Try a different computer.
Drive shows less capacity than expected (e.g., 8GB drive shows 2GB)
- This usually means there’s a hidden partition. Use Diskpart’s
cleancommand or Disk Utility’s “Erase” (select the whole device, not the volume) to remove it. - If the drive was used as a bootable installer, it may have multiple partitions. Cleaning removes them all.
Drive is read-only or write-protected
- Check for a physical lock switch.
- On Windows, open Diskpart, select the disk, and type
attributes disk clear readonly. - On Mac, try erasing with Disk Utility; if it fails, use Terminal’s
diskutil eraseDiskcommand.
Drive works but is very slow after cleaning
- Some USB drives are just slow. Try a full format (not quick) to potentially improve performance.
- If the drive is old, it may be failing. Back up any important data and consider replacing it.
Frequently Asked Questions
Will cleaning my USB drive damage it?
No, cleaning (formatting) is a normal operation that doesn’t harm the drive. It only erases data. However, if the drive is already failing, the process might fail or the drive might become unusable.
What’s the difference between quick format and full format?
Quick format only removes the file system metadata, making files invisible but recoverable. Full format writes zeros to every sector, which takes longer but securely erases data and can detect bad sectors.
Can I recover files after cleaning?
If you did a quick format, yes, with data recovery software (like Recuva or PhotoRec). If you did a full format or used Diskpart’s clean, recovery is much harder and often impossible. Always back up before cleaning.
Which file system should I choose?
For maximum compatibility with all devices (TVs, cameras, consoles), use FAT32. For files larger than 4GB, use exFAT (works on Windows and Mac). NTFS is best for Windows-only use with large files and advanced permissions.
Why does my USB drive show less space than its label?
Manufacturers use decimal (1GB = 1,000,000,000 bytes) while computers use binary (1GB = 1,073,741,824 bytes). So a 16GB drive shows about 14.9GB. Also, the file system itself takes up a small amount of space.
Can I clean a USB drive that has a bootable OS (like Linux) on it?
Yes. Use Diskpart’s clean command or Disk Utility’s “Erase” on the whole device. This removes all partitions, including the bootable one, and restores it to a normal storage 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
- Fix Missing Scroll Bar in Chrome
- Fix Sony Vegas Crashing on Windows 10
- Fix Outlook Sent Items Missing? Quick Solutions
- Declutter Safari on iPhone: 15 Quick Tips
- Fix Google Maps Timeline Not Working on iPhone & Android
- How to Find Hidden Apps on iPhone (Unhide Guide)