Home > Package & System Management > gparted

GParted: Graphical Disk Partition Management Tool

GParted is a graphical user interface (GUI) based disk partition management tool. It visually provides the powerful features of `parted`, allowing you to easily create, delete, and resize partitions with your mouse. Even beginners can manage disks safely and intuitively.

Overview

GParted is a graphical partition editor that uses the `parted` backend. You can manipulate partitions by viewing a visual disk map, without needing to type complex commands. It's especially useful for Linux beginners or desktop environment users, as it allows various operations such as creating disk labels (MBR/GPT), formatting partitions, resizing, copying, and pasting partitions, all handled with a mouse.

Key Features

The main features of GParted are as follows:

  • Intuitive partition management through a graphical interface
  • Supports both MBR and GPT partition tables
  • Supports creation and formatting of various file systems (ext2/3/4, NTFS, FAT, etc.)
  • Provides advanced features such as partition resizing, moving, and copying
  • Offers a preview feature before applying final changes

Difference between GParted and parted

GParted and parted perform the same partition management functions, but there are significant differences in their usage environments.

  • GParted: Manages partitions through a visual disk map in a GUI environment. Changes can be safely canceled until they are finally applied.
  • parted: Manages partitions from the command line. Changes are applied immediately upon entering a command, making it suitable for scripts or server environments.

Key Options

GParted is primarily operated with a mouse in a graphical environment, so the options used when running it from the terminal are simple.

1) Execution Options

Generated command:

Try combining the commands.

Description:

`gparted` Executes the command.

Combine the above options to virtually execute commands with AI.

Usage Examples

Learn GParted's functions through examples of running it from the terminal.

Run GParted

sudo gparted

Launches GParted installed on the system. It requires root privileges, so use it with `sudo`.

Run GParted for a Specific Disk

sudo gparted /dev/sdb

Opens the `/dev/sdb` disk directly with GParted using the `sudo gparted /dev/sdb` command.

Installation

GParted is included in the repositories of most Linux distributions. You can easily install it using the commands below.

Debian/Ubuntu

sudo apt update
sudo apt install gparted

RHEL/CentOS/Fedora

sudo dnf install gparted

Arch Linux

sudo pacman -S gparted

Tips & Cautions

Here are some points to be aware of when using GParted.

Tips

  • GParted is a GUI tool, so it requires a graphical environment like X Window System. It cannot be used in server environments.
  • All partition operations are not executed until the **`Apply` button** is pressed. Therefore, even if you accidentally set up a wrong operation, you can safely cancel it.
  • GParted cannot edit partitions that are mounted on the system. If you want to modify a partition used to boot the system (e.g., `/`), you must use a GParted Live CD/USB.

Related commands

These are commands that are functionally similar or are commonly used together.


Same category commands