How to Format a USB Disk as exFAT on Linux [Graphically and Command Line]

This tutorial teaches you how to format a USB disk in exFAT format on Linux systems. Both GUI and command line methods have been discussed.
Warp Terminal

For a long time, FAT has been the default choice of filesystem for formatting disks. It is compatible with pretty much all the major operating systems.

The one major problem with the FAT filesystem is that you cannot transfer a file larger than 4 GB. This means even if your USB disk has 32 GB of free space, if you try to transfer an ISO image or some other file greater than 4 GB in size, the transfer will fail.

This creates a problem in situations like when you are creating a bootable USB of Windows in Linux. You cannot use NTFS and FAT filesystem has that 4 GB size restrictions.

To overcome the limitations of FAT filesystem, Microsoft came up with exFAT filesystem. In this tutorial, I’ll show you how to format a USB disk in exFAT filesystem.

Prerequisites

Starting Linux kernel 5.4, exFAT filesystem support is enabled in the Linux kernel itself. Check which Linux kernel version you are running. If it is kernel 5.4 or higher, you should be fine (mostly).

Otherwise, you can enable exFAT support explicitly.

In Ubuntu 20.04 and lower versions, you can use the following command:

sudo apt install exfat-fuse exfat-utils

For Ubuntu 22.04 and higher, you should use this command instead:

sudo apt install exfat-fuse exfatprogs

Method 1: Format disk as exFAT using GNOME Disks tool

Formatting a drive using GNOME Disks is a straightforward job. It comes preinstalled in a number of Linux distributions.

Plug in your external USB disk. Now, look for Disks in menu and open the GNOME Disks application. As a first step choose the drive that you want to format and follow the steps with me.

🚧
Pay attention to the disk you are selecting to format. Don’t format your main disk accidentally.
GNOME disks for formatting disks in Linux

The commonly used file systems like Ext4, NTFS, FAT will appear first. To use exFAT, choose β€œOther” and then click on β€œNextβ€œ.

Formatting disk as ExFAT disks in Linux

Final step: choose exFAT file system on this screen and then click Create. Job done!

Formatting disk as ExFAT disks in Linux

See how easy it was to create a exFAT disk in Linux graphically? Now, let me show you the terminal method as well.

Method 2: Format disk as exFAT in Linux command line (for advanced users)

fdisk is a dialogue-driven command-line utility that creates and manipulates partition tables and partitions on a hard disk. In fact, it is considered one of the best partitioning tools for Linux.

Plug in your external hard disk then type the following command in the terminal:

sudo fdisk -l
using fidks to list disks

This will list down all the hard disks and partitions in your computer. Identify the partition that you want to format in your external hard disk. Size of the disks should give you a hint. For me, the USB disk was labelled as /dev/sdb1.

Once you have identified your USB disk, format it as exfat using the command below. Replace /dev/sdXn with your disk’s device ID. LABEL is basically the name you want to give to your disk like Data, MyUSB etc.

sudo mkfs.exfat -n LABEL /dev/sdXn
Use fdisk to format USB as exfat in Linux command line

Optionally, run fsck check to make sure the formatting has been done properly.

sudo fsck.exfat /dev/sdXn

That’s it. Enjoy the exFAT disk.

Did you succeed in creating exFAT disk?

I hope you find this tutorial simple enough and a step forward to build a solid partitioning knowledge foundation.

Sometimes, easy and simple tips and tricks will make you a better Linux in the long term. Our frequent readers know that first hand but if you discovered It’s FOSS recently, you may take the opportunity to explore our handy tutorials.

Don’t forget to subscribe and let me know your questions and suggestions in the comments below.

About the author
Dimitrios

Dimitrios

Dimitrios is an MSc Mechanical Engineer but a Linux enthusiast in heart. His machines are powered by Arch Linux but curiosity drives him to constantly test other distros. Challenge is part of his per

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.