How to Format a USB Drive in Ubuntu Using GParted


Key Takeaways

  • Back up your files before formatting a USB drive in GParted to avoid data loss.
  • After installing GParted, make sure to select the correct drive using the drop-down menu in the top-right corner.
  • If you run into problems, check your USB drive’s S.M.A.R.T health and confirm that you’ve selected the right file system before you try again.



Running Ubuntu but don’t know how to wipe a USB drive? It isn’t as difficult as you might think if you’re using GParted, which has been an important tool in the Linux user’s toolkit for about 20 years. I’ll show you how to use it to format a USB drive using GParted on Ubuntu below.


Remember To Back Up Your Files First

Let’s start with a warning that never gets old. Before you open GParted, you should check your USB drive for any important files. If you’ve not already done so, back up your files to a safe place.

Disk formatting wipes away the data on your disk. It may be possible if you use professional grade data retrieval software to recover some of it, but let’s be honest—that’s not an ideal position to be in, and you can avoid it by checking your drive for important files first. If you’re sure that you’re not going to lose any important files, your next step is to be sure that you’re choosing the right disk to format.


If your USB drive has a disk label, for instance, make sure to select it from GParted menu once you reach that point. Choosing the wrong drive will be a costly mistake.

Installing GParted on Ubuntu

Once you’re confident that you aren’t going to lose any important files from your USB drive, you can install GParted on your Ubuntu installation. It’s possible that you already have it installed. If you do, these steps won’t do much, but they will ensure that you have the most up-to-date version of GParted installed on your system.

To begin, open up the terminal on your Ubuntu PC and run this command:

sudo apt update

Type sudo apt update into the Ubuntu terminal and press Enter to update your software package repository list.

This will update the list of available software packages that you can install on your PC. Once that’s done, run the following:


sudo apt upgrade

Type sudo apt upgrade and hit Enter in the terminal to begin updating any installed packages.

This command will ensure that your PC is fully up-to-date. If prompted, make sure to hit the Y key followed by Enter to confirm the installation, then type in your admin password to complete the process. Once this is done, run this command to install GParted:

sudo apt install gparted

In the terminal, type sudo apt install gparted and press Enter.

As before, type Y and hit Enter to confirm the installation if you’re prompted to do so. Once installed, you can launch GParted from the Ubuntu app menu or by launching it via the terminal using this command:


gparted

Type gparted and hit Enter in the terminal to launch GParted on Ubuntu

When prompted, type in your password and hit Enter.

Preparing a New Partition Table and Formatting the Drive

When you format a drive in GParted, you do so by destroying the existing partition table and creating a new one. A partition table is the structure of your drive’s data. It allows you to split a single drive into multiple smaller, segmented partitions. Even if you only have one partition for the whole drive, you’ll still need to remove and recreate the table to format it.

Thankfully, GParted’s user interface makes the whole process straightforward. First, open GParted and select your USB drive from the drop-down menu in the top-right corner. It may have a drive label but, if it doesn’t, use the size of the drive to help you identify the correct one.


In GParted, select the drive you want to format from the drop-down menu in the top-right.

You’ll see a list of partitions in the main menu once you’ve selected the drive. If you’ve not formatted the drive before, it may say unallocated, meaning that there aren’t any existing partitions. If there are, right-click the existing partition and select “Delete” from the menu.

Right-click an existing partition and select Delete to remove it.

Repeat this for any other partitions until the entire drive is unallocated or, if you want to keep some existing partitions, until enough space is available to create a new drive. Next, right-click the empty “unallocated” space and select the “New” option.


Right-click unallocated space in GParted and select New to create a new partition.

Use the sliders or the boxes provided to choose how large you’d like your partition to be, or allow it to fill the entire drive. If you want to use the drive on Windows, select a Windows-friendly file system like FAT, FAT32, or NTFS from the “Filesystem” drop-down menu. Alternatively, you can choose a Linux-friendly file system like EXT4 instead. When you’re ready, click the “Add” button.

Choosing a new partition's file size and file system in GParted.


Repeat the steps for any other partitions you’d like to make. Alternatively, right-click on an existing partition and hover over the “Format To” options. From the options, choose a file system you want to format to, such as NTFS.

Right-click on an existing partition, hover over the Format To menu, then choose a file system from the options provided.

When you’re ready, click the “Apply All Operations” tick box button from the menu at the top.

Click the Apply All Operations icon in GParted to begin the formatting process.

You’ll be asked to confirm your choice, so click “Apply” to do so.


When prompted, click Apply to confirm the formatting process in GParted.

At this point, GParted is formatting your drive to your new specifications. You can’t undo this, and I really wouldn’t recommend trying, as you might corrupt your drive. GParted will confirm whether the process was successful. If that’s the case, you can press “Close” to exit the menu and begin using your newly formatted drive immediately.


In most cases, GParted should be able to format your drive with no issues, but there are a few things you might want to watch out for if you do run into errors.


If there’s a problem with the drive itself, you should check your drive’s S.M.A.R.T data to make sure the drive isn’t failing. If it is, it’s time to swap the drive out for something else. Otherwise, make sure that you’re using the right settings in GParted, like the correct file system. Remember that while Ubuntu can read Linux-only file systems like EXT4, a Windows PC won’t, so you’ll need to use the right file system for your set-up.

In most cases, though, if GParted fails, you don’t need to be too precious about it (as long as you’ve not lost any important data). You can always delete anything that exists on the drive and start the process again. Alternatively, you can use Ubuntu’s built-in disk management tool called Disks to format your USB drive. It isn’t as powerful as GParted, but it should still get the job done.



Source link

Previous articleBye Spam: Surfshark Alternative ID and Number boost privacy
Next articleiPhone 16 cases with Camera Control, what you need to know