[Adapted from my instructions here] Use
blivet-gui
to grow and edit the inner LVM volume(s) within the outer LUKS-encrypted partition: press the Windows key and type in "blivet" to open theblivet-gui
tool. Note: theblivet-gui
should NOT already be open! You must do the unlock step above in "Disks" before openingblivet-gui
. Under the bold "LVM" label is myvgubuntu
Logical Volume which I just unlocked with the Disks tool above. I want to grow this LVM to fill the entire outer LUKS-encrypted partition space. Here is what I see inblivet-gui
when I click on thevgubuntu
LVM and then the "Logical View" tab:You can see the
vgubuntu-root
474.75 GiB section, which is what I just cloned to this new disk usingddrescue
above. Let's delete the 980 MiB swap logical partition in this LVM and grow the main LVM to fill the whole (980 MiB + 1.3 TiB) space, as follows:Right-click the 980 MiB logial swap partition and go to "Delete". Right-click the 474.75 GiB logical main partition and go to --> Edit --> Resize --> drag the slider all the way to the right to resize it to fill the whole LVM container within the LUKS partition. Here's what that looks like for me:
Click "Resize", then click the little check-mark at the top of the main
blivet-gui
window --> you'll need to "Confirm scheduled actions" by clicking "Ok" to complete the operation. It will take about 20 seconds. Be patient. When it completes, click "OK" on the box which says "All queued actions have been processed."
Now close
blivet-gui
, Disks, and gparted (if you had it open too). Then, open yournautilus
file manager and go to Other Locations"Other Locations" in the left-hand pane --> click on "1.9 TB Volume" to auto-mount it. Once your new disk is mounted, rundf -h
in the terminal to view its new size and space avaiable. The output below is what I see now. The file-system I just expanded viablivet-gui
is the very last line in this output, and is called Filesystem/dev/mapper/vgubuntu-root
, mounted at path/media/ubuntu/abcdef01-abcd-0123-abcd-0123456789ab
. You can see I now have 412 GB used and now have 1.3 TB available! I just cloned my nearly-full 512 GB disk to a new 2 TB disk, so that makes sense!ubuntu@ubuntu:~$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 3.2G 11M 3.2G 1% /run /dev/sda1 3.6G 3.6G 0 100% /cdrom /cow 16G 581M 16G 4% / /dev/disk/by-label/writable 11G 18M 11G 1% /var/log tmpfs 16G 432K 16G 1% /dev/shm tmpfs 5.0M 8.0K 5.0M 1% /run/lock tmpfs 16G 324K 16G 1% /tmp tmpfs 3.2G 184K 3.2G 1% /run/user/999 /dev/mapper/vgubuntu-root 1.8T 412G 1.3T 25% /media/ubuntu/abcdef01-abcd-0123-abcd-0123456789ab
Basically, just shut down, remove your Ubuntu live USB, and boot back up into the internal drive as normal! That's it!
You'll type in your LUKS encryption password at boot, just like normal. You'll log in to your user account just like normal. Everything will be exactly as you last left it before the clone, except df -h
will show that your root filesystem mounted at path /
is now much bigger!
Done.