Does KDE Partition Manager support resizing an encrypted LUKS/LVM drive

Upgrading my laptop from 512GB to a 2TB. I would like some help in the resizing. Here is my plan. Laptop has a 2nd empty slot so I will use that to perform an image backup using a live disk and the dd command.

sudo dd if=/dev/nvme0n1 of=/dev/sdb bs=64K conv=noerror,sync status=progress
after which I will replace the 512GB slot1 drive with the 2TB,
I want to grow the vgkubuntu encrypted LVM ext4 partition to the max.

Can I resize using the live disk and KDE Part? What would the steps be?
Here is what my 512GB looks like at the moment.

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

Hi - I haven’t done this myself, so take this with a whole shaker full of salt, but there’s a walkthrough over in Reddit comments of someone specifically mentioning use of KDE Partition Manager to expand a LUKS-encrypted partition with LVM: https://www.reddit.com/r/linux4noobs/comments/1636rue/enlarging_an_encrypted_partition/

Hope that’s at least a lead for you!

2 Likes

It’s not totally clear. Ill try it. See if it works. But thanks!

Just want to add a quick desription on how I got it done (Always make full backups):

KDE Partition Manager (KDEPart) will resize an LVM/Luks Encrypted drive with a caveat.

After you “dd” to the new larger drive, boot your system with the new drive.
and launch KDEPart. The new space will not be seen by KDEPart so
for the easy fix (using gdisk) and an explanation by the dveloper, follow this link

Then, using KDEPart, resize the LVM (vgkubuntu) to whatever additional storage you need and click apply.
Then resize the file system partitions within vgkubuntu. In my case I just added more storage to the / partition. But you could also choose any other partition in vgkubuntu group including swap.

1 Like