[SOLVED] grub help
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 13 of 13
  1. #1
    Join Date
    Dec 2009
    Location
    India
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    grub help

    dual boot fedora29 plus windows 10 working perfect.
    Fresh installed fedora30 by replacing fedora29.
    Now boots to grub prompt.
    Boot to fedora or windows possible only by pressing F12 during booting.
    Then tried "grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg:.
    It partially succeeded in booting windows. However it fails to find fedora 30 kernels. Still fedora login only possible by keyboard switch F12.

    [root@localhost welcome]# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    Generating grub configuration file ...
    Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
    done
    [root@localhost welcome]#

    Even grub-customizer finds only windows entry.
    Help?

  2. #2
    Join Date
    Aug 2009
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    Did you look at grub.cfg to see if correct uuid's. Maybe copy&paste back here.

  3. #3
    Join Date
    Oct 2006
    Location
    Melbourne
    Age
    47
    Posts
    582
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    Code:
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    no longer works. I rebuilt a fedora 29 kernel from koji for fedora 30.

    https://koji.fedoraproject.org/koji/...uildID=1231413

    i have installed it and removed all but one fedora 30 kernel just in case the kernel failed to boot and is when i noticed the same problem as yourself. Suspend does not work on my PC with the 5 series kernels and it is very frustrating when you have to hit the reset button. Fortunately 4.20.16-200.fc30.x86_64 is working with suspend and as a result i will be sticking with it indefinitely.

    [root@BedroomPC jonathon]# uname -r
    4.20.16-200.fc30.x86_64

    #
    Code:
     grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    Generating grub configuration file ...
    Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
    Adding boot menu entry for EFI firmware configuration
    done
    Last edited by jonathonp; 4th May 2019 at 01:35 PM.
    PC CPU 3.60 Gigahertz Intel Core i7-4790, Motherboard Gigabyte H97M-D3H RAM: 32GB: Fedora 28 MATE x64, KDE Neon, UbuntuMate
    Asus Zenbook UX305CA: Fedora 28 Mate

  4. #4
    Join Date
    Aug 2011
    Location
    Minnesota
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    Fedora 30 changed the way grub works. /etc/default/grub now has this line in it:

    GRUB_ENABLE_BLSCFG=true

    So boot configs are now in /boot/loader/entries/

    This article talks some about it: https://fedoramagazine.org/setting-k...ith-fedora-30/
    Fedora 30 x86_64 on Vertex IV SSD / Inland SSD || Gigabyte B450 AORUS M || AMD Ryzen 2600 || AORUS Radeon™ RX570 4G || 16 GB DDR4-3200 || Emachines T5452 carcass
    Fedora 30 x84_64 on 500GB Seagate Barracuda

  5. #5
    Join Date
    Aug 2011
    Location
    Minnesota
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    Fedora 30 x86_64 on Vertex IV SSD / Inland SSD || Gigabyte B450 AORUS M || AMD Ryzen 2600 || AORUS Radeon™ RX570 4G || 16 GB DDR4-3200 || Emachines T5452 carcass
    Fedora 30 x84_64 on 500GB Seagate Barracuda

  6. #6
    Join Date
    Aug 2007
    Posts
    455
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    Fedora 30 changed the way grub works. /etc/default/grub now has this line in it:

    GRUB_ENABLE_BLSCFG=true

    So boot configs are now in /boot/loader/entries/
    If you changed this flag to false to disable BLS config format would it revert to using the old grub.cfg config format ? This is worth trying.

  7. #7
    Join Date
    Aug 2007
    Posts
    455
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    From the link above

    https://fedoraproject.org/wiki/Chang...efault#Summary

    On Fedora 30, the script to switch to a BLS configuration will be automatically executed on grubby upgrade, and the old grubby tool will be moved to a grubby-deprecated package. So users can switch back to a non-BLS configuration by restoring the old configuration from a backup file and installing the grubby-deprecated package.

    Proper documentation will be provided with detailed instructions on how to switch back and forth between the two types of configurations. Something to keep in mind is that kernels installed after switching to a BLS configuration won't be present in the old configuration backup file. On platforms using grub, users can also switch back by installing the grubby-deprecated package, removing "GRUB_ENABLE_BLSCFG=true" from /etc/default/grub , and using grub2-mkconfig to re-generate their configuration file.

  8. #8
    Join Date
    Dec 2009
    Location
    India
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    If you changed this flag to false to disable BLS config format would it revert to using the old grub.cfg config format ? This is worth trying.
    not working.
    rerun
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    identified fedora entries but does not boot to grub.
    Directly boots to windows.

    Further reinstalled fedora.
    Same thing happens

  9. #9
    Join Date
    Dec 2009
    Location
    India
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    Quote Originally Posted by amiga
    On platforms using grub, users can also switch back by installing the grubby-deprecated package, setting "GRUB_ENABLE_BLSCFG=false" in /etc/default/grub , and using grub2-mkconfig to re-generate their configuration file.
    This does not work

  10. #10
    Join Date
    Dec 2009
    Location
    India
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  11. #11
    Join Date
    Dec 2009
    Location
    India
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    Further,
    on same hardware, I reinstalled Windows 10 from scratch and install fedora 30 with same problem. No boot to grub. straight to windows. fedora only with help of Keyboard switch F12.
    Look at todays distrowatch comment No. 32 at https://distrowatch.com/weekly.php?issue=20190513

  12. #12
    Join Date
    Aug 2007
    Posts
    455
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    rerun
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    identified fedora entries but does not boot to grub.
    Directly boots to windows.
    Did you check your EFI variables to see which bootloader is first ? Please post the output of:

    Code:
    $ efibootmgr -v
    Also since you have an EFI system and are having problems with grub have you considered using rEFInd ?

  13. #13
    Join Date
    Dec 2009
    Location
    India
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grub help

    solved.
    In windows, opened command prompt with admin rights and used command
    bcdedit /set {bootmgr} path \EFI\fedora\grubx64.efi

Similar Threads

  1. F25 GRUB menu not showing; DNF kernel updates don't update grub
    By elisei in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 23rd March 2017, 06:32 PM
  2. [SOLVED]
    slow grub since grub2-mkconfig (grub shows penguins)
    By Japplo in forum Using Fedora
    Replies: 2
    Last Post: 27th July 2012, 01:13 PM
  3. GRUB GRUB GRUB GRUB... endless loop
    By xenotrax in forum Using Fedora
    Replies: 4
    Last Post: 12th February 2009, 07:16 PM
  4. HOWTO Deal with GRUB _, grub> _, and GRUB GRUB GRUB
    By stoat in forum Guides & Solutions (Not For Questions)
    Replies: 10
    Last Post: 8th December 2008, 12:48 AM

Posting Permissions

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