How to install Gparted on Debian 9.0

To install Gparted on Debian 9.0

GParted is an open-source, GUI based partition editor for managing your disk partitions. It was originally created for Linux GNOME Desktop. You can resize, copy, move and repair partitions seamlessly without the tension of losing data with GParted. It is to be noted that Gparted supports several filesystems such as btrfs, ext2/ext3/ext4, fat16/fat32, lvm2, ntfs and xfs. Also, you can use a variety of storage devices such as SATA/IDE/SCSI, Flash memory, SSD and RAID with GParted.

Installing Gparted

Before starting the installation, make sure you add the necessary repo by executing the nano command which opens the sources.list configuration file.

root@debian:~# nano /etc/apt/sources.list

Once the file is open, add the following lines at end of it. Save it and exit the file.

deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free

deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free

Now, you need to update the apt sources.list file, and for that you shall invoke the following command.

root@linuxhelppp:~# apt-get update
Ign:1 http://deb.debian.org/debian stable InRelease
Get:2 http://deb.debian.org/debian stable-updates InRelease [91.0 kB]
Get:3 http://deb.debian.org/debian stable Release [118 kB]
Get:4 http://deb.debian.org/debian stable-updates/main Sources [2,344 B]
Get:5 http://deb.debian.org/debian stable-updates/main amd64 Packages [5,168 B]
Get:6 http://deb.debian.org/debian stable-updates/main Translation-en [3,040 B]
Get:7 http://deb.debian.org/debian stable Release.gpg [2,373 B]
Get:8 http://deb.debian.org/debian stable/main Sources [6,749 kB]                             
Get:9 http://deb.debian.org/debian stable/contrib Sources [44.7 kB]                           
Get:10 http://deb.debian.org/debian stable/non-free Sources [79.7 kB]                         
Get:11 http://deb.debian.org/debian stable/main amd64 Packages [7,095 kB]                     
Get:12 http://deb.debian.org/debian stable/main Translation-en [5,393 kB]                     
Get:13 http://deb.debian.org/debian stable/main amd64 DEP-11 Metadata [3,066 kB]              
Get:14 http://deb.debian.org/debian stable/main DEP-11 64x64 Icons [6,804 kB]
.
.
Fetched 46.0 MB in 54s (837 kB/s)                                                             
Reading package lists... Done


You can now install the package. Execute the following command to trigger the installation process.

root@linuxhelppp:~# apt-get install gparted
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libparted-fs-resize0
Suggested packages:
  xfsprogs reiserfsprogs reiser4progs jfsutils mtools kpartx dmraid gpart libparted-dev
The following NEW packages will be installed:
  gparted libparted-fs-resize0
0 upgraded, 2 newly installed, 0 to remove and 42 not upgraded.
Need to get 1,985 kB of archives.
After this operation, 7,231 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
.
.
Setting up gparted (0.25.0-1+b1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...

Once the package is installed, click on the activities search-bar and type the package name.

The application icon appears, click on it to launch it. With this, the installation of GParted comes to an end.

FAQ
Q
What is Gparted software?
A
GParted is an open-source, GUI based partition editor for managing your disk partitions. It was originally created for Linux GNOME Desktop. You can resize, copy, move and repair partitions seamlessly without the tension of losing data with GParted. It is to be noted that Gparted supports several filesystems such as btrfs, ext2/ext3/ext4, fat16/fat32, lvm2, NTFS and xfs. Also, you can use a variety of storage devices such as SATA/IDE/SCSI, Flash memory, SSD and RAID with GParted.
Q
What does GParted stand for?
A
GNOME PARTition EDitor. You can also think of GParted as Graphical Partition Editor.
Q
What is the difference between partition editing software and partition management software?
A
There is no difference. GParted was originally conceived as partition editing software but there are many other names that encompass the same or similar functionality including Partition Man.
Q
What are the dependencies of GParted?
A
For Gpart you will need Parted >= 1.7.1 and Gtkmm >= 2.8.x
Get Parted from http://www.gnu.org/software/parted/
and Gtkmm from http://gtkmm.org/
Q
Why do I need kernel support to resize certain filesystems (e.g. xfs)?
A
That's because those file systems can only be resized when they are mounted and you can only mount a file system if the kernel has support for it.