I had the same problem with Ubuntu 20.04 LTS and this solved the problem for me: https://help.ubuntu.com/community/ResizeEncryptedPartitions
The main steps are:
Boot into live USB
Decrypt your file system.
sudo cryptsetup luksOpen /dev/sda5 crypt1
- Get the live CD to recognize (activate) your LVM.
sudo vgscan --mknodes
sudo vgchange -ay
- Resize the Crypt.
sudo cryptsetup resize crypt1
- Resize the (LVM) Physical Volume.
sudo pvresize /dev/mapper/crypt1
- Resize your root (LVM) Logical Volume.
5.1. Unlock the (LVM) Physical Volume.
sudo pvchange -x y /dev/mapper/crypt1
5.2. Resize the (LVM) Physical Volume.
sudo lvresize -l +4G /dev/ubuntu-vg/
Note: Change the +4G to the amount of space you are adding, or +100%FREE to use all of the available space.
5.3. Re-lock the physical volume.
sudo pvchange -x n /dev/mapper/crypt1
- Resize the filesystem.
sudo e2fsck -f /dev/mapper/ubuntu--vg-root
sudo resize2fs -p /dev/mapper/ubuntu--vg-root
- Reboot
Boot into live USB
Decrypt your file system.
sudo cryptsetup luksOpen /dev/sda5 crypt1Get the live CD to recognize (activate) your LVM.
sudo vgscan --mknodes sudo vgchange -ayResize the Crypt.
sudo cryptsetup resize crypt1Resize the (LVM) Physical Volume.
sudo pvresize /dev/mapper/crypt1Resize your root (LVM) Logical Volume.
Unlock the (LVM) Physical Volume.
sudo pvchange -x y /dev/mapper/crypt1Resize the (LVM) Physical Volume.
sudo lvresize -l +4G /dev/ubuntu-vg/
Note: Change the
+4Gto the amount of space you are adding, or+100%FREEto use all of the available space.- Re-lock the physical volume.
sudo pvchange -x n /dev/mapper/crypt1
Resize the filesystem.
sudo e2fsck -f /dev/mapper/ubuntu--vg-root sudo resize2fs -p /dev/mapper/ubuntu--vg-rootReboot