What formatting a USB drive actually does

Formatting erases everything on your USB drive and prepares it to store new files. When you format, you choose a file system — the structure that tells your computer how to organize and find data on that drive. The three most common file systems are NTFS (Windows standard), exFAT (works on Windows and Mac), and FAT32 (older, works everywhere but has a 4GB file size limit).

You might format a USB drive because it's corrupted and won't read properly, you want to erase sensitive files before giving it away, or you need to change the file system so it works with a different operating system. Formatting is permanent — once you start, you cannot undo it. Back up anything you want to keep before you begin.

Key Takeaways

  • Formatting erases all data on the drive and sets up a file system; choose NTFS for Windows-only use, exFAT if you share between Windows and Mac, or FAT32 only if you need compatibility with very old devices.
  • On Windows, right-click the drive in File Explorer, select Format, choose your file system, and confirm; the process takes seconds to a few minutes depending on drive size.
  • On Mac, open Disk Utility, select the drive, click Erase, choose APFS or Mac OS Extended, and confirm the operation.
  • On Linux, use GParted (graphical) or command-line tools like mkfs, and always verify you have selected the correct device before formatting.
  • Back up all files before formatting because the operation cannot be reversed.

Formatting on Windows

Plug your USB drive into a Windows computer and wait for it to appear in File Explorer. Open File Explorer, locate your USB drive in the left sidebar or under "This PC", right-click it, and select Format from the menu.

A dialog box will open asking for a volume name (the label that appears on your drive), a file system, and allocation unit size. For the file system, choose NTFS if the drive will only be used on Windows computers, or exFAT if you plan to use it on both Windows and Mac. Leave allocation unit size set to Default. Check the box next to "Quick Format" — this erases the file table without overwriting every byte, which is faster and sufficient for most purposes. Click Start, then confirm the warning that all data will be erased.

The format will complete in seconds for a quick format, or several minutes for a full format (which overwrites all data). Once finished, your drive is ready to use and will appear in File Explorer with the volume name you chose.

Formatting on Mac

Connect your USB drive to your Mac. Open Disk Utility — you can find it by clicking the Finder icon, selecting Applications, then Utilities, then Disk Utility. Alternatively, press Command+Space to open Spotlight search and type "Disk Utility".

In Disk Utility, select your USB drive from the list on the left side. The drive name usually includes the manufacturer or a generic label like "USB Drive". Click the Erase button at the top. A dialog will ask for a name, file system, and scheme. Name your drive whatever you want it to be called. For file system, choose APFS if the drive will only be used on modern Macs (2017 or newer), or Mac OS Extended if you need compatibility with older Macs. Leave the scheme as GUID Partition Map. Click Erase and confirm.

The process takes a few seconds to a minute. When it finishes, your drive is formatted and ready. Eject it by right-clicking and selecting Eject, or by dragging it to the Trash (which becomes Eject when a drive is selected).

Formatting on Linux

Linux offers two main approaches: a graphical tool called GParted, or command-line tools. GParted is easier if you are not comfortable with terminal commands. Install GParted through your distribution's package manager (on Ubuntu, open the Software Center and search for GParted, or run sudo apt install gparted in a terminal). Open GParted, select your USB drive from the dropdown menu at the top right, right-click the partition, and select Format To, then choose your file system (ext4 for Linux-only use, exFAT for cross-platform compatibility, or NTFS for Windows compatibility).

If you prefer the command line, first identify your drive by running lsblk or sudo fdisk -l. USB drives typically appear as /dev/sdb, /dev/sdc, or similar — never /dev/sda, which is usually your system drive. Once you have confirmed the correct device, unmount it with sudo umount /dev/sdX (replace X with your drive's letter), then format it with sudo mkfs.ext4 /dev/sdX for ext4, sudo mkfs.exfat /dev/sdX for exFAT, or sudo mkfs.ntfs /dev/sdX for NTFS. Double-check the device name before running any mkfs command — formatting the wrong device will destroy data on that device.

Choosing the right file system for your needs

NTFS is the modern Windows standard. It supports files larger than 4GB, works on all recent Windows versions, and is the fastest choice if you only use Windows. Mac can read NTFS drives but cannot write to them without third-party software. Linux can read and write NTFS with the ntfs-3g driver, which is usually pre-installed.

exFAT is the best choice if you move files between Windows and Mac. It supports large files, is recognized by both operating systems without extra software, and works on most modern devices. It is slightly slower than NTFS but the difference is not noticeable for typical file transfers. Linux support for exFAT requires the exfat-fuse package, which may not be pre-installed.

FAT32 is the oldest format and works on virtually every device, including old cameras, game consoles, and car stereos. However, it cannot store files larger than 4GB, so a single video file or disk image might exceed the limit. Use FAT32 only if you know you need compatibility with older hardware.

ext4 is the Linux standard and offers good performance and reliability. It is not recognized by Windows or Mac without additional software, so use it only if the drive will stay on Linux systems.

APFS and Mac OS Extended are Mac formats. APFS is newer and more efficient but only works on macOS 10.13 and later. Mac OS Extended (also called HFS+) works on older Macs. Neither is readable by Windows or Linux without third-party tools.

What to do if your drive will not format

If formatting fails or your drive is not recognized, the drive may have a hardware problem or a corrupted partition table. Try connecting it to a different USB port or a different computer — sometimes the port itself is faulty. If the drive appears in Disk Utility or GParted but formatting fails, try erasing the partition table first, then creating a new partition, then formatting.

On Windows, if the drive does not appear in File Explorer but shows up in Disk Management, right-click it in Disk Management and select Delete Volume, then right-click the unallocated space and select New straightforward Volume. On Mac, if Disk Utility shows the drive but cannot erase it, try First Aid to repair it first. On Linux, use GParted to delete all partitions, create a new partition table, create a new partition, and then format.

If the drive still does not work after these steps, it may have failed physically. Most USB drives are inexpensive enough to replace, and data recovery from a failed drive is expensive and not always successful.

Frequently Asked Questions

Will formatting remove a virus from my USB drive?

Yes. Formatting erases all files, including any malicious software. However, if your computer was infected by files on the drive, formatting the drive alone will not remove the virus from your computer — you will need to scan and clean your computer separately.

Can I format a USB drive while files are still on it?

No. You must back up any files you want to keep before you start formatting. Once formatting begins, all data is erased and cannot be recovered through normal means. Some data recovery services can retrieve files from a formatted drive, but this is expensive and not always successful.

Why does my USB drive show as read-only and won't let me format it?

Some USB drives have a physical write-protect switch on the side — check for a small sliding switch and make sure it is in the unlocked position. If there is no switch, the drive may have firmware-level write protection. Try formatting on a different computer or using a different tool. If the drive is still read-only, it may need a firmware update from the manufacturer, or the drive may have failed.

How long does formatting take?

A quick format on Windows or Mac takes seconds to a minute for most drives. A full format, which overwrites all data, can take 5 to 30 minutes depending on drive size and speed. On Linux, formatting speed depends on the file system and drive speed but is usually similar to Windows quick format.

What is the difference between formatting and deleting files?

Deleting files removes them from the file list but leaves the data on the drive — it can often be recovered with data recovery software. Formatting erases the file system itself and prepares the drive for a new file system, making recovery much harder. Formatting is more thorough and is the right choice if you are giving away or selling the drive.