Resizing root on a 'live' system

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-59-generic (64-bit)

The root partition is continually getting close to the max allowed size. Need to resize root and make it larger. At least 10 Gb more.

sudo fdisk -lu

Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZVLW256HEHP-000L7
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: ADE8ABB0-4F85-41E5-BCA4-D29D398B84FF

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 396671628 396432013 189G Microsoft basic data
/dev/nvme0n1p4 396673024 499070975 102397952 48.8G Microsoft basic data
/dev/nvme0n1p5 499073024 500115455 1042432 509M Windows recovery environment

Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: PSSD T7 Shield
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 62889D0C-173B-4DDC-9A7F-1EC302CEB7DD

Device Start End Sectors Size Type
/dev/sda1 65535 1048559 983025 480M EFI System
/dev/sda2 1048560 42008575 40960016 19.5G Linux filesystem
/dev/sda3 42008576 1953525134 1911516559 911.5G Linux filesystem

lsblk -f

NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1 vfat FAT32 7938-BFAB 472.8M 1% /boot/efi
├─sda2 ext4 1.0 c95be9f3-79c9-4245-9175-3d2fce94bc7e 1.5G 87% /
└─sda3 ext4 1.0 9ced7988-12b8-4bfb-bf56-dc383ef96397 743.8G 12% /home
sdb
nvme0n1
├─nvme0n1p1 vfat FAT32 D409-6E0B
├─nvme0n1p2
├─nvme0n1p3 ntfs DABA0B69BA0B418D
├─nvme0n1p4 ntfs Data AA429B21429AF175
└─nvme0n1p5 ntfs 9862A51762A4FB60

The laptop has two SSD’s, one is internal (Disk /dev/nvme0n1 ) and only for Windows. The other is external ( Disk /dev/sda ) and only used for Kubuntu. I need to increase the root partition ( /dev/sda2 ) in the Kubuntu system by 10 Gb.

Apart from the obvious full backups, do I just boot from a live USB and run the KDE partition manager to decrease /dev/sda3 by 10 Gb, and then use the available space to increase /dev/sda2 ?

Your sda3 home is used only 12% so you may reduce it and give space to /.
Use gparted from a live on USB stick.

1 Like

Since you have a 1TB drive for Kubuntu, I would suggest you increase the / partition to 50GB plus. If you use Gparted or KDE partition manager from a live system you should first verify neither partition is mounted then move the beginning of sda3 to the right and then move sda2 to the right to use the new free space created. Moving sda3 will require moving data also and will take some time and yes, a backup would be a good idea.

2 Likes

Okay thanks for your detailed reply. Will do a few full backups first.

So, after a few backups , I started this yesterday. There were 2 parts, one was the moving and the other was resizing. The moving took over 2 hours and worked out okay. Will now opt for a fresh install of Kubuntu, to the latest and make sure /root is at least 30 Gb. Thanks. :grinning:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.