Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: GRUB stops at menu after power cut

  1. #11
    Join Date
    Mar 2012
    Beans
    1

    Re: GRUB stops at menu after power cut

    Hi,

    I know this is a little late but I think it is better to make your recordfail modification in :
    Code:
    /etc/grub.d/00_header
    and after do a
    Code:
    sudo update-grub
    because the /boot/grub/grub.cfg will be crushed by future update-grub command you can do.

    Sorry for my english
    snkkid

  2. #12
    Join Date
    Aug 2007
    Location
    FL
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: GRUB stops at menu after power cut

    So, what does the recordfail test do?

    I ask because I did apply the suggested change and noticed the grub menu is no longer being shown.
    Last edited by supremedalek; September 6th, 2012 at 08:31 PM.

  3. #13
    Join Date
    Nov 2012
    Beans
    2

    Re: GRUB stops at menu after power cut

    Thanks Jordang for the solution!!

    And to complete it and preserve the changes after updates i've fount an alternative to the solution proposed by snkkid that i think is better because if you upgrade the grub package, the file "/etc/grub.d/00_header" can be overwritten.

    Just edit the file "/etc/default/grub" and add a line like "GRUB_RECORDFAIL_TIMEOUT=10" (anything greater than 0), upgrading grub does not modify nothing and the problem is solved for ever

    sorry for my english and happy new year

  4. #14
    Join Date
    May 2013
    Beans
    1

    Re: GRUB stops at menu after power cut

    Or you can add
    Code:
    GRUB_RECORDFAIL_TIMEOUT=1
    into
    Code:
    /etc/default/grub
    and then regenerate the grub.cfg with

    Code:
    sudo grub-mkconfig
    Bye

    Quote Originally Posted by jordang View Post
    A friend found a solution.

    in grub.cfg
    ****
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
    set timeout=-1
    ****
    -1 should be 0 .

    It works.

    Now the only problem is that in case of kernel update, it will execute update-grub I think, which will overwrite this change. It is not that big problem.

    Regards,
    JG

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •