{"id":2710,"date":"2022-12-27T10:55:48","date_gmt":"2022-12-27T09:55:48","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2710"},"modified":"2022-12-27T10:59:54","modified_gmt":"2022-12-27T09:59:54","slug":"grub-rescue","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2710","title":{"rendered":"grub rescue"},"content":{"rendered":"\n<p>It could happen that your PC, after some operations (i.g. with gdisk) doesn&#8217;t start booting and you are therefore in <strong>grub rescue prompt<\/strong>. A very unpleasant situation.<\/p>\n\n\n\n<p>The steps to follow are:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>see what are the partitions, with the command <code><strong>ls<\/strong><\/code>\n<ul class=\"wp-block-list\">\n<li>you should see something like: <code>(hd0)(hd0,msdos1)(hd0,msdos2)(hd1)(hd1,gpt1)<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>understand what is <strong>the right partition to boot<\/strong> (i.g. hd0,gpt2): \n<ul class=\"wp-block-list\">\n<li>you can list a single partition to see what it contains, with the command ls (hd0,gpt2). You should be able to see if a partition is the right one.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>give the command <code>set prefix=(hd0,gpt2)\/boot\/grub<\/code><\/li>\n\n\n\n<li>give the command <code>set root=(hd0,gpt2)\/ root=\/dev\/sda2<\/code> (if the right partition is hd0,gpt2 the name is \/dev\/sda2, if it was hd1,gpt3 it would be \/dev\/sdb3)<\/li>\n\n\n\n<li>give the command <code>insmod norma<\/code>l<\/li>\n\n\n\n<li>give the command: <code>normal<\/code> (or <code>boot<\/code>)<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p>In this way the system should start with the expected partition.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It could happen that your PC, after some operations (i.g. with gdisk) doesn&#8217;t start booting and you are therefore in grub rescue prompt. A very unpleasant situation. The steps to follow are: In this way the system should start with the expected partition.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[716,573],"tags":[140,141,796,793],"class_list":["post-2710","post","type-post","status-publish","format-standard","hentry","category-boot","category-sistema-operativo","tag-boot","tag-grub","tag-grub-rescue","tag-partition"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2710"}],"version-history":[{"count":6,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2710\/revisions"}],"predecessor-version":[{"id":2718,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2710\/revisions\/2718"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}