Website Vidya
Linux & ServersStep-by-Step Guide

How to Mount and Use exFAT Drives on Ubuntu

Learn how to mount and use exfat drives on ubuntu 24.04 with native kernel drivers, fstab automounting, exfatprogs formatting, and permissions.

RR
Rajesh RayLead Systems Educator
Published:
5 min read
PDF Cheat Sheet
How to Mount and Use exFAT Drives on Ubuntu
AI Executive SummaryWebsiteVidya AI

5 min read

Learn how to mount and use exfat drives on ubuntu 24.04 with native kernel drivers, fstab automounting, exfatprogs formatting, and permissions.

Key Highlights
  • Prerequisites and Supported Releases
  • Step 1: Installing exFAT Management Utilities (exfatprogs)
  • Step 2: Identifying Your Connected exFAT Storage Device
Grounded in full engineering runbookWebsiteVidya AI Engine

The exFAT (Extended File Allocation Table) filesystem is the universal industry standard for high-capacity external storage media, including USB flash drives, SDXC memory cards, and portable external SSDs.

Unlike FAT32, which is crippled by an antiquated 4 GB individual file size limitation, exFAT supports colossal multi-terabyte files and seamlessly interoperates across Windows, macOS, Android, and Linux.

Historically, mounting exFAT on Linux required sluggish user-space FUSE drivers (exfat-fuse) due to proprietary patent restrictions.

Since Linux kernel 5.7 and Microsoft's official publication of the exFAT specification, Ubuntu natively integrates a high-performance in-tree kernel exFAT driver capable of blistering read/write throughput.

Advertisement

In this guide, we walk through how to mount and use exfat drives on ubuntu, identify storage UUIDs, configure automated mounting via /etc/fstab, and format partitions using exfatprogs.

Prerequisites and Supported Releases

This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat) & Ubuntu 22.04 LTS. The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.

Before proceeding, ensure you have the following requirements satisfied:

Advertisement
  • A computer or server running Ubuntu 24.04 LTS or Ubuntu 22.04 LTS.
  • An external USB flash drive or SSD formatted as exFAT.
  • A user account with sudo administrative privileges.
  • Access to a bash terminal shell.

Step 1: Installing exFAT Management Utilities (exfatprogs)

While modern Linux kernels provide native in-tree filesystem drivers to read and write exFAT data, user-space utilities for formatting and filesystem integrity checks are packaged separately.

Ubuntu 24.04 provides the modern, community-maintained exfatprogs package, replacing the deprecated exfat-utils:

Install exfatprogs using apt:

# Update repository cache:
sudo apt update

# Install modern exFAT user-space tools:
sudo apt install -y exfatprogs

# Verify installed utility version:
fsck.exfat -V
# Expected output confirms exfatprogs presence.

Step 2: Identifying Your Connected exFAT Storage Device

Plug your external exFAT drive into your computer or server.

Advertisement

Use the lsblk and blkid commands to identify the device node name (such as /dev/sdb1 or /dev/nvme0n1p1) and verify its filesystem type:

Inspect the block device topology in your terminal:

# List block storage devices with filesystem types:
lsblk -f
# Example output snippet:
# NAME   FSTYPE LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
# sdb                                                                       
# └─sdb1 exFAT  SANDISK 1234-ABCD                             58.2G     2% 

# Display specific device UUID and partition details:
sudo blkid /dev/sdb1
# Output confirms: /dev/sdb1: LABEL="SANDISK" UUID="1234-ABCD" TYPE="exfat"

Step 3: Manually Mounting the exFAT Partition

To access files on the drive, create a designated mount point directory inside /media/ or /mnt/.

Because exFAT is a Microsoft filesystem that does not natively support POSIX ownership permissions, pass user ID (uid) and group ID (gid) flags during mounting so your unprivileged user has full read/write access:

Mount the partition using the mount command:

# Create mount point directory:
sudo mkdir -p /mnt/exfat-drive

# Identify your current user's UID and GID:
id -u # Output: 1000
id -g # Output: 1000

# Mount the exFAT partition with full user read/write permissions:
sudo mount -t exfat -o uid=1000,gid=1000,umask=0022 /dev/sdb1 /mnt/exfat-drive

# Verify mounted filesystem:
df -h /mnt/exfat-drive
# Output confirms mount point, total size, and available space.

Step 4: Configuring Automatic Persistent Mounting in /etc/fstab

For permanent external drives or secondary data disks that must automatically mount upon every system boot, configure an entry in /etc/fstab.

Always reference partitions by their unique filesystem UUID rather than mutable device names (like /dev/sdb1) to prevent boot failures if drive letters change:

