Gparted is a popular and free tool for Managing disks on Linux. Using GParted, we can create and manage the disk partitions. It allows us to create the new partition tables, partitions, views the disk information, etc.

I am using Linux Mint 20 for executing the commands and preparing this post.

Installing GParted on Linux Mint

GParted is a well-known tool and is available in the standard repositories of Linux Mint.

You need to open up a terminal and type in:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/1-8.jpg" data-lazy- height="300" src="data:image/svg xml,” width=”813″>

It’s about time now two installs gparted and the way to do that is:

$ sudo apt install gparted

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/2-8.jpg" data-lazy- height="245" src="data:image/svg xml,” width=”810″>

Hit ‘y’ on your computer keyboard for the installation of GParted.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/3-8.jpg" data-lazy- height="152" src="data:image/svg xml,” width=”810″>

GParted will be installed successfully on Linux Mint.

Getting started with GParted

Once the GParted application is installed, open the Application Menu and search for ‘GParted’.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/4-7.jpg" data-lazy- height="140" src="data:image/svg xml,” width=”579″>

Click on ‘GParted’ to open it. Authentication is required to run the GParted application. Put in your password and hit the ‘Authenticate’ button.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/5-7.jpg" data-lazy- height="217" src="data:image/svg xml,” width=”621″>

GParted would open up, and you can see its interface.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/6-8.jpg" data-lazy- height="299" src="data:image/svg xml,” width=”774″>

On the right corner, select the drop-down menu and choose the disk if you have multiple disks. I selected the size of the hard drive to be 30GB.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/7-5.jpg" data-lazy- height="169" src="data:image/svg xml,” width=”772″>

/dev/sda5 is my main hard disk which stores all the files and applications on the Linux Mint system.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/8-3.jpg" data-lazy- height="121" src="data:image/svg xml,” width=”772″>

Get device information

If you want to see the information of the disk, select the disk and right-click on it.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/9-2.jpg" data-lazy- height="407" src="data:image/svg xml,” width=”767″>

Select the ‘Information’ option. The disk-related information will be displayed on a new screen.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/10-2.jpg" data-lazy- height="391" src="data:image/svg xml,” width=”596″>

Using GParted, you can easily resize or move your partitions. To do so, select the partition and right-click on it. Now select the ‘Resize/Move’ option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/11-1.jpg" data-lazy- height="152" src="data:image/svg xml,” width=”775″>

Enter the disk’s new size in Megabytes for resizing the partition, and click ‘Resize’.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/12.jpg" data-lazy- height="310" src="data:image/svg xml,” width=”546″>

Attempt Data Rescue

We can recover our lost data on Linux using GParted. To recover the lost data, first, we need to install the gpart command. Fire up the terminal and install gpart with the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/13.jpg" data-lazy- height="231" src="data:image/svg xml,” width=”812″>

Click ‘Device’ from the top menu and select the ‘Attempt Data Rescue’ option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/14.jpg" data-lazy- height="173" src="data:image/svg xml,” width=”773″>

A full disk scan will be performed to find the file systems. It could be a time-consuming process. Once you find the file system, you can easily mount it and copy it to other media.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/15.jpg" data-lazy- height="208" src="data:image/svg xml,” width=”637″>

Create a new partition table

You can create a new partition table using Gparted. Click on ‘Device’ and select the ‘Create Partition Table’ option. While creating the partition table, you will be able to select the type of partition as well.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/16.jpg" data-lazy- height="173" src="data:image/svg xml,” width=”773″>

Create new partition

For creating a new partition, click on ‘Partition’ and select the ‘new’ option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/17.jpg" data-lazy- height="141" src="data:image/svg xml,” width=”776″>

You must have free space for creating the new partition. Enter the appropriate data in all the required fields and click ‘Add’.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/18.jpg" data-lazy- height="313" src="data:image/svg xml,” width=”635″>

Conclusion

GParted is a free and open-source disk management and partition tool. Using the GParted tool, we can check the disk information, recover lost data, and create the new partition table and new partitions. This article explains the installation and use of GParted on Linux Mint.

About the author

<img alt="Kamran Sattar Awaisi" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/03/echo/52E439DD556343299E3D211D5E577D28-150×150.jpg604ed9f9c8126.jpg" height="112" src="data:image/svg xml,” width=”112″>

Kamran Sattar Awaisi

I am a software engineer and a research scholar. I like to write article and make tutorial on various IT topics including Python, Cloud Computing, Fog Computing and Deep Learning. I love to use Linux based operating systems.