GParted

botond published 2025/11/04, k - 11:16 time

Content

 

Overview

A GParted (which is the GNOME Partition Editor GParted (GParted) is a free and open source graphical partitioning program that has become one of the most popular and widely used disk management tools for Linux and other Unix-like operating systems. It is important to understand that GParted is actually a very user-friendly graphical frontend behind a powerful command-line utility. GNU Parted library and several other filesystem-specific utilities (such as e2fsprogs Or the ntfs-3g) is based on. Thanks to this architecture, GParted is able to present complex and potentially risky disk operations to users in a transparent, visual, and easy-to-use form.

The primary purpose of the software is to allow us to fully manage the partition tables and partitions of various storage devices, such as hard drives (HDD), solid-state drives (SSD) or USB keys. With GParted, we can create partitions to create, delete, to resize, to move, to copy and to check without suffering any data loss (although backup is still essential). With its extensive file system support, it confidently handles most formats in use today (including ext2/3/4, btrfs, ntfs, fat32, xfs).

However, the real power and versatility of GParted lies in its portable, bootable version, the GParted Liveis shown in . Since an operating system cannot modify its own currently in-use (mounted) system partitions, GParted Live allows you to boot your computer from an external media and edit internal disks completely freely and without restrictions. This makes GParted an indispensable "Swiss army knife" for system administrators, advanced users, and those new to Linux, whether preparing to install a new operating system, restoring an existing system, or optimizing storage space.

 

 

History and purpose

The origins of GParted can be traced back to the Linux desktop environments of the early 2000s. At that time, Linux was already a stable and reliable system, but hardware management tasks, especially partitioning, often required command-line skills. Tools like fdisk or GNU parted, were extremely powerful, but their command-line nature made them difficult and intimidating for many users. A mistyped command or a misspecified parameter could easily lead to the loss of the entire disk, which was a serious obstacle to the wider spread of Linux among average users.

In this environment, the GParted project was born in 2004, led by Curtis Gedak, with the goal of creating a reliable and intuitive graphical tool that would build on the power of the GNU Parted library to make partitioning accessible and safe for everyone. The goal was not to create a new partitioning engine, but to build a visual "safety net" over existing, stable and reliable command-line tools. The visual representation of partitions as a graphical bar, and the click-and-drag operations made disk partitioning immediately understandable and drastically reduced the possibility of user error.

GParted quickly became the default or recommended partition manager for most graphical Linux distributions, and played a key role in making Linux more user-friendly. The most striking evidence of the software's philosophy is its "pending actions" system, which ensures that the user must confirm all changes in a final, decisive step, giving them time and opportunity to revise their plans.

 

Version history and milestones

GParted has a history of continuous development and consistent adaptation to new technologies. Rather than listing the changes in each sub-version, below we will highlight the key improvements that have significantly expanded the software's capabilities and solidified its place among the indispensable system tools.

  • The beginnings and basic functions (2004-2005): The first stable versions laid the foundation of the software, providing the most basic partitioning operations (create, delete, resize, move). In the early days, support focused on the file systems that were common at the time, such as ext2/3, linux-swap, FAT16/32, and ReiserFS.
  • NTFS support (approx. 2007, versions 0.3.x): One of the most important early developments is ntfs-3g was the full integration of the driver. This step allowed for reliable and secure writing and resizing of Windows partitions from within a Linux environment, making GParted the dual-boot systems made it the primary tool for users.
  • GPT partition table management (approx. 2009, versions 0.4.x): As the hardware industry evolved, GParted kept pace. The GUID Partition Table (GPT) support was critical, as it allowed for handling hard drives larger than 2 terabytes and modern, UEFI-based computers, replacing the old, BIOS operating on foundations MBR schema limitations.
  • Support for modern file systems (ongoing): GParted has never stopped developing. Over the years, the list of file systems it supports has been constantly expanding. It now includes full support for Btrfs (with advanced features like snapshots and copy-on-write), exFAT (for large removable media), and F2FS (optimized for flash-based storage), among others.
  • Advanced and special features (newer versions): Recent developments show that GParted is now ready for more complex, server-level tasks. One such capability is the support for online resizing of partitions within encrypted LVM volumes (LUKS on LVM), which demonstrates the extraordinary sophistication and flexibility of the software.

This evolution curve clearly shows that GParted is not just a static tool, but an actively maintained project that constantly adapts to hardware (e.g. UEFI, high-capacity SSDs) and software (e.g. new file systems) trends, ensuring that it always remains an up-to-date and reliable solution.

 

Main features and operations

Now that we've covered the history and purpose of GParted, let's take a closer look at how it works in practice. In this chapter, we'll walk you through the most important features step by step, following a logical workflow, from starting the program to fully partitioning a new disk to more advanced settings. During the tutorial, we'll be working on a separate, virtual disk so that everyone can follow the steps safely.

Version used when creating this article

In this tutorial, we will use GParted version 1.3.1 running on a Debian 12 (Bookworm) operating system, and GParted Live version 1.7.0-8 (amd64). Although the interface of the program is consistent between different versions, there may be minor differences.

Launch and main window overview

GParted can be launched from the desktop menu of most Linux distributions, usually under the "System" or "Tools" category. Since partitioning is a root-based operation, you will always be prompted for your user password for authentication when you launch the program.

The GParted authentication window in a Debian 12 XFCE desktop environment prompts for the user password to launch the program.

After successful authentication, the main GParted window opens, which by default is the primary system disk (typically /dev/sda) partitioning. The window structure is extremely logical and transparent, divided into several key parts:

The main GParted window showing the partitions on the system disk /dev/sda. The EFI, root (/) and swap partitions are clearly visible in the graphical bar and in the list.

  • Menu bar and toolbar: At the top we find the traditional menu bar (File, Edit, View, etc.) and below it an icon toolbar for quick access to the most common operations (e.g. new partition, resize, delete, undo, execute).
  • Device selector: In the upper right corner, there is a drop-down menu that lists all the storage devices (hard drives, SSDs, pen drives) connected to your computer. This is one of the most important elements, here we can switch to the disk we want to work with.
  • Graphical view: The largest part of the window is occupied by a horizontal bar that visually represents the selected disk and its partitions. The different colors indicate file systems, and the gray areas indicate unallocated (unpartitioned) space. This view helps you quickly assess the current status of the disk.
  • Detailed list: Below the graphical view, we can see the detailed data of the partitions in a table, also in text form: the name of the device (e.g. /dev/sda1), the file system type, size, used and free space, and flags assigned to the partition.
  • Status bar: A status bar at the bottom of the window informs you of the number of pending actions. This is an important reminder that the changes we planned have not yet been implemented.

 

 

Partitioning operations step by step

In this section, we will walk you through a complete workflow on a new, blank disk. Our goal is to create and then modify partitions, demonstrating the most common features of GParted.

Preparations: Selecting a device and creating a partition table

The first and most critical step is always to select the correct drive. From the device selection menu in the upper right corner, select the disk you want to work with. In our case, this is the /dev/sdb, a 20 GB virtual disk.

GParted's device selection menu, where we switch from the /dev/sda system drive to the /dev/sdb virtual disk.

For a brand new, unformatted disk, the first thing we need to do is create a partition table. This table determines how the system will store and interpret the structure of the partitions on the disk. To do this, select Tool → Create Partition Table... menu item.

GParted's Tool menu, highlighting the Create Partition Table option to initialize a new disk.

In the pop-up window, we can select the type of board. There are two main types: the older msdos (MBR) and the more modern gpt (GUID Partition Table). For modern systems and disks larger than 2 TB we almost always have to choose gptOnce selected, GParted will display a final warning letting us know that this operation will erase all data from the disk.

Partition table type selection window in GParted, with the modern gpt scheme selected.

Warning window in GParted asking for confirmation before creating a partition table, indicating that the operation will erase all data on the disk.

Click Apply. The blank disk will be created.

After creating the Partition Table, the blank disk is created.

Creating partitions

Now that we have an initialized, blank disk, we can create our first partition. Right-click on the "unallocated" area and select "New". The "Create New Partition" window will appear, where we can customize the partition in detail:

  • We can adjust its size, either with a slider or by typing in the fields.
  • We can select the file system type (we are now using a ext4(which is the default for most Linux distributions).
  • We can also give it a partition name and label.

The Create New Partition window in GParted, where you can set the size, file system, and location of the new partition.

The Create New Partition window in GParted, where you can set the size, file system, and location of the new partition.

By clicking the "Add" button, the partition will appear in the main window, but it has not yet been physically created. The bottom status bar will indicate "1 operation pending".

The main GParted window with a newly created pending ext4 partition. The status bar indicates that an operation is pending.

Resize and move partitions

The real power of GParted lies in its ability to non-destructively modify existing partitions. Right-click on the partition you just created and select "Resize/Move". In the window, you can easily reduce the size of the partition using the sliders to make room for another one.

Resize/Move Partition window showing how to reduce the size of an existing partition in GParted.

After resizing, you can see the new, smaller partition and the "unallocated" space that was freed up next to it in the main window.

GParted's main window with a resized partition and the new unallocated space created next to it.

Moving is similarly simple. In the same window, you can grab the bar representing the partition and drag it within the unallocated space, or you can position it precisely by modifying the values ​​in the "Free space before/after" fields.

Resize/Move Partition window, where we move a partition by changing its location within the disk.

GParted's main window with a successfully moved partition, with free space now located on both sides of the partition.

Error: Moving the start of a partition

Although GParted can do this, be careful when moving the start of a partition (changing its starting sector). This can be an extremely slow operation, as the program has to copy the entire partition block by block. In the case of system partitions, this operation can also break the boot process if you are not careful.

Finalize operations

Every step we've taken so far has been just a plan that's been added to the "pending actions" list. GParted hasn't written a single byte to the disk yet. This is its most important security feature, allowing you to think things through and even undo steps before finalizing. If you are sure of your actions, click the green checkmark ("Apply All Operations") on the toolbar.

The program will display a final, serious warning window, letting us know that performing the actions may cause data loss and that it is a good idea to make a backup before continuing. If everything is in order, click the "Apply" button.

GParted's final confirmation window, asking if you are sure you want to apply the pending operations, warning of the possibility of data loss.

This is where the real work begins. A progress window lets you follow in detail how GParted performs the queued operations. The time required for the process depends on the type of operations and the size of the partitions. It is critically important not to interrupt this process. (e.g. by restarting or shutting down the machine) as this may lead to partition table corruption and data loss.

GParted's progress window, showing details of pending operations.

Additional partition management features

In addition to basic partitioning operations, GParted also provides a number of other tools that allow you to fine-tune the properties and behavior of your partitions. These functions are most easily accessed by right-clicking on the partition and using the context menu.

Formatting, labeling, and flag management

The daily routine of managing partitions also includes formatting, labeling, and setting special flags.

  • Formatting: If we want to erase the entire contents of an existing partition and prepare it for a new file system, we need to select the "Format" menu item. GParted will offer a list of all the file systems it supports, from which we can select the one that suits us.

GParted's context menu on a partition, highlighting the Format menu item and a list of supported file systems, such as ext4, btrfs, ntfs, and fat32, displayed next to it.

  • Flags management: Partition flags are special metadata that instruct the operating system or firmware (e.g. BIOS, UEFI) about the role of the partition. In the "Manage flags" menu item, you can set, for example, boot flag to make a partition bootable on an MBR scheme, or esp (EFI System Partition) flag, which is essential for booting modern UEFI systems.

The Manage Flags window in GParted, where flags that can be assigned to a partition, such as boot, esp, or swap, are displayed in a list.

  • Labeling: Default partition names (e.g. /dev/sdb1) are not very descriptive. Using the "Partition Name" (on a GPT disk) or "Set Label" (on an MBR disk) function, we can give our partitions a unique, easy-to-remember name (label) (e.g. "Data", "Windows", "Games"). This label will also appear in most file managers, making it easier to find your way around.

The Set Partition Name dialog box is where you can give a unique name, or label, to a partition in GParted.

  • Request information: The "Information" menu item opens a summary window where we can find all the important technical data about the selected partition, including its unique identifier (UUID), its exact size in bytes, and the location of its starting and ending sectors. The UUID is especially important, as modern Linux systems use it to reliably identify partitions in /etc/fstab in file.

The Information window in GParted, which shows detailed information about a partition, including file system, UUID, size, and sector location.

 

 

GParted Live: The portable system tool

Although GParted is easy to install on most Linux distributions, its real power and versatility lies in the GParted Live GParted Live is a standalone, bootable version of GParted. GParted Live is a self-contained, Debian-based mini-operating system whose primary purpose is to provide an environment for running GParted that is independent of the computer's internal disks. The latest version can be downloaded from the official website, which typically directs you to SourceForge to download the actual ISO file.

More than a partitioner

It is important to know that GParted Live does not just include GParted. It is a complete system recovery toolkit that also includes other extremely useful programs such as Clonezilla (for cloning partitions and disks), the ddrescue (for recovering data from damaged disks) or FsArchiver (for creating file system level backups). This makes the GParted Live pendrive a real "Swiss army knife" for system administration tasks.

Why is it needed?

The most important question is why we can't simply resize our system partition with GParted running on our installed operating system. The answer is simple: an operating system cannot modify partitions that it is actively using (keeping them "attached" or "mounted"). It's like trying to fix a car's engine while it's running at full speed. With GParted Live, we boot the computer from an external storage medium (typically a USB flash drive). Since the internal hard drives and SSDs are not in use in this state, GParted gets full, unrestricted access to them and can safely perform even the most delicate operations, such as:

  • The main system partition (e.g. / or Windows C: drive).
  • Complete disk preparation before installing a new operating system.
  • Repair a corrupted partition table or perform boot recovery.
  • Clone or erase the contents of entire disks.

The boot process and the graphical interface

From the GParted Live ISO file, a creating a bootable pendrive After booting the computer from this device, we are greeted by a simple but practical system. The boot process consists of a few short, text-based configuration steps before the graphical interface starts.

  1. GRUB menu: After booting, you will be greeted by the GNU GRUB boot menu, where you can select the default boot option.

GParted Live's GRUB boot menu is a blue CD-like background where you can choose from various boot options.

  1. Keyboard layout: The system will ask you to set the keyboard layout. For most modern USB keyboards, the "Don't touch keymap" option is the safest choice.

GParted Live's text-based keyboard layout configuration window, with the "Don't touch keymap" option selected.

  1. Language selection: We can select the system language. For simplicity, we can leave the default English.

The GParted Live language selection screen during startup, listing the available languages.

  1. Start mode: Finally, the system will ask how we want to proceed. By choosing option "0", the graphical interface will automatically start and load the GParted application. In case of hardware problems, we can also enter command line mode here.

Selecting the GParted Live boot mode, where the automatic graphical boot (0) option is specified.

This will load GParted Live's lightweight Fluxbox-based desktop environment. It's a minimalist interface that only contains the bare essentials: the GParted application itself, a terminal, a file manager, and some system configuration programs. Since this is a service environment, you may need to manually adjust the screen resolution for more comfortable use.

GParted Live is a simple, Fluxbox-based desktop environment that displays icons for some basic system tools.

The GParted application window will launch automatically, and from now on, its use is the same as the installed version, with the key difference being that we can now fully edit our internal disks.

GParted application running in the GParted Live environment, showing the /dev/sr0 device used for booting.

From the terminal, we can query the running system data, for example the kernel version, by uname -r This can be useful if you are working with older hardware and want to check hardware support.

GParted Live terminal showing the version of the running Linux kernel with the output of the 'uname -r' command.

Launch and installation methods

Although the most common method is to run GParted Live from a USB flash drive, the system can be used in several other ways:

  • Bootable CD/DVD: For older machines, you can also burn the downloaded ISO file to a disc.
  • Network boot (PXE): Advanced users and administrators can set up a PXE server, which allows GParted Live to be booted from the network on any network-connected machine without physical media.
  • Installation on hard drive: It is possible to copy GParted Live's system files to a separate partition on your computer's hard drive and then add it to the GRUB boot menu to create a permanently available, built-in recovery option.

 

 

Security considerations and recommended practices

GParted is an extremely powerful and reliable tool, but with power comes responsibility. Modifying partitions is a basic, low-level operation that directly overwrites the data structure of the disk. One careless click or a misunderstood operation can easily lead to the complete and permanent loss of data stored on the disk. Before embarking on any partitioning task, it is essential to be aware of the risks and follow the golden rules of safe use.

The first and most important rule

The first and most important warning on the official GParted website is this, and we should take it very seriously: Editing partitions may cause DATA LOSS. It is recommended to BACKUP your data before using GParted. Never, under any circumstances, start partitioning without having an up-to-date backup of all important data on the disk (documents, pictures, personal files) stored on external media!

In addition to backups, following these practical tips can help avoid disaster:

  • Check twice, act once: One of the best features of GParted is that it doesn't commit changes immediately. Take advantage of this! Before clicking the green check mark, carefully check the list of pending operations at the bottom of the window. Are you sure you've selected the right disk? Are you sure you're resizing the right partition? Are there any typos in the sizes?
  • Let's be patient: Partitioning, especially moving or resizing large partitions, can be an extremely time-consuming process. Never interrupt the operation, shut down, or reboot your computer while GParted is running. An interrupted operation will almost certainly result in a corrupted file system and data loss.
  • Let's ensure a stable power supply: Since the operations can take a long time, always connect the charger when using a laptop. An unexpected discharge can interrupt the process at the worst possible time. For a desktop computer, using an uninterruptible power supply (UPS) can provide extra security.
  • Let's read the warnings: GParted displays a warning window before every critical operation. Don't click on them without thinking! Read, understand what the program will do, and only then approve the operation.