FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2017
    Location
    US
    Posts
    31

    Grub2-Install Failed

    System: Fedora 26 (x2)

    Machine: AMD FX 8350 + RX 480

    Issue: After grub-booted into the second (previously installed) Fedora system, I tried to use the following steps to reinstall grub into this system, but failed:

    Code:
    dnf install grub2-efi grub2-efi-modules shim
    
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    
    grub2-install /dev/sda
    HTML Code:
    https://fedoraproject.org/wiki/GRUB_2
    Return said no error. But I am now unable to boot.

    Have to boot into a Ubuntu system on the same machine.
    Last edited by pingwu; 11th November 2017 at 10:53 AM.

  2. #2
    Join Date
    Nov 2008
    Posts
    327

    Re: Grub2-Install Failed

    https://forums.fedoraforum.org/showthread.php?t=312443 might be helpful (especially comment #5).

  3. #3
    Join Date
    Aug 2007
    Posts
    162

    Re: Grub2-Install Failed

    There is one incorrect and unnecessary step for a UEFI system

    Code:
    grub2-install /dev/sda
    This is only for legacy BIOS or CSM mode where you are installing grub2 to the MBR of /dev/sda. You don't do this at all for an EFI system. This command is what broke your grub installation.

    For UEFI systems with Fedora:

    https://fedoraproject.org/wiki/GRUB_...n_UEFI_systems

    On this page there is a large warning in bold.

    grub2-install shouldn't be used on EFI systems. The grub2-efi package installs a prebaked grubx64.efi on the EFI System partition, which looks for grub.cfg on the ESP in /EFI/fedora/ whereas the grub2-install command creates a custom grubx64.efi, deletes the original installed one, and looks for grub.cfg in /boot/grub2/.
    When you ran grub2-install /dev/sda you likely overwrote your previous bootloader as described above. You will have to reinstall the grub packages.

  4. #4
    Join Date
    Aug 2017
    Location
    US
    Posts
    31

    Re: Grub2-Install Failed

    Quote Originally Posted by amiga
    For UEFI systems with Fedora:

    https://fedoraproject.org/wiki/GRUB_...n_UEFI_systems

    On this page there is a large warning in bold.
    Actually I was trying the quoted url (stated in my original post). Admitted that this is not the best written tutorial, at least for me.

    (I knew this article specifically warned against using grub2-install on my UEFI system, but when everything I tried failed, I am willing to try anything.)

    Still struggling. Any further help will be greatly appreciated. Thanks again.

  5. #5
    Join Date
    Aug 2017
    Location
    US
    Posts
    31

    Re: Grub2-Install Failed

    It turned out that I need to edit the secure boot option.

    Everything is good now. I can boot directly into the previously installed Fedora.

    Summary:

    1. Boot into Fedora, run two commands:

    Code:
    dnf irenstall grub2-efi grub2-efi-modules shim
    
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    (The second command may not be necessary, but won't hurt).

    2. Reboot; Go to BIOS SETUP -> Advanced -> Boot -> Secure Boot -> Change from "Windows" to "Other OS"

    (Other machines may have different setup.)

Similar Threads

  1. grub2-install: command not found similar command is 'grub2-install'
    By RichG in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 31st August 2017, 12:07 PM
  2. [SOLVED] Grub2-install failed
    By pingwu in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 18th August 2017, 11:42 PM
  3. additional drivers during install and grub2 file not found error after install
    By adwaitnd in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 6th April 2012, 05:38 AM
  4. [SOLVED] Grub2, dev modifications from satndard grub2 install
    By jakebpg in forum Using Fedora
    Replies: 16
    Last Post: 9th March 2012, 09:39 AM

Tags for this Thread

Posting Permissions

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