GParted: The Complete Guide to Disk Partitioning
Learn how to use GParted to create, resize, move, format, copy, and manage disk partitions safely on Linux, Windows-connected storage, USB drives, and virtual machines.
What You’ll Learn
Learn GPT, MBR, filesystems, partitions, and unallocated space.
Create, delete, format, label, resize, move, and copy partitions.
Use a live environment, review pending operations, and plan recovery.
1. What Is GParted?
GParted (GNOME Partition Editor) is a free, open-source graphical utility for creating, reorganizing, and deleting disk partitions. It can change a disk’s partition layout while preserving partition contents when the selected operation and filesystem support allow it.
Common tasks include creating partition tables, creating and deleting partitions, resizing and moving partitions, copying and pasting partitions, formatting filesystems, setting labels, checking filesystems, and managing partition flags.
GParted is commonly used from a Linux desktop or from GParted Live, a bootable environment that lets you work on disks without booting the installed operating system from the target drive.
2. Requirements and Preparation
- A computer or virtual machine with the target disk attached.
- GParted installed on a Linux system, or a GParted Live USB.
- A separate backup destination with enough free space.
- AC power for laptops and reliable power for servers or workstations.
- Recovery media for the operating system whose partitions you plan to change.
- Encryption recovery keys for BitLocker, LUKS, or other encrypted volumes.
Pre-change checklist
- Back up important files and verify that the backup can be read.
- Record the disk model, capacity, partition layout, and mount points.
- Confirm which disk is the target by model and capacity—not just device name.
- Unmount partitions that need operations requiring an inactive filesystem.
- Close applications and stop services that are writing to the target disk.
- For Windows NTFS, disable Fast Startup and fully shut down Windows before offline changes.
- Do not interrupt an operation once it has started.
3. Partitioning Basics: GPT, MBR, and Filesystems
A partition table describes how a storage device is divided. Each partition can contain a filesystem, swap area, or another data structure.
| Technology | What it does | Typical use |
|---|---|---|
| GPT | GUID Partition Table; modern partitioning format with support for large disks and many partitions. | Recommended for most modern UEFI systems and new data disks. |
| MBR / msdos | Legacy partition table with primary/extended/logical partition conventions and practical disk-size limits. | Older BIOS systems and legacy compatibility. |
| EFI System Partition | A FAT-formatted partition used by UEFI firmware to store boot files. | UEFI boot environments; do not casually format or delete it. |
| ext4 | Common Linux journaling filesystem. | Linux data and root filesystems. |
| NTFS | Windows filesystem supported by GParted through installed filesystem tools. | Windows system and data volumes. |
| FAT32 / exFAT | Interoperable filesystems commonly used on removable media. | USB drives and cross-platform storage, depending on requirements. |
| XFS / Btrfs | Linux filesystems with different feature sets and resize constraints. | Linux servers, workstations, and specialized storage layouts. |
GPT vs. MBR: choose GPT for most new disks unless a specific legacy platform requires MBR. Changing a partition table type is not a routine conversion step; creating a new table erases the existing partition layout.
4. Download GParted Live and Boot It
For operations on the disk that contains your running operating system, booting from separate media is usually the safer approach. Use the official GParted Live download page and follow its current instructions to create bootable media.
Download from the official project
Open gparted.org/download.php and download the current stable GParted Live image. Verify the published checksum when available.
Create a bootable USB drive
Use a trusted USB imaging utility. Select the correct USB device carefully; writing the image will erase the USB drive.
Boot from the USB
Use your computer’s one-time boot menu or firmware settings. Select the USB device and follow the GParted Live startup prompts.
Start the partition editor
When the live environment loads, launch GParted if it does not start automatically. Allow it to scan attached storage devices.
5. Explore the GParted Interface
The main window presents a graphical disk map and a text list of partitions. The device selector in the upper-right area lets you switch between attached disks.
- Device selector: choose the disk, such as
/dev/sdaor/dev/nvme0n1. - Graphical display: shows partition sizes, order, and unallocated space.
- Partition list: shows device path, filesystem, size, used/free space, flags, and labels when available.
- Pending Operations: lists queued changes that have not yet been written to disk.
- Apply: executes the queued operations.
GParted normally queues operations first. You can inspect, undo, or clear pending actions before selecting Apply. This gives you an opportunity to catch an incorrect target or unexpected operation.
6. Identify the Correct Disk
Never select a disk based only on its Linux device name. Device names can change between boots or when hardware is added. Confirm the model, capacity, partition labels, and expected contents.
From a terminal, these read-only commands can help you inventory storage:
lsblk -o NAME,SIZE,MODEL,TYPE,FSTYPE,LABEL,UUID,MOUNTPOINTS
sudo fdisk -l
sudo blkidExample device names include /dev/sda for a SATA/SCSI-style disk and /dev/nvme0n1 for an NVMe disk. The partition names typically append a number, such as /dev/sda1 or /dev/nvme0n1p1.
7. Create a New Partition
To create a partition, you need unallocated space. If the disk has no unallocated space, you may first need to shrink an existing partition—after backing up its data and checking filesystem support.
Select the target disk
Choose the correct disk from the device selector and verify its model and capacity.
Select unallocated space
Click the unallocated region in the graphical map or partition list.
Open the New Partition dialog
Right-click the unallocated space and choose New, or use the Partition menu.
Choose size, alignment, and filesystem
Specify the new size, leave MiB alignment selected for typical modern systems, choose the appropriate partition type where applicable, and select a filesystem.
Add and review the operation
Click Add. Review the pending operation and confirm it targets the intended unallocated space.
Apply the operation
Click the Apply button and read the confirmation dialog. Proceed only when the operation summary is correct.
When complete, refresh the device view if needed and confirm the new partition appears with the expected size and filesystem.
8. Format and Label a Partition
Formatting creates a filesystem on a partition. Formatting destroys the existing filesystem contents, so confirm the partition is empty or backed up before proceeding.
- Select the correct unmounted partition.
- Choose Partition → Format to.
- Select a supported filesystem, such as ext4, NTFS, FAT32, or another option appropriate for the intended operating system.
- Review the pending format operation.
- Click Apply only after confirming the target partition and filesystem.
To set a filesystem label, select the partition and use the label option provided by GParted. A clear label such as DATA, BACKUP, or LINUX_HOME makes volumes easier to identify, but labels should not be treated as unique identifiers.
9. Resize or Shrink a Partition
Resizing changes a partition’s size. Whether it can be grown or shrunk depends on the filesystem, its current state, available adjacent unallocated space, and installed filesystem tools.
Unmount or deactivate the partition
Most resize operations require the partition to be unmounted. Boot from GParted Live when changing an installed operating system’s partition.
Open Resize/Move
Select the partition, then choose Partition → Resize/Move or the matching context-menu action.
Set the new size
Use the slider or enter values for free space preceding, new size, and free space following. To avoid moving the partition’s starting boundary, do not change the free-space-preceding value.
Review and apply
Click Resize/Move, inspect the pending operation, then Apply. Do not power off or reboot while the operation is running.
NTFS preparation
Before shrinking a Windows NTFS volume, boot into Windows and run a filesystem check:
chkdsk C: /fReplace C: with the correct volume letter. Windows may schedule the check for the next restart. Shut Windows down cleanly and ensure hibernation/Fast Startup is not leaving the volume in an unsafe state. Keep adequate free space for Windows to operate normally.
10. Move a Partition
Moving changes where a partition begins or ends on the disk. It can be useful when you need to reposition free space so that it becomes adjacent to another partition.
- Back up the disk and boot from a live environment if necessary.
- Select the unmounted partition.
- Choose Resize/Move.
- Drag the partition body to the new location or adjust the free-space-preceding value.
- Review the queued operation carefully and Apply.
11. Copy a Partition
GParted can copy an unmounted partition and paste it into unallocated space on the same or another disk, subject to supported filesystems and available capacity.
- Select and unmount the source partition.
- Choose Partition → Copy.
- Select unallocated space on the destination disk.
- Choose Partition → Paste and set the destination size and alignment.
- Review and apply the copy operation.
A copied partition may initially have the same filesystem label and UUID as the source. If both copies will be attached to the same computer, duplicate identifiers can cause mount or boot confusion. Change identifiers only when needed and update references such as /etc/fstab or bootloader configuration accordingly.
12. Create a GPT or MBR Partition Table
Creating a new partition table is a destructive operation. It replaces the disk’s partition map and makes existing partitions inaccessible through the new table.
- Select the target disk in GParted.
- Choose Device → Create Partition Table.
- Select gpt for most modern systems or msdos when legacy compatibility is required.
- Read the warning and confirm only if you intend to erase the existing partition layout.
- Click Apply if the operation is queued.
13. Manage Partition Flags and Check Filesystems
Partition flags
Flags are metadata used by firmware or operating systems to identify certain partition roles. Depending on the partition table and filesystem, GParted may expose flags such as boot, esp, hidden, or other platform-specific flags.
To inspect flags, right-click a partition and open Manage Flags. Do not toggle flags simply because they are available; change them only when following a documented boot or platform configuration.
Check a filesystem
GParted provides filesystem check operations for supported filesystems when the required tools are installed. Select an unmounted partition and choose the check action if it is available. Filesystem checks are not a replacement for backups, and some repairs can modify filesystem metadata.
14. Working with Windows and NTFS
GParted is often used to resize NTFS partitions or prepare disks for dual-boot systems. Windows volumes require additional care because hibernation, Fast Startup, BitLocker, and pending filesystem operations can affect offline access.
- Back up Windows data and create recovery media.
- Check the NTFS volume from Windows using
chkdsk. - Disable Fast Startup and fully shut down Windows before using GParted Live.
- If BitLocker is enabled, ensure you have the recovery key and understand the encryption state before modifying partitions.
- Do not format or delete EFI System, Microsoft Reserved, or Windows Recovery partitions unless you understand the consequences.
- After resizing NTFS, boot Windows and allow any requested disk check to complete.
For Windows-native volume management, Disk Management or PowerShell may be more appropriate for routine operations. Use GParted when its supported offline workflows are specifically required.
15. Launch GParted from the Terminal
On a Linux system with GParted installed, launch the graphical application with:
sudo gpartedYou can also specify one or more devices when starting the application:
sudo gparted /dev/sdaReplace /dev/sda with the verified target device. The command opens the graphical partition editor; it does not itself apply partition changes.
To check whether GParted is installed, use the package manager for your distribution. For example:
# Debian / Ubuntu
sudo apt update
sudo apt install gparted
# Fedora
sudo dnf install gparted
# Arch Linux
sudo pacman -S gpartedPackage names and repository availability can vary by distribution release. Consult your distribution’s package documentation if the package is unavailable.
16. Troubleshooting Common GParted Problems
Partition is mounted and operations are unavailable
Unmount the partition using GParted or boot from GParted Live. Do not forcibly unmount a filesystem that is actively being used by applications or services.
Resize option is unavailable or limited
The filesystem may be mounted, active, unsupported for the requested direction, or missing required tools. Check the File System Support view in GParted and consult the filesystem’s own documentation.
Not enough adjacent unallocated space
GParted generally needs unallocated space directly beside a partition to grow it. Moving an intervening partition may create adjacency, but can be slow and risky.
NTFS partition cannot be resized
Boot Windows, run chkdsk, disable Fast Startup, fully shut down, and ensure the volume is not hibernated or in an inconsistent state. BitLocker and filesystem-tool support can also affect available operations.
Operation takes a long time
Moving data or changing partition boundaries on a large or slow disk can take considerable time. Keep the machine powered and do not interrupt the operation. If the disk is making unusual noises or reporting I/O errors, stop using it and prioritize data recovery.
Linux no longer boots after a partition move
Boot from a Linux live environment, inspect partition UUIDs with blkid, and compare them with /etc/fstab and bootloader configuration. Repair the bootloader only after identifying the correct root and EFI partitions.
Disk or partition is missing
Use GParted → Refresh Devices, check cables and storage-controller visibility, and inspect the device list with lsblk. Do not initialize or format a disk merely because it appears unrecognized.
17. GParted Best Practices
- Maintain a verified backup before every partitioning session.
- Use GParted Live for offline changes to system disks.
- Identify disks by model, capacity, and contents.
- Prefer GPT for new modern systems unless legacy requirements dictate otherwise.
- Use MiB alignment for typical modern storage.
- Queue and inspect all operations before clicking Apply.
- Keep the computer connected to reliable power.
- Never interrupt an active resize, move, copy, or filesystem operation.
- Do not change UUIDs or flags without a specific reason.
- After Windows NTFS changes, boot Windows and verify the filesystem.
Frequently Asked Questions
Is GParted free?
Yes. GParted is free and open-source software distributed by the GParted project.
Can GParted resize Windows partitions?
GParted can resize supported NTFS partitions when the volume is in a suitable state and the required tools are available. Back up first, check the filesystem in Windows, and shut Windows down fully.
Does resizing a partition delete data?
Resizing is intended to preserve existing data when supported, but it is not risk-free. Hardware faults, power loss, filesystem problems, or mistakes can cause data loss.
Should I use GPT or MBR?
GPT is the usual choice for modern UEFI systems and new disks. MBR is mainly retained for legacy compatibility or specific requirements.
Can I use GParted on a USB drive?
Yes. GParted can create, format, resize, and manage partitions on USB storage devices, provided the device and filesystem are supported. Confirm the USB device carefully because formatting or repartitioning erases data.
Can GParted recover deleted partitions?
GParted is primarily a partition editor, not a dedicated partition-recovery tool. Avoid writing to a disk with a lost partition table and use specialized recovery workflows or professional assistance when the data is important.
Why are some filesystem operations greyed out?
The selected partition may be mounted, the filesystem may not support that operation, or the necessary filesystem utilities may not be installed. Check GParted’s File System Support information.
Can I move a boot partition?
It may be possible, but moving a boot partition can prevent an operating system from starting. Have recovery media and a tested backup before attempting it.
Official References and Further Reading
- GParted Official User Manual — operations, filesystem support, resizing, moving, and partition tables.
- Download GParted Live — official live image and boot instructions.
- GParted Project Website — project news, documentation, and support.
- GParted Live 1.8 Released with Linux Kernel 6.18 — GParted Live 1.8 Released with Linux Kernel 6.18.
Explore More Linux and Infrastructure Tutorials
Discover practical Linux, virtualization, cloud, Windows Server, backup, and storage guides on VMoreCloud.
Visit VMoreCloud