I am running Ubuntu 20.04. When I made a fresh installation I have chosen to encrypt the entire disk with LUKS and selected all the default settings.
%>lsblk
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
├─sda2 8:2 0 732M 0 part /boot
└─sda3 8:3 0 930.3G 0 part
└─sda3_crypt 253:0 0 930.3G 0 crypt
├─vgubuntu-root 253:1 0 929.3G 0 lvm /
└─vgubuntu-swap_1 253:2 0 976M 0 lvm
After using the system for a few months, I would like to make the following changes:
1 - remove vgubuntu-swap_1
because I already have a swapfile in /
2 - expand vgubuntu-root
to use all space available in sda3_crypt
3 - shrink sda3
by 4GB
4 - expand sda2
by 4GB
I have an Ubuntu 20.04 live USB but I am uncertain how these steps could be done without killing my system. The reason I want a bigger sda2
is because I want to store a few ISO in this partition such that GRUB can boot directly to those (eg. Clonzilla, Gparted) without touching my encrypted partition.