If you work with multiple operating systems, manage large disks, or simply want to organize your computer, sooner or later you'll have to deal with the disk partitions The way to manage partitions in Windows is already a challenge. And this is where many people sweat bullets: fear of losing data, of the system not booting, or of "damaging something and not knowing what happened." The good news is that with GParted You can create, resize, move, copy (or clone hard drives with multiple partitions) and delete partitions without losing data as long as you do things wisely.
In this guide I explain, step by step and in great detail, how Manage partitions without losing information using GPartedWhat precautions to take, how to use it from your system or from a Live CD/USB, and what to do if something goes wrong (including GRUB bootloader recovery).
What is GParted and why is it so useful for managing partitions?
GParted (GNOME Partition Editor) is a partition editor with a graphical interface that allows create, reorganize and delete partitions on hard drives, SSDs, USB drives, and other devices. It works at a low level on the device, but in a visual and quite intuitive way, so you can see at a glance how your disk is organized.
A single physical disc can be divided into several independent partitionseach with its own file system (ext4, NTFS, FAT32, etc.). GParted allows you to change this organization without affecting the data content, provided the operation is compatible with the file system and there are no power outages or serious errors during the process.
Among the main tasks you can do with GParted are: resize and move partitionsCreate and delete primary, extended, and logical partitions, change labels and UUIDs, adjust boot flags, and scan file systems to detect and correct errors.
Ways to start GParted: installed or in Live mode
GParted can be run both from your installed system, if you use a GNU/Linux distribution that includes it or install it yourself, such as from a live media outlet (CD, DVD or USB bootable multiboot) which boots a minimal system with GParted pre-installed.
In a GNOME desktop or other graphical environments, you'll usually see GParted in the system administration menu, like Partition editor (GParted)You can also open it from the terminal with the command sudo gparted, which will launch the graphical interface after asking for your administrator password.
Upon starting, the program automatically scans storage devices connected devices (internal drives, SSD, USB, etc.) and displays them in the main window, where you can switch between devices using a selector at the top.
GParted Main Window: How to Understand What You See
When you open GParted, a window appears with several clearly differentiated elements that help you to view the disk structure plan the changes before implementing them.
At the top you have the disc selectorwhere you can choose which device you want to manage (for example, /dev/sda, /dev/sdb, etc.). GParted will update the central content to show only the partitions of the chosen disk.
Below appears the partition bar graphThis visually displays each partition as a block with a color associated with the file system (e.g., NTFS, ext4, FAT32). Within each block, you can see the total size and, usually, the proportion of used and free space.
The bottom shows the partition list in table format, where you will see details of each one: device name (for example, /dev/sda1), file system, total size, used space, free space, flags (boot, esp, etc.) and other data.
Finally, GParted has a pending operations panel and a button bar. Each time you schedule an action (resize, create, delete, etc.), it isn't executed immediately, but is queued. You can review this queue in the list of pending actions and, when you're ready, press the button. Apply to make all the changes permanent.
Device and partition selection

