GParted: Complete Guide to Disk Partitioning, Resizing & Formatting | VMoreCloud
VMoreCloud › Linux & Open Source › Storage & Disk Management
LINUX • STORAGE • PARTITION MANAGEMENT

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.

By Khurram ShahzadPractical step-by-step tutorialBeginner to intermediate
Important — back up before partitioning. Partition operations can cause permanent data loss because of user error, software defects, hardware problems, or power failure. Create and verify a full backup before changing any disk. Do not experiment on your primary system disk without recovery media and a tested backup.

What You’ll Learn

01
Understand disks and partition tables
Learn GPT, MBR, filesystems, partitions, and unallocated space.
02
Perform common operations
Create, delete, format, label, resize, move, and copy partitions.
03
Work safely
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.

Remember: GParted is a partition editor, not a backup application. “Non-destructive” operations are not risk-free, and some operations erase the selected partition or entire disk.

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.

TechnologyWhat it doesTypical use
GPTGUID Partition Table; modern partitioning format with support for large disks and many partitions.Recommended for most modern UEFI systems and new data disks.
MBR / msdosLegacy partition table with primary/extended/logical partition conventions and practical disk-size limits.Older BIOS systems and legacy compatibility.
EFI System PartitionA FAT-formatted partition used by UEFI firmware to store boot files.UEFI boot environments; do not casually format or delete it.
ext4Common Linux journaling filesystem.Linux data and root filesystems.
NTFSWindows filesystem supported by GParted through installed filesystem tools.Windows system and data volumes.
FAT32 / exFATInteroperable filesystems commonly used on removable media.USB drives and cross-platform storage, depending on requirements.
XFS / BtrfsLinux 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.

1

Download from the official project

Open gparted.org/download.php and download the current stable GParted Live image. Verify the published checksum when available.

2

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.

3

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.

4

Start the partition editor

When the live environment loads, launch GParted if it does not start automatically. Allow it to scan attached storage devices.

Virtual machine lab tip: take a VM snapshot and attach a disposable virtual disk before practising. A snapshot is not a substitute for an independent backup.

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/sda or /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 blkid

Example 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.

Stop if you are unsure. If the device model, capacity, or contents do not match the disk you intended to modify, do not queue or apply any operation.

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.

1

Select the target disk

Choose the correct disk from the device selector and verify its model and capacity.

2

Select unallocated space

Click the unallocated region in the graphical map or partition list.

3

Open the New Partition dialog

Right-click the unallocated space and choose New, or use the Partition menu.

4

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.

5

Add and review the operation

Click Add. Review the pending operation and confirm it targets the intended unallocated space.

6

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.

  1. Select the correct unmounted partition.
  2. Choose Partition → Format to.
  3. Select a supported filesystem, such as ext4, NTFS, FAT32, or another option appropriate for the intended operating system.
  4. Review the pending format operation.
  5. 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.

1

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.

2

Open Resize/Move

Select the partition, then choose Partition → Resize/Move or the matching context-menu action.

3

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.

4

Review and apply

Click Resize/Move, inspect the pending operation, then Apply. Do not power off or reboot while the operation is running.

Adjacent space matters: to grow a partition, unallocated space generally must be directly adjacent to the partition. If another partition lies between them, you may need to move that partition—an operation that can take a long time and adds risk.

NTFS preparation

Before shrinking a Windows NTFS volume, boot into Windows and run a filesystem check:

chkdsk C: /f

Replace 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.

  1. Back up the disk and boot from a live environment if necessary.
  2. Select the unmounted partition.
  3. Choose Resize/Move.
  4. Drag the partition body to the new location or adjust the free-space-preceding value.
  5. Review the queued operation carefully and Apply.
Boot warning: moving an operating-system or boot partition can make the installed system unbootable. Boot configuration, partition identifiers, and firmware boot entries may need repair. Avoid moving boot-critical partitions unless you have a recovery plan.

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.

  1. Select and unmount the source partition.
  2. Choose Partition → Copy.
  3. Select unallocated space on the destination disk.
  4. Choose Partition → Paste and set the destination size and alignment.
  5. 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.

  1. Select the target disk in GParted.
  2. Choose Device → Create Partition Table.
  3. Select gpt for most modern systems or msdos when legacy compatibility is required.
  4. Read the warning and confirm only if you intend to erase the existing partition layout.
  5. Click Apply if the operation is queued.
Entire-disk warning: creating a new partition table erases the partition layout on the selected disk. Verify the disk model and capacity one more time before confirming.

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 gparted

You can also specify one or more devices when starting the application:

sudo gparted /dev/sda

Replace /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 gparted

Package 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

KS

About the Author

Khurram Shahzad — Hybrid Cloud & Virtualization Engineer

Hybrid Cloud & Virtualization Engineer specializing in VMware, Azure, AWS, Windows Server, Microsoft 365, Linux, networking, backup & disaster recovery. I share practical guides, technical projects and insights into modern IT infrastructure through VMoreCloud.

Explore More Linux and Infrastructure Tutorials

Discover practical Linux, virtualization, cloud, Windows Server, backup, and storage guides on VMoreCloud.

Visit VMoreCloud

Leave a Reply

Your email address will not be published. Required fields are marked *