If you’re like most people, you probably use a USB drive to store your photos, music, and movies. But what if you want to use that drive with your computer? You can format it using GParted, a free partition manager. Here’s how:

  1. Open GParted by clicking the “GParted” icon on the desktop or by typing “gparted” in the terminal.
  2. Click the “Create Partition” button and create a new partition on your USB drive. For this example, we’ll create a 100GB partition.
  3. Select the newly created partition and click the “Format” button. In the Format dialog box, select “Linux (ext4)” from the Format type drop-down list and click OK.
  4. Click OK to close the Format dialog box and exit GParted. Your USB drive should now be formatted as a Linux filesystem! ..

Note: Formatting a USB drive will destroy any data currently stored on it. If you think that your USB drive is already properly formatted, but Ubuntu just isn’t picking it up, try unplugging it and plugging it back in to a different USB slot, or restarting your machine with the device plugged in on start-up.

Open a terminal by clicking on Applications in the top-left of the screen, then Accessories > Terminal.

GParted should be installed by default, but we’ll make sure it’s installed by entering the following command in the terminal:

To open GParted, enter the following command in the terminal:

Find your USB drive in the drop-down box at the top right of the GParted window.

The drive should be unallocated – if it has a valid partition on it, then you may be looking at the wrong drive.

Note: Make sure you’re on the correct drive, as making changes on the wrong hard drive with GParted can delete all data on a hard drive!

Assuming you’re on the right drive, right-click on the unallocated grey block and click New. In the window that pops up, change the File System to fat32 for USB Flash Drives, NTFS for USB Hard Drives that will be used in Windows, or ext3/ext4 for USB Hard Drives that will be used exclusively in Linux. Add a label if you’d like, and then click Add.

Click the green checkmark and then the Apply button to apply the changes.

GParted will now format your drive. If you’re formatting a large USB Hard Drive, this can take some time.

Once the process is done, you can close GParted, and the drive will now show up in the Places menu.

Clicking on the drive will mount it and open it in a File Browser window. It will also add a shortcut to the drive on the Desktop by default.

Your USB drive is now ready to store your files!