keepcalculator

06 Numbers and Powers

GParted: Resize & Create Partitions

Card No. 06·65579 · Updated · Standard formula, shown below

GParted (GNOME Partition Editor) is a free, open-source tool that lets you resize, create, delete, and move disk partitions without losing data. You run it from a live USB or CD, select your disk, and use its graphical interface to change partition sizes and create new ones before clicking Apply. This article explains how to do that safely, what the underlying tools do, and how to avoid the most common mistakes.

What GParted Actually Does

GParted is a front-end for the libparted library, the same engine used by the parted command-line tool. It does not modify your filesystem directly; instead, it coordinates a sequence of low-level operations:

  • Resizing a partition changes the partition table entry, then grows or shrinks the filesystem inside it using filesystem-specific tools (e.g., resize2fs for ext4, ntfsresize for NTFS).
  • Creating a partition writes a new entry into the partition table (MBR or GPT) and optionally formats it with a filesystem.
  • Moving a partition relocates its data block-by-block, which is slow and risky—GParted warns you about this.

All operations are queued as pending until you click the green checkmark (Apply). Until then, nothing is written to disk, so you can review the plan and cancel.

Before You Start: Backup and Boot Media

Resizing partitions carries a real risk of data loss if the power fails or the process is interrupted. Always back up important files to an external drive before starting. Then create a GParted Live USB or CD—the official GParted Live image is a small Linux distribution that boots into the tool. You can also use a Ubuntu live USB, which includes GParted in its default installation.

Do not run GParted on a partition that is currently mounted (in use). That is why you boot from external media rather than running it from your installed OS. If you absolutely must use it from a running system, you can only safely resize partitions that are not mounted, which usually means a separate data partition—not your system drive.

Step-by-Step: Resizing a Partition

Here is the typical workflow for shrinking a partition to free up space, or growing one into unallocated space:

  1. Boot from the GParted Live USB and select the default settings until the GParted window appears.
  2. In the top-right corner, choose the correct disk from the drop-down menu (e.g., /dev/sda). Double-check you have selected the right drive—GParted shows the model and size.
  3. Right-click the partition you want to resize and select Resize/Move.
  4. In the dialog, drag the arrows or type numbers in the New Size field. You can also adjust Free space following to set how much unallocated space goes after the partition.
  5. Click Resize/Move to queue the operation. The partition bar will now show a new layout.
  6. If you are creating a new partition, right-click the unallocated space and select New. Choose a filesystem (ext4 for Linux, NTFS for Windows, FAT32 for compatibility), set a label, and click Add.
  7. Review the pending operations list at the bottom of the window. It shows exactly what will happen.
  8. Click the green checkmark (Apply) and confirm. Wait for the progress bar; do not interrupt it.

After completion, you can close GParted and reboot. If you resized a Windows partition, Windows may run a filesystem check on first boot—that is normal.

How to Choose the Right Filesystem and Size

The filesystem you choose depends on your operating system and use case:

  • ext4: default for most Linux distributions. Supports journaling, good for large files, and can be resized both up and down.
  • NTFS: required for Windows system partitions. GParted can resize NTFS both ways, but it is slower than ext4.
  • FAT32: maximum file size is 4 GB, so not suitable for modern video files, but it works everywhere (Windows, Mac, Linux, cameras, game consoles).
  • exFAT: good for large files and cross-platform USB drives, but not all older devices support it.

When choosing a size, leave at least 10–15% free space on a system partition for performance and updates. For a Linux root partition, 20–30 GB is a reasonable minimum for a basic desktop, but 50 GB or more is safer if you install many applications. For a data partition, size it based on what you store—there is no universal rule.

Common Problems and How to Fix Them

Even with careful planning, things can go wrong. Here are the most frequent issues:

  • “Cannot resize a partition that is mounted”: You are running GParted from the installed OS and the partition is in use. Boot from the live USB instead.
  • “Unable to detect filesystem”: The partition is corrupted or uses a filesystem GParted does not recognize. Do not force anything; check the partition table with fsck (Linux) or chkdsk (Windows) first.
  • The resize bar is greyed out: You cannot shrink a partition below the space used by the filesystem. GParted shows the minimum size in the dialog; you must stay above it.
  • Power failure during resize: If the process is interrupted, the partition may be corrupted. Restore from backup. Some filesystems have journaling that helps, but do not rely on it.
  • Windows does not boot after resizing: If you shrank the Windows system partition too much, Windows may fail to load. Use the Windows recovery environment to run startup repair, or grow the partition back if possible.

GParted vs. Windows Disk Management and Other Tools

Windows Disk Management can shrink and extend NTFS partitions, but it is limited—it cannot move partitions, and it often refuses to shrink below certain points due to unmovable system files. GParted is more flexible and works for all filesystems.

Other Linux tools include fdisk (text-based, for partition table only) and parted (command-line, more powerful but harder to use). Commercial tools like Acronis Disk Director offer similar features with a polished interface, but they cost money. GParted is free and open-source, and it is the de facto standard for Linux partition management.

Is It Safe? Risks and Precautions

Resizing a partition is safe if you follow the rules: back up, use a live USB, do not interrupt the process, and keep the power connected (use a laptop with a charged battery or a UPS). The main risk is human error—selecting the wrong disk or shrinking too much. GParted shows a warning when you attempt to move a partition, because moving is far riskier than resizing (it rewrites every block).

Another precaution: after resizing, run a filesystem check. In GParted, right-click the partition and select Check before applying other operations. This catches errors early. Also, remember that GParted works on the partition table, not the physical disk—so it cannot recover deleted files or repair a failing drive.

Frequently Asked Questions

Can I resize the partition where my operating system is installed?

Yes, but you cannot do it while that OS is running. You must boot from a GParted Live USB or another live Linux environment, then resize the system partition. After resizing, reboot normally.

How long does a resize take?

It depends on the size and speed of the drive and the filesystem. Shrinking a 500 GB NTFS partition can take 30–60 minutes. Growing an ext4 partition is usually faster because it only adds new blocks. Moving a partition takes the longest because it copies every block.

Will I lose data if I resize a partition?

If done correctly and without interruption, no. But any power loss or crash during the operation can corrupt the filesystem. Always back up before starting. GParted itself does not delete data unless you explicitly delete a partition or format it.

Can I resize a partition without a live USB?

You can use GParted from a running Linux system to resize unmounted partitions (for example, a secondary data drive). For your root or boot partition, you must use a live environment because those are always mounted.

What is the difference between shrinking and moving a partition?

Shrinking reduces the size of the filesystem and partition, leaving unallocated space after it. Moving relocates the entire partition to a different position on the disk, which requires copying all data and is much riskier. GParted lets you do both in one operation, but moving should be avoided unless absolutely necessary.

Does GParted support SSDs and NVMe drives?

Yes, GParted works with any block device that Linux can see, including SATA SSDs, NVMe drives, and USB flash drives. However, it does not perform TRIM or optimize SSD alignment automatically; most modern drives and filesystems handle alignment correctly by default.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →