Fix GParted Locked Partition Resize Error
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
- 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. - Turn off swap
If the lock icon is on a swap partition, run in terminal:
Then refresh GParted (F5) and resize.sudo swapoff -a - Boot from a live USB
Download Ubuntu, Fedora, or any Linux live ISO. Write it to a USB usingddor Etcher. Boot from it. Open GParted from the live environment. Now you can resize any partition because nothing is mounted. - Kill processes using the partition
If you can't unmount because a process is using it (like a file manager open), run:
Find the PID and kill it:lsof +D /path/to/mountpoint
Then try unmount again.kill -9 PID - Check for LVM
If your partition is part of LVM, GParted can't resize it directly. You need to uselvreduceorlvextendcommands. Or use the live USB and the system's LVM tools.
Alternative fixes
- Use command line
If GParted is not working, usefdiskorpartedfrom terminal. But be careful—these tools are powerful. Example:
This resizes partition 3 to 50GB. Check your partition number first withsudo parted /dev/sda resizepart 3 50GBsudo 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:
Thesudo umount -l /path/to/mountpoint-lflag (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?