{"id":1656,"date":"2023-01-31T17:57:37","date_gmt":"2023-01-31T22:57:37","guid":{"rendered":"https:\/\/www.familytidings.com\/blog\/?p=1656"},"modified":"2023-01-31T17:57:37","modified_gmt":"2023-01-31T22:57:37","slug":"upgrade-carmine-from-ubuntu-20-04-lts-to-22-04-lts","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=1656","title":{"rendered":"Upgrade Carmine from Ubuntu 20.04 LTS to 22.04 LTS"},"content":{"rendered":"<p>\/dev\/volgroup1\/ubuntu16.04 is really Ubuntu 20.04<br \/>\n\/dev\/volgroup1\/ubuntu18.04 is the old Ubuntu 18.04 installation<br \/>\nBoth logical volumes are the same size<\/p>\n<h1>Rename the old logical volume<\/h1>\n<p>First rename the old logical volume to reflect what will be stored there:  <br \/>\n<code>sudo lvrename volgroup1 ubuntu18.04 linux2<\/code><\/p>\n<h1>Back up the current OS<\/h1>\n<p>copy the contents of the current OS in ubuntu16.04 to linux2:<br \/>\n<code>sudo dd if=\/dev\/volgroup1\/ubuntu16.04 of=\/dev\/volgroup1\/linux2 bs=1024k<\/code><\/p>\n<h1>Update the backup copy to be bootable<\/h1>\n<p>Mount the new volume:<br \/>\n<code>sudo mkdir \/media\/linux2<\/code><br \/>\n<code>sudo mount \/dev\/volgroup1\/linux2 \/media\/linux2<\/code> <br \/>\nEdit \/media\/linux2\/etc\/fstab and change \/ to point to \/dev\/mapper\/volgroup1-linux2<\/p>\n<h1>Update Grub<\/h1>\n<p>Load Grub Customizer if you don&#8217;t already have it:<br \/>\n<code>sudo apt install grub-customizer<\/code><br \/>\nRun Grub Customizer and check the entries for both logical volumes including the paths and LVIDs (which you can get from lvdisplay)<br \/>\nRename the entries to Ubuntu primary (linux1) and Ubuntu alternate (linux2)<br \/>\nDon&#8217;t forget to save, which runs <code>update-grub<\/code> and install to MBR<\/p>\n<h1>Check both logical volumes are OK<\/h1>\n<p>Verify you can boot into primary and alternate<\/p>\n<p>When running alternate, rename logical volume ubuntu16.04 to linux1, update its fstab and update Grub as above.<\/p>\n<p>Now that there&#8217;s a backup copy of the current OS in Ubuntu alternate, it&#8217;s safe to boot into Ubuntu primary and begin the upgrade<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/dev\/volgroup1\/ubuntu16.04 is really Ubuntu 20.04 \/dev\/volgroup1\/ubuntu18.04 is the old Ubuntu 18.04 installation Both logical volumes are the same size Rename the old logical volume First rename the old logical volume to reflect what will be stored there: sudo lvrename volgroup1 ubuntu18.04 linux2 Back up the current OS copy the contents of the current OS in [&hellip;]<\/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-1656","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\/1656","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=1656"}],"version-history":[{"count":14,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1656\/revisions"}],"predecessor-version":[{"id":1676,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1656\/revisions\/1676"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}