Open /etc/fstab and add the persistent mount specification:

# Append mount directive to /etc/fstab (substitute your actual UUID):
# UUID=1234-ABCD /mnt/exfat-drive exfat defaults,uid=1000,gid=1000,umask=0022,nofail 0 0

# The 'nofail' flag is critical: it prevents the server from halting boot
# if the external USB drive is unplugged during reboot.

# Test fstab syntax immediately without rebooting:
sudo mount -a

Step 5: Formatting a Drive as exFAT with mkfs.exfat

If you have a newly partitioned USB drive that you wish to format as exFAT for cross-platform compatibility across Windows, Mac, and Linux:

Unmount the partition first, then execute mkfs.exfat with an optional volume label:

Verify the target partition carefully to avoid overwriting operating system disks:

# Ensure partition is unmounted:
sudo umount /dev/sdb1

# Format partition as exFAT with label 'DATA_DRIVE':
sudo mkfs.exfat -L "DATA_DRIVE" /dev/sdb1
# Output confirms:
# Creating exFAT filesystem on /dev/sdb1 ...
# File system created successfully.

Troubleshooting and Common Errors

When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:

mount: /mnt/exfat-drive: unknown filesystem type 'exfat'

Cause: The exfat kernel module is not loaded or user-space utilities are missing.

Resolution: Install exfatprogs (sudo apt install exfatprogs) and load the kernel module with sudo modprobe exfat.

sudo modprobe exfat && lsmod | grep exfat

Files on mounted exFAT drive are read-only for regular user

Cause: The drive was mounted without uid, gid, and umask mount options, defaulting to root ownership.

Resolution: Remount with your personal user ownership: sudo mount -o remount,uid=$(id -u),gid=$(id -g),umask=0022 /mnt/exfat-drive.

sudo mount -o remount,uid=1000,gid=1000 /mnt/exfat-drive

Server hangs on boot waiting for external drive

Cause: An entry was added to /etc/fstab without the nofail option, causing systemd to block boot when the drive is disconnected.

Resolution: Add ,nofail to the mount options in /etc/fstab so boot proceeds cleanly when the external drive is unplugged.

cat /etc/fstab | grep exfat

Security Best Practices and Hardening

exFAT does not enforce POSIX file permissions or ownership natively; all files on the drive inherit the permissions assigned during mount.

Always unmount the drive with sudo umount /mnt/exfat-drive before physically unplugging it to ensure data buffers are flushed to disk.

For sensitive business data stored on portable external drives, consider hardware-encrypted drives or VeraCrypt containers rather than bare exFAT.

Deepen your Linux system administration skills with our related production-tested guides:

Authoritative References and Official Documentation

Frequently Asked Questions

Quick answers to common questions and configurations

4 FAQs
exfat-fuse runs as a user-space driver through the FUSE layer, causing continuous context switches and slow transfer speeds. The native in-tree Linux kernel exFAT driver (available since kernel 5.7) runs directly in kernel space, delivering multi-gigabit transfer throughput matching native filesystems.
No. exFAT lacks POSIX filesystem permissions, symbolic links, hard links, and UNIX ownership flags (UID/GID) required by Linux system directories (like /bin, /etc, /var). Use ext4, Btrfs, or ZFS for Linux root installations.
Unmount the drive and execute sudo fsck.exfat /dev/sdb1. This scans the allocation tables, directory trees, and metadata clusters for corruption and fixes errors safely.
exFAT supports a theoretical maximum file size of 16 Exabytes (16 million Terabytes), completely eliminating the 4 GB file size barrier of FAT32.
RR
Written byVerified Author

Rajesh Ray

I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.

SPAM-FREE MODERATED DISCOURSE

Join the Conversation & Perspective

Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.

AT
MP
JV
+2

No comments on this guide yet. Be the first to share your thoughts or ask a question!

Recommended Reading10 Guides

Related Technical Guides

Tested runbooks, server administration walkthroughs, and troubleshooting guides

Featured Infrastructure PartnerUp to 75% OFF + 3 Months Free

Supercharge Your Linux & Cloud Workloads with Hostinger

Deploy high-speed NVMe KVM VPS, Docker containers, and LiteSpeed-accelerated WordPress servers in under 60 seconds with full root access, dedicated IPv4, and 24/7 technical support.

Pure NVMe SSD StorageFull Root Access & SSHFree Domain & Unlimited SSL99.9% Uptime SLA
Plans from$2.99/mo
Claim Hostinger DealAffiliate link • Special discount applied at checkout