{"id":1693,"date":"2024-12-08T17:28:06","date_gmt":"2024-12-08T22:28:06","guid":{"rendered":"https:\/\/www.familytidings.com\/blog\/?p=1693"},"modified":"2024-12-08T17:28:06","modified_gmt":"2024-12-08T22:28:06","slug":"upgrade-carmine-from-ubuntu-22-04-5-to-24-04-1","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=1693","title":{"rendered":"Upgrade Carmine from Ubuntu 22.04.5 to 24.04.1"},"content":{"rendered":"<p>Carmine is a Lenovo Thinkpad T560 laptop.  It&#8217;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&#8217;t work with the new version.  This time, however, I didn&#8217;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.<\/p>\n<p>$ df -h<br \/>\n<code>\/dev\/mapper\/volgroup1-linux1   48G   43G  2.7G  94% \/<\/code><\/p>\n<p>$ sudo vgdisplay<br \/>\n<code> --- Volume group ---<br \/>\n  VG Name               volgroup1<br \/>\n  VG Size               112.46 GiB<br \/>\n  VG UUID               6Jf0OZ-gKZU-vyqV-G06Y-tofU-IP3O-LMjwwX<\/code><\/p>\n<p>$ sudo lvdisplay<br \/>\n<code>  --- Logical volume ---<br \/>\n  LV Path                \/dev\/volgroup1\/swap<br \/>\n  LV Name                swap<br \/>\n  VG Name                volgroup1<br \/>\n  LV UUID                GR3Vhj-3DmU-VOUg-LO9u-Men4-GJHo-c7nYYQ<br \/>\n  LV Size                16.00 GiB<\/p>\n<p>  --- Logical volume ---<br \/>\n  LV Path                \/dev\/volgroup1\/linux1<br \/>\n  LV Name                linux1<br \/>\n  LV UUID                c3Ovej-FPO9-xte2-7W3B-3qMM-ZUnO-kzmBHy<br \/>\n  VG Name                volgroup1<br \/>\n  LV Size                48.00 GiB<\/p>\n<p>  --- Logical volume ---<br \/>\n  LV Path                \/dev\/volgroup1\/linux2<br \/>\n  LV Name                linux2<br \/>\n  LV UUID                cC2Z0d-r6Rh-Llkp-R7RP-02Fz-b5M1-xzdoGJ<br \/>\n  VG Name                volgroup1<br \/>\n  LV Size                48.00 GiB<\/code><\/p>\n<p>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 <code>\/boot\/grub\/grub.cfg<\/code>.  There isn&#8217;t enough space on these partitions for anything new, so I&#8217;m going to remove linux2 and add its space to linux1.<br \/>\nUse KDE Partition Manager (from package partitionmanager), which can operate on mounted partitions.<br \/>\n1) Delete linux2<br \/>\n2) Resize linux1 to use freed space<br \/>\n3) Apply changes<br \/>\nThat&#8217;s it!  Partition Manager automatically updates the filesystem to use the new space.<br \/>\nNext run the Ubuntu upgrade with Software Updater.<br \/>\nThe installer said cheese is no longer supported, however it remained functional after the upgrade.<br \/>\nThe installer also said it would remove GIMP and XSANE.  I reinstalled these after the upgrade and they work fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrade to Ubuntu 24<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1693","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1693"}],"version-history":[{"count":3,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1693\/revisions"}],"predecessor-version":[{"id":1696,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1693\/revisions\/1696"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}