Running out of space on the Linux root partition (/) can cause failed updates, application errors, and even system crashes. Fortunately, you can extend root partition in Linux safely with the right tools and backups.
This guide explains multiple methods—using GParted, Logical Volume Manager (LVM), or shrinking another partition—based on your setup.
Understanding the Root Partition
The Linux root partition stores the operating system, configuration files, and applications. When it reaches capacity, you may encounter:
Installation failures
Large log or temporary files consuming space
Database growth in
/
Check usage first:
df -h fdisk -l
Backup Before You Begin
Always back up your data. Use a tool like rsync:
Methods to Extend Root Partition in Linux
1. Extend Root Partition Using GParted (Beginner-Friendly)
Boot from a Live USB/CD – Required because a mounted root partition cannot be resized.
Launch GParted – Identify the
/partition and locate unallocated space.Resize/Move – Right-click root partition → Resize/Move → adjust size.
Apply Changes – Click the checkmark icon and wait.
Verify – After reboot, run
df -hto confirm increased size.
2. Extend Root Partition with LVM (Preferred for Servers)
If your root uses LVM:
lsblk sudo lvextend -L +10G /dev/vg_root/lv_root sudo resize2fs /dev/vg_root/lv_root # ext4/ext3 # or sudo xfs_growfs /
LVM allows online resizing without reboot.
3. Shrink Another Partition (Advanced)
When no free space exists and LVM isn’t used:
Backup
/homeor other data partitions.Boot from a Live USB.
Shrink
/homewith GParted to free space.Move and expand
/carefully.Resize the filesystem.
This method carries more risk—ideal for experienced users only.
Verification After Expansion
After any method:
df -h
Ensure the root partition shows the new size. Monitor disk health regularly using:
Suggested Read:
