Linux: Format USB to exFAT

Evgeniy Fitsner Software Engineer
2 min read
Linux: Format USB to exFAT

Introduction

The exFAT filesystem is ideal for USB flash drives that need to work across multiple operating systems - Windows, macOS, and Linux. Unlike FAT32, exFAT supports files larger than 4GB, making it suitable for high-capacity drives and large media files.

Prerequisites

Make sure the exfatprogs or exfat-utils package is installed on your system:

1
2
3
4
5
6
7
8
# Debian/Ubuntu
sudo apt install exfatprogs

# Fedora
sudo dnf install exfatprogs

# Arch Linux
sudo pacman -S exfatprogs

Format the Drive

Follow these steps to format your USB drive:

  1. Gain root access:
1
sudo -i
  1. Identify your USB drive:
1
fdisk -l

Look for your drive in the output (for example, /dev/sdc1). Double-check the device path to avoid formatting the wrong drive.

  1. Format to exFAT with a label:
1
mkfs.exfat -n SOME_DISK_LABEL /dev/sdc1

Replace SOME_DISK_LABEL with your preferred volume name and /dev/sdc1 with your actual device path.

  1. Verify the filesystem:
1
fsck.exfat /dev/sdc1

This confirms the drive was formatted without errors.

Notes

  • All data on the drive will be erased during formatting. Back up important files first.
  • The device path (e.g., /dev/sdc1) will vary depending on your system. Always verify with fdisk -l before proceeding.

Contents