In this short tutorial we will learn how to install Gparted on CentOS 8 operating system.
Introduction
GParted, short for GNOME Partition Editor, is a powerful and open-source graphical disk partitioning tool that allows users to manage disk partitions on their computer’s hard drives or storage devices. It is widely used for tasks such as creating, resizing, moving, and formatting partitions, making it a valuable tool for both Linux and Windows users. In this article, we will explore the key features and benefits of GParted, as well as how to use it effectively.
Key Features of GParted
- Partition Management: GParted allows users to create, delete, resize, move, and copy partitions on their storage devices. It supports a wide range of file systems, including ext2, ext3, ext4, NTFS, FAT, and more.
- Live Environment: GParted is available as a live Linux distribution, which means it can be booted from a USB drive or CD/DVD, allowing users to perform partitioning tasks without affecting their installed operating system.
User-Friendly Interface: GParted offers an intuitive graphical user interface (GUI) that makes it accessible to users with varying levels of technical expertise. - File System Operations: Users can perform file system-related operations such as checking and repairing file systems, as well as creating or resizing swap partitions.
- Data Preservation: When resizing or moving partitions, GParted is designed to preserve data as much as possible, reducing the risk of data loss during operations.
- Multi-Platform: While the GParted live distribution is primarily Linux-based, the GParted software can be installed on various Linux distributions and is also available for Windows users.
- Encryption Support: GParted supports working with encrypted partitions, such as those encrypted with LUKS (Linux Unified Key Setup) on Linux systems.
Benefits of Using GParted
- Partition Management: GParted simplifies the process of creating and managing partitions, making it easy to organize data and storage space.
- Data Recovery: In cases of accidental data loss or partition damage, GParted can help recover lost or damaged partitions and their data.
- Operating System Maintenance: GParted is useful for tasks like resizing partitions to make room for system upgrades or dual-boot configurations.
- Disk Cloning: Users can clone entire disks or partitions, which is helpful for backup or migration purposes.
- System Optimization: By resizing or moving partitions, GParted can optimize disk usage and improve system performance.
How To Install GParted on CentOS 8
To install GParted on CentOS, we can use the EPEL (Extra Packages for Enterprise Linux) repository, which contains a wide range of additional software packages, including GParted. Here’s how to do it:
1. Enable the EPEL Repository
2. Update System Repository
3. Install Gparted
4. Launch Gparted
1. Enable the EPLE Repository
To enable the EPEL repository, open a terminal and run the following command:
$ sudo dnf install epel-release
The output will be as shwon below :
[ramans@bckinfo ~]$ sudo dnf install epel-release CentOS-8 - AppStream 2.1 MB/s | 8.4 MB 00:03 CentOS-8 - Base 2.0 MB/s | 4.6 MB 00:02 CentOS-8 - Extras 41 kB/s | 10 kB 00:00 Dependencies resolved. =========================================================================================================================== Package Architecture Version Repository Size =========================================================================================================================== Installing: epel-release noarch 8-11.el8 extras 24 k Transaction Summary =========================================================================================================================== Install 1 Package Total download size: 24 k Installed size: 35 k Is this ok [y/N]: y . . . Running transaction Preparing : 1/1 Installing : epel-release-8-11.el8.noarch 1/1 Running scriptlet: epel-release-8-11.el8.noarch 1/1 Verifying : epel-release-8-11.el8.noarch 1/1 Installed products updated. Installed: epel-release-8-11.el8.noarch Complete!
2. Update System Repository
The next step is to update our system repository, by submitting command line:
$ sudo dnf update
3. Install Gparted on CentOS 8
To install Gparted on CentOS 8, we will submit the following command line :
$ sudo dnf install gparted
Output :
[ramans@bckinfo ~]$ sudo dnf install gparted Last metadata expiration check: 0:22:04 ago on Thu 07 Sep 2023 08:32:14 AM PDT. Dependencies resolved. ================================================================================================= Package Architecture Version Repository Size ================================================================================================= Installing: gparted x86_64 1.3.1-1.el8 epel 2.2 M Upgrading: gnome-shell x86_64 3.32.2-40.el8 AppStream 1.5 M gsettings-desktop-schemas x86_64 3.32.0-6.el8 BaseOS 633 k mutter x86_64 3.32.2-60.el8 AppStream 2.5 M pipewire x86_64 0.3.6-1.el8 AppStream 108 k pipewire-libs x86_64 0.3.6-1.el8 AppStream 712 k Installing dependencies: pipewire0.2-libs x86_64 0.2.7-6.el8 AppStream 361 k Transaction Summary ================================================================================================= Install 2 Packages Upgrade 5 Packages Total download size: 7.8 M Is this ok [y/N]: y Downloading Packages: (1/7): pipewire0.2-libs-0.2.7-6.el8.x86_64.rpm 213 kB/s | 361 kB 00:01 (2/7): gnome-shell-3.32.2-40.el8.x86_64.rpm 634 kB/s | 1.5 MB 00:02 (3/7): pipewire-0.3.6-1.el8.x86_64.rpm 756 kB/s | 108 kB 00:00 (4/7): pipewire-libs-0.3.6-1.el8.x86_64.rpm 1.1 MB/s | 712 kB 00:00 (5/7): gsettings-desktop-schemas-3.32.0-6.el8.x86_64.rpm 780 kB/s | 633 kB 00:00 (6/7): mutter-3.32.2-60.el8.x86_64.rpm 1.0 MB/s | 2.5 MB 00:02 (7/7): gparted-1.3.1-1.el8.x86_64.rpm 501 kB/s | 2.2 MB 00:04 ------------------------------------------------------------------------------------------------- Total 1.5 MB/s | 7.8 MB 00:05 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : pipewire-libs-0.3.6-1.el8.x86_64 1/12 Running scriptlet: pipewire-0.3.6-1.el8.x86_64 2/12 Upgrading : pipewire-0.3.6-1.el8.x86_64 2/12 Upgrading : gsettings-desktop-schemas-3.32.0-6.el8.x86_64 3/12 Upgrading : mutter-3.32.2-60.el8.x86_64 4/12 Upgrading : gnome-shell-3.32.2-40.el8.x86_64 5/12 Installing : gparted-1.3.1-1.el8.x86_64 6/12 Installing : pipewire0.2-libs-0.2.7-6.el8.x86_64 7/12 Cleanup : gnome-shell-3.32.2-14.el8.x86_64 8/12 Cleanup : mutter-3.32.2-34.el8.x86_64 9/12 Cleanup : pipewire-0.2.7-1.el8.x86_64 10/12 Cleanup : gsettings-desktop-schemas-3.32.0-4.el8.x86_64 11/12 Cleanup : pipewire-libs-0.2.7-1.el8.x86_64 12/12 Running scriptlet: pipewire-libs-0.2.7-1.el8.x86_64 12/12 Verifying : pipewire0.2-libs-0.2.7-6.el8.x86_64 1/12 Verifying : gparted-1.3.1-1.el8.x86_64 2/12 Verifying : gnome-shell-3.32.2-40.el8.x86_64 3/12 Verifying : gnome-shell-3.32.2-14.el8.x86_64 4/12 Verifying : mutter-3.32.2-60.el8.x86_64 5/12 Verifying : mutter-3.32.2-34.el8.x86_64 6/12 Verifying : pipewire-0.3.6-1.el8.x86_64 7/12 Verifying : pipewire-0.2.7-1.el8.x86_64 8/12 Verifying : pipewire-libs-0.3.6-1.el8.x86_64 9/12 Verifying : pipewire-libs-0.2.7-1.el8.x86_64 10/12 Verifying : gsettings-desktop-schemas-3.32.0-6.el8.x86_64 11/12 Verifying : gsettings-desktop-schemas-3.32.0-4.el8.x86_64 12/12 Installed products updated. Upgraded: gnome-shell-3.32.2-40.el8.x86_64 gsettings-desktop-schemas-3.32.0-6.el8.x86_64 mutter-3.32.2-60.el8.x86_64 pipewire-0.3.6-1.el8.x86_64 pipewire-libs-0.3.6-1.el8.x86_64 Installed: gparted-1.3.1-1.el8.x86_64 pipewire0.2-libs-0.2.7-6.el8.x86_64 Complete!
4. Launching Gparted
After installation was completed done, then we will try to start this application by : using command line and GUI interface.
$ gparted
Conclusion
GParted is a versatile and user-friendly disk partitioning tool that simplifies the management of disk partitions on both Linux and Windows systems. Whether you need to resize partitions, create new ones, or perform data recovery tasks, GParted provides a robust and efficient solution for managing storage devices effectively. It is an essential tool for users looking to optimize disk usage and organize their data efficiently.