How do I enlarge an encrypted LVM partition in Ubuntu 20.04?

Solution 1:

I found a solution myself.

Live CD

Launch the live CD and use the option "Try Ubuntu".

Instal Partitionmanager

Make sure the universe software can be downloaded:

  • go to the Activities
  • launch Software & Updates
  • enable universe

Open the terminal and install the Partitionmanager:

sudo apt-get update
sudo apt-get install partitionmanager

Partitionmanager

See also the instructions here: http://e1z.ca/devlog/encrypted_partition_resize.html

Open the partitionmanger with sudo rights:

sudo partitionmanager

Right click on the encrypted volume and unlock.

Resize the partition. You might need to resize the vgubuntu on the left as well.

Solution 2:

sudo lvresize -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv 

I tab completed it and it worked fine, you just had the path wrong.