Ubuntu – How to disable Grub’s menu from showing up after failed boot

12.04grub2reboot

I am performing a test in which I hard-reboot a machine with Ubuntu during its boot sequence (just before login prompt appears).

After the reboot, GRUB's menu shows up with no timeout (not its rescue-mode, but the usual menu), as opposed to before reboot where GRUB had a timeout and started to boot Ubuntu.

I am using a fresh installation of Ubuntu 12.04 LTS Server for my tests.

Although it is a nice feature for recovery, I would like GRUB to continue the "usual boot" sequence with the default timeout, instead of the "fail-safe" mode where it waits for input, even if previous boot failed.

How is it possible?

Best Answer

As I had the same problem and figured out the following solution:

  1. Open /etc/default/grub with an editor

  2. Add a line with this assignment: GRUB_RECORDFAIL_TIMEOUT=N

    Set N to the desired timeout in case of a previously failed boot

  3. Update Grub: sudo update-grub

Related Question