Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Minimal GRUB command-line on boot

  1. #1
    Join Date
    Mar 2024
    Beans
    8

    Minimal GRUB command-line on boot

    Hello,

    Whenever I do a cold boot it seems there is a moment where I receive a command-line interface for GRUB. Then I type "exit" to proceed with the boot where GRUB shows the selection list properly.
    This began after I needed to disable SecureBoot temporarily. Is there something else I needed to do before enabling SecureBoot?
    Do I have two GRUBs installed somehow?

    This is a dual boot installation with Windows 11 and Kubuntu 23.10.

    I've run boot repair twice now and it hasn't changed this behaviour. In either case, boot repair tried these options:

    The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed ofsda2,
    using the following options: nvme0n1p2/boot/efi Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups
    sda2 being where Kubuntu is installed and nvme0n1p2 is where Windows 11 created the EFI partition.

    https://paste.ubuntu.com/p/VPW5p3pDQq/

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Minimal GRUB command-line on boot

    You show UEFI Secure boot on.
    But have some old BIOS boot loaders in MBRs.
    Windows in nvme0n1 and sdc, grub in sda. Those will never work and really never should have been installed there.
    As long as you do not attempt to boot in old BIOS mode, having boot code in MBR is ok as never used with UEFI boot.

    Not sure if you have Ubuntu installed in UEFI Secure boot mode. It may be trying to boot and then switching?
    The reinstall of signed grub should have worked, but you may have need to reinstall signed kernel in advanced mode of Boot-Repair?

    Make sure UEFI is set to boot in UEFI mode, but with Secure boot on that should be only option.

    Report did not show output of efibootmgr which it normally does.

    Post this in code tags.
    sudo efibootmgr -v
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Mar 2024
    Beans
    8

    Re: Minimal GRUB command-line on boot

    SecureBoot was enabled when I installed Kubuntu and Windows months ago and GRUB was seemingly fine. However recently I needed to run memtest86+ and I did a BIOS update.
    Also, this ASUS UEFI lets me choose between [Windows UEFI Mode] and [Other OS]. I set it to [Other OS] while I was using memtest86+ only.

    I'm not exactly sure what resides in sdc but it may be related to the Microsoft Store or Xbox Games service. Windows might have created this automatically.

    Here is the output of that command:

    Code:
    BootCurrent: 0005
    Timeout: 1 seconds
    BootOrder: 0005,0000
    Boot0000* Windows Boot Manager  HD(2,GPT,6465f541-ec1d-44fe-a22a-2c5224f26603,0x60700000,0x32000)/File(\EFI\MI
    CROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.
    c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...s................
    Boot0005* ubuntu        HD(2,GPT,6465f541-ec1d-44fe-a22a-2c5224f26603,0x60700000,0x32000)/File(\EFI\UBUNTU\SHI
    MX64.EFI)
    Should I try running the reinstall of the signed kernel in advanced mode of Boot-Repair?

    Thanks for your assistance.

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Minimal GRUB command-line on boot

    If it worked before & you installed in UEFI mode with Secure Boot on, it should be correct.

    UEFI entries look normal.

    The change to "Other OS" was probably the issue.
    BIOS boot only works with Secure boot off.

    My old motherboard said to use "OtherOS" to boot Windows 7 In UEFI mode, as it does not support UEFI Secure boot.
    With the OtherOS setting you can install in UEFI (Secure boot off) or old BIOS boot mode.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Mar 2024
    Beans
    8

    Re: Minimal GRUB command-line on boot

    Where do I select in Boot-Repair to reinstall signed kernel in advanced mode?

    Does this mean because I had the UEFI set to [Other OS] temporarily for a few boots, that should I reinstall my Kubuntu?

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Minimal GRUB command-line on boot

    Changing to OtherOS should not have made any difference unless you totally reinstalled system.

    Boot-Repair has advanced options where you can choose what to do.
    tps://help.ubuntu.com/community/Boot-Repair &
    https://sourceforge.net/p/boot-repair/home/Home/
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Mar 2024
    Beans
    8

    Re: Minimal GRUB command-line on boot

    Is this option on the "GRUB options" tab in Boot Repair? Is it "Purge kernels then reinstall last kernel"?

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Minimal GRUB command-line on boot

    Yes, but also check complete reinstall of grub.
    And before any major change, make sure your backup is current.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Mar 2024
    Beans
    8

    Re: Minimal GRUB command-line on boot

    First, I think I should clarify I've been using Boot Repair while running the currently installed Kubuntu, not from a Live USB.

    When I ran Boot Repair with the purge kernels and purge GRUB (assuming that's what you meant by complete reinstall), it ran through the GRUB section seemingly without issues but became inactive when purging the kernels.
    I assumed I should try again but in Live. Here's what that produced:

    Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 23.10 entry (nvme0n1p2/efi/ubuntu/shimx64.efi file) !
    Please disable SecureBoot in the BIOS. Then try again.
    https://paste.ubuntu.com/p/jBrgWFTJ3J/

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Minimal GRUB command-line on boot

    We have seen more & more locked NVRAM issues. And not one easy solution.
    were you running from UEFI boot?
    Do you have latest UEFI firmware from vendor?

    You may need to manually mount /sys/firmware/efi/efivars which I do not think Boot-Repair does.
    It seems that older systems had efivars in with kernel, but newer have it in /sys/firmware.
    UEFI settings or include in chroot mount -t efivarfs none /sys/firmware/efi/efivars
    https://ubuntuforums.org/showthread.php?t=2482909
    https://ubuntuforums.org/showthread.php?t=2490084


    But many systems have a setting in UEFI to prevent unauthorized updates.
    Dell Locked BIOS
    https://ubuntuforums.org/showthread.php?t=2489447
    HP Zbook 15 NVRAM locked, install issues multiple settings
    https://ubuntuforums.org/showthread.php?t=2482555
    Lenovo Locked UEFI/BIOS setting:
    https://www.reddit.com/media?url=htt...xuo193ui41.jpg
    MSI locked the boot order in the BIOS.
    In the MSI UEFI BIOS Setting, Toggle from Advanced Mode to Basic Mode. Bottom of list
    MSI B450M Pro-Vdh Max Unable to install Ubuntu (Black Screen) UEFI update required
    https://askubuntu.com/questions/1340...290153_1340556
    add "--no-nvram" to the "grub-install" command
    https://forums.gentoo.org/viewtopic-...150a2c7d7b89d0
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 LastLast

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
  •