To work with the correct disk, you must First, select the device in the drop-down menu at the top. Once selected, you will see its scheme in the graph bar and in the table below.
To mark a specific partition, simply left click on it, either in the bar graph or in the table. GParted will highlight the partition in both areas to make it clear which element you have chosen.
If you click with the Right-click on a partition or on an unallocated area of space, a context menu opens with the most common actions: resize/move, format, delete, check, set flags, etc. These actions are also accessible from the top menus and from the button bar.
View device information and file systems
GParted allows you to view additional details of each device and partitionFrom the corresponding menu you can activate a side panel with device information (size, partition scheme, table type, etc.).
In addition, it is possible to open a dialog box with the detailed information about a partition Specific details (path, file system, UUID, flags, mount status, exact size, start and end sectors, etc.). This dialog can be closed at any time without applying changes.
If you want to know what operations GParted supports on each type of File System (for example, whether you can resize an NTFS drive while it's running or not), you have the dialog box File System Supportaccessible from the menu. It lists the functions available for each system (create, resize, move, check, etc.). If you install new tools while GParted is open, you can click on Rescan For Supported Actions to update this information.
Create a new partition table (careful, it will delete everything)
Sometimes it's useful to start from scratch with a disk, for example, when reusing an old disk for a new system. GParted allows you to do this. create a new partition table (MBR, GPT or others, as the case may be).
By selecting this option, you choose the table type and confirm. Until you press ApplyThe operation is not executed. Once applied, the A new partition table is written to the disk and the reference to all previous partitions is deleted, although the raw data may still be there as long as it is not overwritten.
After creating the table, GParted automatically refreshes the scheme of the device, showing all the space as "unallocated". From that point you can create new partitions according to your needs.
Mount, unmount, and open encrypted LUKS partitions
Before modifying a partition, in many cases it is mandatory that it be disassembled (not used by the system). From GParted you can mount or unmount partitions as allowed by the file system and current state.
If you work with LUKS encrypted partitionsGParted offers options to open them (unlock them with a password or key) and to close them again. Opening a LUKS partition creates a mapped device that you can manage like any other (for example, resizing the internal file system if supported).
The operations of mounting, unmounting, opening, and closing encrypted partitions modify the usage state of the partitions, but Their physical limits do not change. nor do they rewrite the partition table.
Operations that modify the partition structure
The actions of create, delete, move or resize Partitions do alter the partition table and can affect the bootability of operating systems. It is essential to understand what each partition does.
Creating a new partition on unallocated space generates a new entry in the partition table and, optionally, formats a file system on it. Deleting a partition removes that entry, leaving an unpartitioned space that you can then reuse for other partitions.
On MBR disks, remember that you can only have four primary partitionsTo overcome this limit, you can create an extended partition and within it as many logical partitions as you need. GParted clearly indicates whether a partition is primary, extended, or logical.
Resize and move partitions without losing data
One of GParted's star features is the ability to increase or decrease the size of a partition without formatting it, keeping the data. Furthermore, you can move a partition to another area of the disk in the same operation.
To resize or move, select the partition and choose the option Resize / MoveA window opens with a graphic bar and numerical fields where you can adjust the new size, the free space at the beginning and end, and the exact position.
GParted allows you to drag partition borders on the graph with the mouse or enter precise values in MiB. You can also choose the alignment (to MIB, to cylinders, or without alignment). Maintaining alignment to MIB is highly recommended to avoid performance problems and small residual gaps.
Advanced example: moving free space between partitions
A very common situation is running out of space on one partition (for example, C: on a Windows disk) while another has plenty of free spaceGParted allows you to "migrate" that free space from one partition to another, even if they are separated by other partitions.
Suppose you have a layout where a primary partition occupies the entire beginning of the disk, followed by a extended partition which contains a logical partition with a lot of free space. To transfer space from the logical partition to the primary partition, you must chain together several operations.
First, you select the logical partition with spare space and use Resize / Move To reduce its size, you can leave unallocated space to its left or right as needed. This operation will be added to the pending actions queue.
Next, you choose the extended partition that acts as a container and resize it so that fits exactly with the logical partitionso that the external free space is outside the extended partition, adjacent to the primary partition you want to grow to.
Finally, you select the primary partition that needs more space and resize it to fill the available space. all the unassigned contiguous spaceOnce these operations are linked together, you press on Apply all operations so that GParted executes them in order.
This type of procedure can generate small unallocated gaps of up to a few MiB, especially when the same disk contains partitions aligned to old cylinders and partitions aligned to MiB. GParted may display gaps as 1 MiB of free space; it's not worthwhile to force partition moves just to eliminate them, because They don't provide any useful space. And yes, they do add risk.
Risks and best practices when resizing and moving
Modifying the beginning of a partition or physically moving it involves a high riskespecially if it contains an operating system. GParted already warns you in warning windows that a bad operation can cause the system to fail to boot.
First of all, it is highly recommended to do a Backup of important data. Although GParted is designed to prevent data loss, a power outage, disk failure, or human error can still corrupt the file system.
If you work with NTFS (typical Windows partitions), after resizing or moving it is advisable to restart Windows at least twice so that the system itself runs its internal checks (chkdsk) and ensures that everything is consistent.
Creating partitions for GNU/Linux systems and other uses

A very common case is starting with a Windows installation that occupies almost the entire disk and wanting to make room for GNU/LinuxIn typical Windows 7 and higher scenarios, you will usually find two primary partitions: a small one with the boot files and a large one with the system.
The usual practice is to resize the large Windows partition using GParted to free up some space. 20 GB or more of unallocated space, which will then be used to create the Linux partitions. You can do this by dragging the border in the resize window or by entering the new size in MiB.
Once you have unallocated space, you can choose to directly create one or more primary partitions, or, if you anticipate needing more than four partitions in total, create a extended partition that contains the new logical partitions.
In a typical installation of a distribution like MAX or other Debian/Ubuntu-based distributions, at least the following are usually created: a partition ext4 for the root (/) of about 20 GB or more, a partition swap of around 1 GB (or more, depending on RAM and hibernation usage) and optionally a separate partition for / Home or a shared data partition in NTFS for access from multiple systems.
Configure partitions for a system installer
Once the partitions are prepared with GParted, your GNU/Linux distribution's installer usually offers an advanced configuration option or "More options"where you can select which partition will be the root, which ones will be mounted in /home, /boot, etc., and what to do with the swap.
You select the ext4 partition created for the system, then click on Change and mark it to mount on “/” (root). If the partition is new and empty, you can leave the reformatting option unchecked; if you are reinstalling over a previous installation, formatting is recommended to remove leftover files.
The partition of exchange (swap) It's usually detected automatically by the installer, so you don't need to assign it manually except in special cases. After confirming the mount points, the installer is ready to copy the system, respecting the partitions you designed with GParted.
Working with GPT disks, EFI disks, and Windows partitions
On modern devices with firmware UEFI and disks with GPT partition tables, you will see characteristic elements such as the EFI System Partition (ESP), usually in FAT32, and the Microsoft reserved partition, in addition to the data partitions.
It is essential not to erase the EFI partition If you want to continue booting systems in UEFI mode, this partition usually carries the "boot" or "esp" flag and contains the Windows and Linux boot loaders. The Microsoft reserved partition may appear as an unknown file system in GParted, but this is normal and is not usually the cause of boot problems.
If you want to have one partition for the operating system and another for data, the most sensible thing to do is reduce the main volume of Windows data (for example, drive C:) and create a new partition from the freed space. When installing a system from USB, simply select the partition you prepared for it; there's no need to mark it as "boot" if a properly configured ESP already exists.
Apply, undo, and cancel operations in GParted
As you plan operations, they accumulate in the queue of pending actionsYou can undo the last action with the corresponding option, which will remove it from the queue and, if there are no more left, hide the pending panel.
You can also empty the entire queue You can review your operations before applying anything, in case you prefer to rethink your strategy. Until you click the apply button, no changes have actually been written to disk.
When you decide to continue, press Apply GParted displays a progress bar showing each operation in turn. If a few seconds pass and the actions are still running, a button becomes available. Force Cancel to try to force the cancellation, although it is not always advisable or possible without risks.
In the event of a forced cancellation, GParted may attempt to perform rollback operationsYou'll see an on-screen notification asking if you want to allow it to attempt to revert changes or if you'd prefer to stop that process as well. When it finishes, it offers the option to save details in a log file to analyze what happened.
Using GParted from a Live CD or Live USB
A very secure way to manage partitions, especially those on the system disk, is to use GParted from a Live CD or Live USBA Live image is a bootable image that loads a complete operating system into memory without touching the disks until you decide to do so.
Booting with GParted Live or a distribution that includes it allows you to modify partitions that would otherwise be in useas the root of the installed system. In addition, many of these images include extra tools such as Testdisk y photorec for data recovery or create a custom recovery partition.
Booting GParted Live typically involves a few basic steps: language selection, keyboard configuration, and choosing the operating mode (usually the graphical mode by default). After that, the standard GParted interface loads, displaying the detected partitions.
Recovering systems that won't boot after modifying partitions
Modifying partitions (especially moving or resizing them) can break the configuration of the boot loaderIn many GNU/Linux systems, GRUB is used as the main boot manager, in one of its two main branches: GRUB 2 or GRUB Legacy.
If the system stops booting after changing partitions, the first thing to determine is... which version of GRUB It was used. Many modern distributions (Debian, Ubuntu, Fedora, openSUSE, etc.) use GRUB 2 by default, while very old systems might use GRUB Legacy.
To restore GRUB 2 from a Live environment, you can mount the system root partition (for example, /dev/sda5) to a temporary directory, also mount the /boot partition if it is separate, and then do a chroot to that environment. There you will execute grub-install (or grub2-install in some distros) on the entire device, such as /dev/sda, without specifying partition number.
Once GRUB is reinstalled on the boot device, exit the chroot, unmount the necessary components, and you restartIn most cases, the GRUB menu will reappear, allowing you to start your system normally.
With GRUB Legacy, the procedure is done from the grub console itself, using commands such as find To locate the stage1 file, set the root and use setup to install the loader in the MBR or in the boot sector of a partition.
Partition and data recovery after table damage
If you accidentally overwrite or corrupt the partition tableIt's possible the system won't recognize any partitions even though the data is still on the disk. In these cases, GParted can't do much, but you can use specialized tools.
Utility Testdisk It is designed to detect and recover lost partitionsIt analyzes the disk for known file system structures and, if found, allows the table to be rebuilt so that the system can see the partitions again.
When it is not even possible to rebuild the original structure, then the following comes into play photorec, which attempts to recover individual files by searching for file type signatures across the entire disk, disregarding the partition table and file system.
Both tools are usually included in many Live images with GPartedTherefore, it is relatively simple to boot from a USB drive, first try with testdisk and, if there is no luck, use photorec to recover what can be recovered.
Managing partitions with GParted may seem complicated at first, but once you understand what each block represents, how primary, extended, and logical partitions work, and what resizing and moving operations entail, the tool becomes a powerful ally for organize your drives without losing dataWith backups, some patience, and, when necessary, the support of utilities like TestDisk, PhotoRec, or GRUB reinstallation, you have everything you need to adapt your partitions to your real needs without relying on automatic wizards or drastic formatting.