Ubuntu: How to Format a USB Drive Safely

To format a USB drive on Ubuntu, the simplest method is the Disks app: select the USB device, select its partition under Volumes, choose Format Partition…, pick a file system, and confirm. You can also use GParted if you want more control over partitions. Formatting erases the files on the selected partition, so back up anything important and double-check the drive before you continue.

Before you format the USB drive

Connect the USB flash drive or external USB disk and verify that Ubuntu sees the correct device. A quick terminal check is:

lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS,MODEL,TRAN

Look for a device whose capacity and model match your USB drive. The TRAN column often shows usb. Do not rely on a device name such as /dev/sdb alone, because Linux device names can change when drives are connected or removed.

Ubuntu terminal showing lsblk output with a removable USB disk identified as sdb
Use the drive size and model to confirm which device is the USB disk before formatting anything.

Important: formatting is not the same as securely erasing data. GNOME’s documentation notes that recovery tools may still be able to retrieve data from a normally formatted disk. If you are preparing sensitive media for disposal, use an appropriate secure-erasure process instead.

Choose the right file system

File systemBest forWhat to know
exFATSharing large files between Linux, Windows, and macOSA practical cross-platform choice for modern computers and large USB drives.
FAT32Older devices and maximum compatibilityVery widely supported, but individual files are limited to 4 GB.
NTFSMostly Windows systemsUbuntu supports NTFS, but some TVs, cameras, and other devices may have limited support.
ext4Linux-only useA strong default when the USB drive will stay in Linux environments.

Method 1: Format a USB drive with Disks

For most Ubuntu Desktop users, Disks is the easiest option. The application is provided by the gnome-disk-utility package. If it is not installed on your Ubuntu flavor, run:

sudo apt install gnome-disk-utility
  1. Open Disks from the application menu.
  2. Select the USB device in the left sidebar. Check the displayed capacity and model carefully.
  3. Under Volumes, select the partition you want to reformat. If it is mounted, unmount it first using the stop/unmount control shown for that volume.
  4. Open the menu for the selected volume and choose Format Partition…. This is the current GNOME-documented path for reformatting a removable partition.
  5. Choose the file system and a volume name, then continue to the confirmation screen.
  6. Review the device details one more time, click Format, and authenticate if Ubuntu asks for your password.
  7. When formatting finishes, use the eject control before unplugging the drive.
GNOME Disks window with a USB drive selected and the device menu showing Format Disk
The device-level menu can include Format Disk…. For a normal reformat of an existing USB partition, use the volume controls under Volumes and choose Format Partition… instead.

The distinction matters: Format Partition… creates a new file system on the selected partition, while disk-level formatting can involve recreating the device’s partitioning structure. If your goal is simply to erase and reuse the existing USB volume, formatting the partition is usually the safer, simpler choice.

Method 2: Format a USB drive with GParted

GParted is useful when you need to see or change the partition layout as well as the file system. Install it with:

sudo apt install gparted

Then open GParted and authenticate. GParted warns that partition editing can cause data loss, so keep a backup and make sure you are working on the removable drive.

  1. Use the device selector in the upper-right corner to choose the USB disk. Match the capacity to the drive you identified earlier.
  2. Select the partition you want to format. If it is mounted, right-click it and choose Unmount. GParted requires partitions to be unmounted for formatting operations.
GParted window showing a USB disk selected with one NTFS partition
Confirm the USB device and its capacity in GParted before changing the partition.
  1. Right-click the partition, choose Format to, and select the file system you want.
  2. Review the pending operation. GParted queues changes rather than applying them immediately.
  3. Click the Apply All Operations checkmark, read the confirmation carefully, and apply the change.
  4. Wait for GParted to report that the operation has completed, then close the app and safely eject the USB drive.
GParted Format to menu showing ext4 exFAT FAT32 NTFS and other file system choices
GParted’s Format to menu lets you choose a file system before the change is added to the pending-operations queue.

If formatting fails

  • The format option is disabled: unmount the partition first and close any Files windows or applications using it.
  • The drive is missing: reconnect it, try another USB port, and run lsblk again. If the device still does not appear, the problem may be hardware-related rather than a formatting issue.
  • The file system you want is unavailable: install the supporting tools. On current Ubuntu releases, packages such as exfatprogs, dosfstools, and ntfs-3g provide utilities for common removable-drive file systems.
  • You need to change the partition layout: use GParted or the disk-level partitioning features in Disks, but confirm the entire device before applying changes.

Official references

For the current Disks workflow, see GNOME Help: Wipe everything off a removable disk. For partition formatting, unmounting, and applying queued changes in GParted, see the official GParted manual. Ubuntu’s package catalog also lists gnome-disk-utility for Ubuntu 26.04 LTS.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.