I have an Ubuntu 20.04.3 system which started out as a curiosity and I used a 120 GB SSD I had laying around to build it. Then I started self hosting things on it (mostly Docker images) and now I'm at the point that I grew out the drive. I bought a new 1 TB SSD and I would like to clone the old drive to it and enlarge the partitions to fill it out.
My drive looks like this:
janos@ubuntubaiasprie:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
loop0 squashfs 61.9M
loop1 squashfs 43.6M
loop2 squashfs 55.6M /snap/core18/2566
loop3 squashfs 62M /snap/core20/1611
loop4 squashfs 67.9M /snap/lxd/22526
loop5 squashfs 67.8M /snap/lxd/22753
loop7 squashfs 48M /snap/snapd/17336
loop8 squashfs 48M /snap/snapd/17029
loop9 squashfs 63.2M /snap/core20/1623
loop10 squashfs 55.6M /snap/core18/2560
sda 111.8G
├─sda1 vfat 512M /boot/efi
├─sda2 ext4 1G /boot
└─sda3 LVM2_member 110.3G
└─ubuntu--vg-ubuntu--lv ext4 55.1G /
As a few hours of downtime is not a huge issue, I was thinking about booting from a live stick and running dd
to clone the old drive to the new one.
But I don't know which partition to enlarge and what piece of software to use to enlarge it.