{"id":22,"date":"2008-12-18T11:02:47","date_gmt":"2008-12-18T17:02:47","guid":{"rendered":"http:\/\/blog.lju.ca\/?p=22"},"modified":"2011-03-17T11:34:32","modified_gmt":"2011-03-17T17:34:32","slug":"renumber-partitions-in-ubuntu","status":"publish","type":"post","link":"https:\/\/blog.d5.ca\/?p=22","title":{"rendered":"Renumber Partitions in Ubuntu"},"content":{"rendered":"<p>Boot into Ubuntu using a live CD.\u00a0 Open a terminal window and run fdisk by executing:<\/p>\n<pre>sudo fdisk \/dev\/sda<\/pre>\n<p>Press x to navigate to the advanced menu, then press f to fix the partition order.<\/p>\n<p>It may be necessary to update grub&#8217;s configuration after renumbering partitions. Update any partition references in the notation &#8220;hd(0,1)&#8221; &#8211; the second number may have to be changed to reflect the new partition numbers.<\/p>\n<p>It&#8217;s a good idea to check for any changes to partition UUIDs as a result of renumbering.\u00a0 In a terminal window, run:<\/p>\n<pre>ls -l \/dev\/disk\/by-uuid<\/pre>\n<p>Compare the output from this to grub&#8217;s menu file. Make certain the &#8220;root=UUID=0000000000&#8221; parameter is correct on any line beginning with &#8220;kernel&#8221;.<\/p>\n<p>Credit: <a href=\"https:\/\/lists.ubuntu.com\/archives\/ubuntu-uk\/2008-January\/010753.html\" target=\"_blank\">https:\/\/lists.ubuntu.com\/archives\/ubuntu-uk\/2008-January\/010753.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boot into Ubuntu using a live CD.\u00a0 Open a terminal window and run fdisk by executing: sudo fdisk \/dev\/sda Press x to navigate to the advanced menu, then press f to fix the partition order. It may be necessary to update grub&#8217;s configuration after renumbering partitions. Update any partition references in the notation &#8220;hd(0,1)&#8221; &#8211; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[25],"tags":[11],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-reference","tag-linux"],"_links":{"self":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22"}],"version-history":[{"count":2,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":146,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions\/146"}],"wp:attachment":[{"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.d5.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}