Ubuntu: How to Resize a Partition Safely with GParted

You can resize an Ubuntu partition with GParted. For the Ubuntu root partition or any partition that must be shrunk or moved, the safest approach is to boot an Ubuntu live USB so the target partition is not in use. A separate data partition can usually be resized from the installed desktop after it is unmounted.

Before changing partition boundaries, back up important files and connect a laptop to AC power. GParted warns that partition editing can cause data loss if a resize is interrupted by hardware trouble, power loss, or another failure. See the official GParted manual for the current resize workflow and cautions.

What you need before resizing

  • A current backup of files you cannot replace.
  • Enough free space inside the partition if you plan to shrink it.
  • Adjacent unallocated space if you plan to grow a partition. GParted cannot extend a partition across another partition that sits in between.
  • An Ubuntu live USB for the root partition, or whenever the partition cannot be unmounted safely.

Canonical documents the current live-session path for Ubuntu Desktop 26.04 LTS: boot the installer and choose Try Ubuntu. If you need to create the media first, follow Canonical's bootable USB guide.

How to resize the Ubuntu root or system partition

1. Boot the Ubuntu live USB

Insert the USB drive, restart the computer, and choose the USB device from the one-time boot menu. The key varies by manufacturer; F12 is common, while Esc, F2, and F10 are also used. In the Ubuntu installer, complete the initial language and keyboard screens until you reach the choice to try or install Ubuntu, then select Try Ubuntu. Canonical's Try Ubuntu Desktop guide shows the current flow.

Ubuntu live-session screen with the Try Ubuntu option selected before resizing a system partition

2. Open GParted

In the live desktop, open the application search and launch GParted. If your Ubuntu flavor or custom live image does not include it, connect to a network and install it temporarily with sudo apt update followed by sudo apt install gparted.

Ubuntu desktop search showing the GParted partition editor

3. Select the correct disk and partition

Use the device selector in the upper-right corner of GParted to choose the correct SSD, NVMe drive, or hard disk. Device names may look like /dev/sda or /dev/nvme0n1. Identify the target by its size, file system, and mount point rather than assuming the first disk is always the Ubuntu disk.

GParted disk map with an ext4 Ubuntu partition selected and unallocated space beside it

If the target partition shows as mounted, right-click it and choose Unmount when that option is available. Do not try to unmount the live system itself. GParted notes that unmounted or inactive partitions provide the widest range of resize options; some mounted file systems support online growth, but shrinking normally requires the partition to be inactive.

4. Open Resize/Move

Right-click the partition and choose Resize/Move. To make a partition larger, unallocated space must be directly next to it. If another partition is between the target and the free space, you must carefully move or resize the intervening partition first.

GParted context menu with Resize/Move selected for an ext4 partition

5. Set the new partition size

Use the slider or the New size, Free space preceding, and Free space following fields. When shrinking, do not set the new size below the minimum GParted reports. When growing, extend the partition only into adjacent unallocated space.

GParted Resize Move dialog before changing the size of an ext4 partition

For a straightforward grow operation, it is usually best to leave Free space preceding unchanged so the partition start does not move. Moving a partition can take much longer than changing its end boundary, and moving a boot partition can create boot problems.

GParted Resize Move dialog after increasing an ext4 partition into adjacent unallocated space

6. Review and apply the pending operation

Click Resize/Move. GParted queues the change rather than writing it immediately. Review the disk map and the Pending Operations pane. If the proposed result is wrong, use Undo before applying anything. When it looks correct, click the green Apply button and confirm.

GParted window showing a queued Resize Move operation and the Apply button

Do not power off, suspend, remove the drive, or force-close GParted while it is working. Large moves can take considerably longer than simple boundary changes.

7. Confirm success and reboot

After GParted reports that all operations completed successfully, close the program and restart the computer. Remove the live USB when prompted and boot normally. Check that Ubuntu starts and that the resized file system reports the expected capacity.

GParted completion dialog confirming the partition resize finished successfully

Resize a non-system partition from the Ubuntu desktop

For a separate data partition that is not required by the running system, install GParted from Ubuntu's repositories if needed:

sudo apt update
sudo apt install gparted

Launch GParted, choose the correct disk, unmount the data partition, then use the same Resize/Move → review pending operation → Apply sequence above. Ubuntu currently provides GParted packages in supported releases; you can verify availability on the official Ubuntu Packages site.

Why GParted will not let you resize a partition

  • The partition is mounted or active: unmount it, or use a live USB for a system partition.
  • No adjacent unallocated space exists: shrinking a neighboring partition is not enough if the free space ends up on the wrong side or another partition remains between them.
  • The file system cannot be shrunk: support varies by file system. For example, GParted can grow XFS but does not directly shrink an XFS file system. Check the official GParted feature table.
  • The disk uses LUKS encryption or LVM: identify the storage layers before resizing. Encrypted containers and LVM physical volumes require the correct layer to be opened, inactive, or resized in the proper order.

For a typical Ubuntu ext4 installation, the key rules are simple: back up first, work from a live USB for the root partition, make sure free space is adjacent before growing, avoid moving the partition start unless necessary, and review every pending operation before clicking Apply.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.