Upgrade Carmine from Ubuntu 22.04.5 to 24.04.1
Carmine is a Lenovo Thinkpad T560 laptop. It’s been running Ubuntu 22.04 for almost two years and was overdue for an upgrade to 24.04. The upgrade strategy for my machines is to keep two identically-sized partitions and copy the current partition to a backup partition before doing an upgrade. This makes sure I have a working system in case something goes wrong or a piece of software doesn’t work with the new version. This time, however, I didn’t do that because the partions were nearly full. Rather, I deleted the backup partion in LVM and added its space to the active one.
$ df -h
/dev/mapper/volgroup1-linux1 48G 43G 2.7G 94% /
$ sudo vgdisplay
--- Volume group ---
VG Name volgroup1
VG Size 112.46 GiB
VG UUID 6Jf0OZ-gKZU-vyqV-G06Y-tofU-IP3O-LMjwwX
$ sudo lvdisplay
--- Logical volume ---
LV Path /dev/volgroup1/swap
LV Name swap
VG Name volgroup1
LV UUID GR3Vhj-3DmU-VOUg-LO9u-Men4-GJHo-c7nYYQ
LV Size 16.00 GiB
--- Logical volume ---
LV Path /dev/volgroup1/linux1
LV Name linux1
LV UUID c3Ovej-FPO9-xte2-7W3B-3qMM-ZUnO-kzmBHy
VG Name volgroup1
LV Size 48.00 GiB
--- Logical volume ---
LV Path /dev/volgroup1/linux2
LV Name linux2
LV UUID cC2Z0d-r6Rh-Llkp-R7RP-02Fz-b5M1-xzdoGJ
VG Name volgroup1
LV Size 48.00 GiB
Logical Volume linux1 is used by the current OS. linux2 contains the backup of the prior Ubuntu version, 20.04.5. This can be verified by checking /boot/grub/grub.cfg
. There isn’t enough space on these partitions for anything new, so I’m going to remove linux2 and add its space to linux1.
Use KDE Partition Manager (from package partitionmanager), which can operate on mounted partitions.
1) Delete linux2
2) Resize linux1 to use freed space
3) Apply changes
That’s it! Partition Manager automatically updates the filesystem to use the new space.
Next run the Ubuntu upgrade with Software Updater.
The installer said cheese is no longer supported, however it remained functional after the upgrade.
The installer also said it would remove GIMP and XSANE. I reinstalled these after the upgrade and they work fine.