Fix GParted Locked Partition Resize Error

Linux & Unix Beginner 👁 6 views 📅 Jun 29, 2026

GParted won't resize a partition because it's mounted or in use. Quick fix: unmount it or use a live USB. Here's how.

Quick answer

If GParted says a partition is locked and you can't resize it, unmount the partition first. If it's your system drive, boot from a live USB and run GParted from there.

Why this happens

You try to resize a partition with GParted, and you get that annoying lock icon next to it. Or a message like 'Cannot resize this partition because it is in use.' This is GParted protecting your data. It won't touch a partition that's mounted or has a swap area active. Common scenario: you're resizing your home partition while logged in. Or your root partition while the system is running. GParted can't resize the drive you're booted from because it's busy. The fix is simple: unmount or use a live environment.

Fix steps

  1. Unmount the partition
    Right click the partition in GParted and select 'Unmount'. If it's grayed out, the partition can't be unmounted (like your root partition). If you can unmount, do it and then resize.
  2. Turn off swap
    If the lock icon is on a swap partition, run in terminal:
    sudo swapoff -a
    Then refresh GParted (F5) and resize.
  3. Boot from a live USB
    Download Ubuntu, Fedora, or any Linux live ISO. Write it to a USB using dd or Etcher. Boot from it. Open GParted from the live environment. Now you can resize any partition because nothing is mounted.
  4. Kill processes using the partition
    If you can't unmount because a process is using it (like a file manager open), run:
    lsof +D /path/to/mountpoint
    Find the PID and kill it:
    kill -9 PID
    Then try unmount again.
  5. Check for LVM
    If your partition is part of LVM, GParted can't resize it directly. You need to use lvreduce or lvextend commands. Or use the live USB and the system's LVM tools.

Alternative fixes

  • Use command line
    If GParted is not working, use fdisk or parted from terminal. But be careful—these tools are powerful. Example:
    sudo parted /dev/sda resizepart 3 50GB
    This resizes partition 3 to 50GB. Check your partition number first with sudo parted -l.
  • Use KDE Partition Manager
    Sometimes GParted has a bug with certain filesystems (like NTFS). Try KDE Partition Manager from a live USB. It handles NTFS better with ntfs-3g.
  • Force unmount
    If you're sure no process is using it, force unmount:
    sudo umount -l /path/to/mountpoint
    The -l flag (lazy) detaches the filesystem immediately. Then resize.

Prevention tip

Always plan partition resizing when you're not using the system. If you're resizing the root or home partition, you must boot from a live USB. Keep a live USB handy (I keep an Ubuntu one in my drawer). Also, check if your filesystem supports shrinking—ext4 does, but NTFS can be tricky. Make sure you have a backup before resizing. One wrong step and you lose data. I've seen it happen.

If the error persists after trying these steps, it's likely a disk issue—run sudo e2fsck -f /dev/sdaX (replace sdaX with your partition) to check for errors before resizing. GParted locks partitions with errors too.

Was this solution helpful?