Results 1 to 6 of 6

Thread: What is grub's "recordfail" and how to investigate?

  1. #1
    Join Date
    Nov 2014
    Beans
    27

    What is grub's "recordfail" and how to investigate?

    I'm running Lubuntu 18.04.1 on a laptop. I configure it to boot directly to the default linux install (there are no other installs on the laptop) with no grub screen. It's been fine for months, but a recent package update caused the grub screen to start appearing again, every time with a 30s countdown. Grub version is 2.02.

    This is apparently due to the "recordfail" condition being true, which changes the timeout to 30s (via /boot/grub/grub.cfg). Setting GRUB_RECORDFAIL_TIMEOUT=5 for example makes it boot as expected (5 second delay in that case.)

    My understanding is that "recordfail" means the computer didn't shut down cleanly? Is that correct?

    I don't see any obvious errors in the logs -- how can I investigate why "recordfail" is being set?

    Thanks!

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,027

    Re: What is grub's "recordfail" and how to investigate?

    This is apparently due to the "recordfail" condition being true, which changes the timeout to 30s (via /boot/grub/grub.cfg). Setting GRUB_RECORDFAIL_TIMEOUT=5 for example makes it boot as expected (5 second delay in that case.)
    A question for you: If you add this setting, doesn't the grub menu still appear for (up to) 5 seconds?

    I saw the same problem this morning, but haven't yet done anything about it.

  3. #3
    Join Date
    Jan 2019
    Location
    Moscow, Russia
    Beans
    42
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: What is grub's "recordfail" and how to investigate?

    Do you use LVM or LUKS encryption? Maybe btrfs or ZFS? Also you probably have EFI.

    See here: https://bugs.launchpad.net/ubuntu/+s...2/+bug/1800722
    Seems to be a regression in grub-common 2.02-2ubuntu8.10.

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,027

    Re: What is grub's "recordfail" and how to investigate?

    Quote Originally Posted by dmnur View Post
    Do you use LVM or LUKS encryption? Maybe btrfs or ZFS? Also you probably have EFI.

    See here: https://bugs.launchpad.net/ubuntu/+s...2/+bug/1800722
    Seems to be a regression in grub-common 2.02-2ubuntu8.10.
    This is UEFI and LVM. There is only Ubuntu 18.04 installed on this machine, and up to now, no grub menu appeared. My take on this is that a grub menu is now going to appear in all cases with UEFI (but not BIOS) just to be sure users can get a menu when needed.

    Comments:

    There is no setting GRUB_RECORDFAIL_TIMEOUT= in my /etc/default/grub. Do you have that, or did you add it? I get the 30 sec timeout without it.
    Last edited by Dennis N; February 8th, 2019 at 11:10 PM.

  5. #5
    Join Date
    Jan 2019
    Location
    Moscow, Russia
    Beans
    42
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: What is grub's "recordfail" and how to investigate?

    Looks like it's fixed now: https://bugs.launchpad.net/ubuntu/+s...2/+bug/1814403
    Upgrade and celebrate.

  6. #6
    Join Date
    Nov 2014
    Beans
    27

    Re: What is grub's "recordfail" and how to investigate?

    Thanks all -- I subscribed to the thread for email updates but never got them for some reason (?). I just came back to say that the problem resolved itself with recent package updates, as dmnur suggested it would. Thanks for the responses!

Tags for this Thread

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
  •