{"id":6,"date":"2015-01-23T22:03:00","date_gmt":"2015-01-23T22:03:00","guid":{"rendered":"https:\/\/www.serenux.com\/?p=6"},"modified":"2021-01-11T09:12:28","modified_gmt":"2021-01-10T23:12:28","slug":"howto-stop-grub-preventing-auto-start-of-the-os-after-a-previous-boot-failure","status":"publish","type":"post","link":"https:\/\/www.serenux.com\/index.php\/2015\/01\/23\/howto-stop-grub-preventing-auto-start-of-the-os-after-a-previous-boot-failure\/","title":{"rendered":"HowTo: Stop GRUB preventing auto-start of the OS after a previous boot failure"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/web.archive.org\/web\/20150206051601im_\/http:\/\/www.serenux.com\/wp-content\/uploads\/2015\/01\/AntlionGrub.png\" alt=\"A picture of a GRUB... geddit?\" width=\"-176\" height=\"-159\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The GRUB boot menu by default will generally show its menu for about ten seconds before automatically booting the OS, but if something goes wrong, or an over-zealous party interrupts the boot process because he thought it had hung, the OS will tell GRUB that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now that\u2019s all well and good, but GRUB\u2019s default action in such an instance is to abort the automatic timeout and stay at the GRUB boot menu waiting for a manual action, such as entering recovery mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On systems that are unattended or without keyboards, this proves&nbsp;to be very annoying and generally you\u2019d like the OS to boot up anyway despite the reported failure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So here\u2019s how you can fix it.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>First up, boot into your system and open a terminal.<br><\/li><li>Now type in:<br><code>$ sudo nano \/etc\/default\/grub<\/code><br>\u2026and hit Enter. The Nano text editor will appear.<br><\/li><li>In the file shown, scroll right to the bottom and add the following lines:<br><code># Timeout for&nbsp;a previous failed startup. GRUB_RECORDFAIL_TIMEOUT=10<\/code><br><\/li><li>Now press CTRL+X, then \u201cY\u201d and then Enter to save your changes.<br><\/li><li>Now update your GRUB configuration with the new option we added with:<br><code>$ sudo update-grub<\/code><br><\/li><li>Pat yourself on the back. You\u2019re done.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">So what did we just do? Simple, we added a new configuration item that tells GRUB that in the event of a reported previous failure, display the GRUB menu as before, but this time apply a ten second delay before booting the default menu item anyway.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The ten seconds will give you time to interrupt it and go to recovery if necessary, but there\u2019s no reason why you wouldn\u2019t set this to a much lower time if you wanted to, such as 2 seconds or less.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The GRUB boot menu by default will generally show its menu for about ten seconds before automatically booting the OS, but if something goes wrong, or an over-zealous party interrupts the boot process because he thought it had hung, the OS will tell GRUB that. Now that\u2019s all well and good, but GRUB\u2019s default action [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":2,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":13,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/6\/revisions\/13"}],"wp:attachment":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}