How to Format USB Drive on Linux? [Your Step-by-Step Guide Here] - Qiling  

How Do I Format USB Drive on Linux? Linux Beginners in 2023


The most commonly used file system format for USB drives that are compatible with all three operating systems is FAT32 or exFAT, as they are widely supported by Linux, Windows, and macOS. These formats are a good choice for USB drives that need to be used on multiple operating systems. However, if you only plan to use the USB drive on a Linux system, you can also consider using the ext4 file system format, which is native to Linux.

We can't get what we need if we only use Linux-compatible formats. Both don't follow Apple-only formats. FAT32 was the closest file system to a universal standard, allowing USB devices to be shared across Windows, Linux, and macOS. However, it had a 4GB file size limit, which was a major limitation.

format usb on linux

The exFAT file system is a Microsoft format that works with macOS and Linux, making it a strong contender for the best file system for USB devices. It removes the restriction of FAT32, lacks the overheads of NTFS, and has additional capabilities, making it quick and efficient.

Formatting a USB drive can be a tedious process, but it's necessary at times. You can use either the "Disks" program or the terminal to format your USB drive. Here's a step-by-step guide to help you through the process.

Formatting a USB drive can seem like a daunting task, but it's actually quite straightforward. While Windows can be a bit tricky to navigate, Linux makes the process much easier. With this tutorial, you'll be able to format your drive with confidence and ease.

What Is the Best Format for USB on Linux

To free up storage space on USB sticks, we often need to format them to make all the space available again for storing programs, movies, music, or our operating system.

ExFAT is the recommended filesystem for transferring files between Windows and Linux, particularly when using USB flash devices and SD cards, due to its ability to handle large files without the 4GB limit of FAT32, and its native support in modern Linux kernels.

The Disk File System, Flash File System, Tape File System, and others can be used with various types of storage, but this article focuses on the FAT32, NTFS, and Ext4 disc file systems.

Three major file systems - FAT32, NTFS, and Ext4 - store data on storage devices. Understanding their advantages and disadvantages is essential to choose the best file system for your needs, as each has its own set of benefits and drawbacks.

Comparison of Formats

#1. FAT32

#2. NTFS

#3. EXT

Best Format for USB Using on Linux

Microsoft introduced NTFS, which had a heavy data overhead, making it unsuitable for small storage devices. However, they also developed a new file system that retained the higher storage space limit of NTFS but was more lightweight, similar to FAT32.

exFAT is a file system that allows storage of up to 128 PB, making it ideal for large storage devices, while being space-efficient and using minimal system resources.

Macintosh also supports exFAT, making it a more portable option compared to Windows, and while it may require some extra steps on Linux systems, it is still possible to read and write on them.

What You Will Need Before Formatting USB on Linux

This tutorial will guide you through formatting a USB drive in Linux using three simple methods. You will learn how to format your USB drive using the command line interface with the mkfs and fsck commands, using the built-in disk formatting tool in the Linux desktop environment, and using the GParted partition manager.

#1. Back up all essential files on USB drive

If you have important files on the USB drive you're about to format, make sure to back them up to a safe location first.

#2. Pick a reliable USB formatting tool for Linux

Here are two common tools that most Linux users would apply to set the best format for their USB flash drives and you can pick one for help.

You May Also Like: For help with formatting a USB drive on other platforms, you can follow the guide on the linked pages listed here.

Format USB Using CMD How to Format USB to FAT32 on Mac Format SD Card for Android

How to Format USB on Linux With Step-by-Step Instructions

Sharing files between platforms is easy with USB devices, which can also be used to make live Linux installation mediums. Dedicated flash drives are plug-and-play, making them simple to use. However, sometimes you might need to format your USB drive on Linux.

Formatting a flash drive is a straightforward process that can be completed using the Linux terminal and Disks.

#1. Format USB Drive Using the Linux Terminal

Formulating a USB device is a straightforward process if you're comfortable with the terminal. Several command-line tools can be helpful in this process, making it easy to create and manage a USB device.

Step 1. Locate the USB Drive

To format a USB drive, you first need to identify the device name for your drive. You can do this by using the `lsblk` command. Once you've done that, you can format the drive using the `mkfs` command. For example, to format a USB drive with a size of 16 GB, you would use the command `mkfs -t ext4 /dev/sdb1`, replacing `/dev/sdb1` with the actual device name for your drive.

Locate USB in Terminal

The necessary gadget can be determined by examining its size, which should be something like /dev/sdX, where X can be one of a, b, c, etc., representing the name of the gadget.

Find the name of the gadget

Step 2. Unmount the USB

To unmount the USB partition, run the command: `sudo umount /dev/sdb1` and then confirm by typing "y". Next, suppose the USB device's name is `/dev/sdb` and its disc partition is `/dev/sdb1`. This guide will proceed with these names.

Disc partition name is /dev/sdb1

The device is unmounted with the umount command, and you're now ready to format the USB.

Step 3. Format the USB Drive

To format a device, you need to unmount it first. This is because formatting will erase all data on the device, so you must back up any important files beforehand. Once you've backed up your files, you can proceed with unmounting the device, after which you can format it with a new file system.

back Up

You can format your USB drive using the popular FAT32 file system, but you can also choose an alternative file system like NTFS or exFAT.

Choose an Alternative File System

To give your gadget a name, use the -n option.

Use the -n Option

Format USB Drive Using Disk Utility

The majority of well-Many known Linux distributions come with a disc manager already installed, such as GNOME Disk Utility—Disks on Ubuntu. To format a USB on Linux, follow these simple steps using this tool.

Step 1. Start Disks

To find the Disks program, type "discs" into the dash search menu and click on it to launch the software.

Step 2. Locate the USB Drive

To select a USB, first, plug it in. Then, look for it in the list of connected devices. Once you see it, click on it to choose it.

Choose the USB

Step 3. Format the USB Drive

Once you've chosen the proper device, you can begin formatting by selecting the Gear icon in the bottom menu and choosing the Format Partition option.

Click Format Partition Option

You can choose the partition type, name your USB drive, and wipe any previously stored data using the dialogue that appears. FAT is recommended for its compatibility with all systems and gadgets. Other options are available if you prefer.

Name Your USB Drive

To finish formatting your USB in Linux, click Next to move on to the prompt that displays a data loss warning, then click Format.

Click Format

If you're using KDE, you can replace Disks with the KDE Partition Manager software, as the steps are very similar.

Conclusions

Linux offers various reliable tools for managing and operating USB device discs, including tools that make it easy to format USB drives and establish a new file system. For those comfortable with the command line, formatting a USB drive can be done quickly from the terminal, while beginners may find GNOME Disks a more user-friendly option.

FAQs about Formatting USB Linux

If you still have some doubts, read the answers to the following questions.

1. How do I format USB in Windows 10?

There are some steps to follow;

Once the formatting is complete, the USB flash drive will be ready to store documents, photos, videos, and other types of information.

2. Can I format USB for both Linux and Windows?

Yes, sure. NTFS-Formatted discs can be used on both Windows and Linux platforms, and they can be set to a USB drive, making them a reliable and trustworthy option.

3. How Do I format USB in Ubuntu?

Formatting a USB drive can take anywhere from a few seconds to several minutes, depending on the file system, USB interface speed, and storage capacity.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it