How to Resize Hard Drive Partitions on Linux with GParted

GParted can shrink or expand a Linux partition. Back up important files and confirm the target disk first. Most partitions must be unmounted; use a live USB for the installed system's root partition. GParted queues edits so you can review them before applying. Its manual documents the resize dialog and pending operations.

The interface illustrations below use example device names, mount points, and sizes.

Before you resize a partition

  • Back up important files to a separate disk. Software errors, hardware problems, or power loss can cause data loss.
  • Keep a laptop plugged in, close programs using the partition, and do not interrupt an operation.
  • Check file-system support in GParted's feature list. LUKS encryption, LVM, and RAID may involve multiple storage layers.

Install GParted and identify the right disk

Install GParted from your distribution's software repository. For example:

DistributionInstall command
Ubuntu or Debiansudo apt install gparted
Fedorasudo dnf install gparted
openSUSEsudo zypper install gparted

On other distributions, install gparted from the official repository. Open it from the applications menu and authenticate if prompted. The GParted download page lists packages and the live image.

Choose the disk from the upper-right selector. Match its capacity, then identify the partition by its path, file system, label, size, and mount point. Device names such as /dev/sda vary by computer, so do not rely on the name alone.

GParted's device selector lists disks by device name and capacity.
GParted with the device selector open above a disk map and partition table.

A mount point of / marks the running root file system. Data partitions may be mounted under /media or /run/media. Confirm the capacity and details before editing.

The example's mount point is /, so handle it from a live session.
A selected ext4 partition row showing the mount point / and a 20 GiB size.

Resize an unmounted data partition

  1. Unmount the target. Right-click it and choose Unmount. If that fails, close programs using it or switch to a live session.
  2. Set the new size. Right-click the partition, choose Resize/Move, then drag an edge or enter New size (MiB). For example, 10 GiB equals 10,240 MiB. Leave “free space preceding” unchanged to keep the starting boundary in place.
Use the size field or drag the bar, then queue the resize.
The Resize/Move dialog with MiB fields and a bar beside unallocated space.
  1. To shrink, leave room for stored files and file-system overhead. GParted shows the resulting unallocated area. If the requested size is unavailable, check file-system support and space in use.
After a 20-to-10 GiB shrink, 10 GiB is free; use a live session for /.
A partition map showing a 10 GiB partition beside 10 GiB of unallocated space.
  1. To expand, unallocated space must be directly beside the partition. Space beyond another partition cannot be used until the layout changes. Moving partitions may take a long time and affect booting, so back up and avoid moving system or recovery partitions unless necessary.
Growth needs adjacent free space; unmount this example's / partition first.
A 60 GiB partition directly beside 40 GiB of unallocated space.

Click Resize/Move to add the change to GParted's pending operations. This only stages the plan; it does not yet write the resize to disk.

Resize the Linux root partition from a live USB

The running Linux root partition is active. Some file systems allow limited online growth, but support varies; shrinking or moving it requires an inactive partition. Boot a live environment for root-partition changes.

Download the GParted Live image and follow its USB instructions. Writing the image can erase the selected USB drive, so verify the device. Boot from the USB and open GParted. The current live image is for 64-bit x86; on another architecture, use a compatible live Linux system with GParted.

Select the internal disk and confirm the installed root partition has no mount point. Then resize it and review the pending operation as above.

In the live session, the installed root partition has no mount point.
GParted open on a Linux live desktop with the internal disk's root partition listed without a mount point.

Review, apply, and verify

Review the pending list: confirm the device path, old and new sizes, and any planned move. Undo mistakes before continuing. If the plan is correct, click the apply checkmark and confirm. Keep the computer powered while GParted works; large resizes and moves can take time.

Review the queued device and size before choosing Apply.
GParted's pending operations pane with a resize listed and the apply checkmark visible.

After completion, verify the refreshed map. For a system disk, remove the USB and boot Linux; confirm the partition mounts and files are available. If GParted reports an error, save its details before taking further action.

The map shows an 80 GiB partition and 20 GiB free; root edits use a live session.
A partition map showing an 80 GiB partition and 20 GiB unallocated space.

Limits that can change the steps

Support depends on the file system and operation. XFS can grow but cannot shrink in place, so making it smaller requires a migration plan. LUKS, LVM, and RAID layouts need their layers resized consistently. Check GParted's feature matrix and your distribution's documentation first; never proceed without a restorable backup.

Leave a Comment

How to Share Files Over Bluetooth on Linux with Blueman

How to Share Files Over Bluetooth on Linux with Blueman

Send and receive files over Bluetooth on Linux with Blueman. Install OBEX support, pair devices, choose a file, accept transfers, and fix common issues.

How to Connect to Servers with GNOME Files

How to Connect to Servers with GNOME Files

Connect GNOME Files to SSH/SFTP, FTP, SMB, WebDAV, or NFS with the correct server URI, sign-in details, and fixes for common connection errors.

How to Connect to Servers in Linux With the KDE Dolphin File Manager

How to Connect to Servers in Linux With the KDE Dolphin File Manager

Open SFTP, SSH, SMB, FTP, NFS, and WebDAV locations in Dolphin, sign in safely, transfer files, and save network folders for later.

How to Use a PS4 Controller on Linux: USB, Bluetooth, and Steam

How to Use a PS4 Controller on Linux: USB, Bluetooth, and Steam

Connect a DualShock 4 to Linux by USB or Bluetooth, then check controller detection and configure Steam Input only when a game needs it.

How to Speed Up the Fedora Linux App Installer

How to Speed Up the Fedora Linux App Installer

Use DNF5 parallel downloads to reduce RPM install waits in GNOME Software, then tell when mirror or Flatpak delays need a different fix.

How to Use iCloud on Linux Through Your Web Browser

How to Use iCloud on Linux Through Your Web Browser

Access iCloud on Linux in a current browser. Learn how to sign in, use iCloud Drive and other web apps, and understand the limits of browser access.

How to Back Up the Linux Bootloader to a USB Drive

How to Back Up the Linux Bootloader to a USB Drive

Save GRUB settings, boot files, and UEFI entry details to removable storage, then use rescue media to repair the correct boot path safely.

How to Install and Set Up Bitwarden on Linux

How to Install and Set Up Bitwarden on Linux

Install Bitwarden on Linux with the right DEB, RPM, Snap, Flatpak, or AppImage package, then sign in and set a secure vault timeout.

How to Change the Screensaver on Xfce: Choose a Theme and Set the Idle Time

How to Change the Screensaver on Xfce: Choose a Theme and Set the Idle Time

Pick a screensaver theme in Xfce, preview it, choose when it starts, and configure automatic locking in the separate Lock Screen tab.

How to Disable the Screensaver in GNOME Shell

How to Disable the Screensaver in GNOME Shell

Stop GNOME Shell from blanking or locking your display automatically. Change Power and Screen Lock settings, or use Caffeine for a temporary keep-awake toggle.