Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Format a USB Stick using exFAT on Linux

December 6, 2022
in Blog, Linux
0
ADVERTISEMENT

Table of Contents

FAT vs exFAT

For a long time, FAT format 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 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 situation 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. And in this tutorial, I’ll show you how to format a USB disk in exFAT filesystem. Otherwise, you can enable exFAT support explicitly.

Enable exFAT support in Linux

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).

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.

1. Insert your external USB disk. Now, look for Disks in menu and open the GNOME Disks application. 

2. Select the USB drive from the left side and bring up the menu then select Format Partition… option.

Note Note: Pay attention to the disk you are selecting to format. Don’t format your main disk accidentally

3. The commonly used file systems like Ext4, NTFS, FAT will appear first. To use exFAT, choose Other option then click on Next.

4. Finally, choose exFAT file system on below screen and then click Create.

Method 2: Format disk as exFAT in Linux command line

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.

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

sudo fdisk -l

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/sdb.

...
Disk /dev/sdb: 28.84 GiB, 30943995904 bytes, 60437492 sectors
Disk model: DataTraveler 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 503EB05C-6244-48B3-8A5B-CFEAB2C0911A

Device      Start      End  Sectors  Size Type
/dev/sdb1      40   409639   409600  200M EFI System
/dev/sdb2  409640 60175311 59765672 28.5G Apple HFS/HFS+

2. Once you have identified your USB disk, format it as exfat using the command below. MyUSB is basically the name you want to give to your disk.

Note Note: Replace with your disk’s device ID.
sudo mkfs.exfat -n MyUSB /dev/sdb

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

sudo fsck.exfat /dev/sdb

Copy a large file into the USB stick

Now, try to transfer an ISO image or some other file greater than 4 GB in size to verify it works.

bonben@ub20:/media/bonben/MyUSB$ ls -l /media/bonben/MyUSB/
total 5393952
drwxrwxrwx 1 bonben bonben      32768 ១២  6 15:59 'System Volume Information'
-rwxrwxrwx 1 bonben bonben 5523374080 ១២  6 16:40  Win11_22H2_English_x64v1.iso
ADVERTISEMENT
5/5 - (1 vote)
Previous Post

How to Upgrade from Windows 11 to Windows 11 22H2 without Requirements

Next Post

How to Download and Install Balena Etcher on Ubuntu 22.04

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory