Category: Linux Terminal

Added: 17th of September 2019

Viewed: 1024 times

Using GParted in Linux to format a hard drive, flash drive, SD Card

This tutorial works in Ubunbu, Kubuntu, Xubuntu, Lubuntu, Ubuntu Mate and other Ubuntu based distributions. The tutorial also works in Linux Mint and other Debian based distributions.

If you ever need to format your hard disk, USB flash drive, and SD cards in your Linux distribution, you can install a package called GParted.

GParted can do more than just format your drive, you can create, resize, delete partitions, label, set new UUIDs and also copy and paste. Gparted also works with the following file systems.

ext2 / ext3 / ext4
fat16 / fat32
hfs / hfs+
lvm2 pv
reiserfs / reiser4

If you don't have Gparted installed on your Linux distribution, open your terminal and enter the following command, or install using the software centre or package manager in your distribution. If your not using an Ubuntu based distribution installation will be different.

sudo apt-get install gparted

Once installed you can start Gparted from the terminal, or from the main menu on your distribution. Gparted requires you to enter your root password.
sudo gparted

Once Gparted has launched, click on the Gparted menu at the top and click on Refresh Devices

Next select the drive that you wish to format from the menu. Please ensure you select the correct drive.

Click on the partition table

Right click on the partition table, select Format to and select the filesystem you wish to format too.

Click the Apply All Operations button, and then click Apply.

Your hard disk / USB flash drive / SD card has now been formatted.

Other Tips & Tutorials

Linux Terminal

Create a new folder and file using the mkdir and touch commands using the terminal in Linux

Posted: 16th of August 2020

Views: 137

Linux Terminal

Convert a PDF document to text or html using pdftotext, pdftohtml in Linux using the terminal

Posted: 3rd of August 2020

Views: 168

Linux Terminal

List files in a directory using the ls command

Posted: 22nd of July 2020

Views: 168

Linux Terminal

How to access HP Linux Imaging and Printing System set up on Ubuntu using the terminal

Posted: 13th of November 2019

Views: 497

Linux Terminal

Where are the log files located in Linux

Posted: 16th of October 2019

Views: 563

Linux Terminal

Oracle VirtualBox, Unable to insert virtual optical disk

Posted: 11th of October 2019

Views: 1900

Linux Terminal

Oracle VirtualBox only displaying 32-bit version(s), when setting up new Virtual Machine on Linux

Posted: 11th of October 2019

Views: 657

Linux Terminal

The Linux uptime command

Posted: 3rd of October 2019

Views: 699

Linux Terminal

Using GParted in Linux to format a hard drive, flash drive, SD Card

Posted: 17th of September 2019

Views: 1024

Linux Terminal

Copy .iso image to USB flash drive using dd command in Linux using the terminal

Posted: 3rd of September 2019

Views: 283