[SOLVED] F29, A reboot after a kernel upgrade put me at a grub prompt.
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Location
    Midwest USA
    Age
    51
    Posts
    523
    Linux (Fedora) Firefox 62.0

    F29, A reboot after a kernel upgrade put me at a grub prompt.

    Don't know what happened, did a dnf update on Tuesday, and after a reboot only had a grub prompt. And there was no emergency mode to boot to. Been trying to figure out what's wrong, and the XFCE spin I used to install (new computer), didn't have a rescue option. I'm thinking something happened and grub didn't properly update the config at the end of the update. I've got a UEFI system with 2 drives, 250 GB SSD (primary), and 2TB HDD (secondary)
    Last edited by CronoCloud; 1st February 2019 at 06:42 PM.
    Running Fedora 29 64-bit on a HP EliteDesk 800 G1, 3.6GHz i7-4790 CPU (4 cores, 8 threads), 32GB RAM, 250GB SSD + 2TB HDD, EVGA GTX1050 TI SC 4GB GDDR5 video card. Vizio E221-A1 22" 1080p HDTV, using 1080P (1920x1080) over HDMI

  2. #2
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,799
    Linux Firefox 65.0

    Re: F29, A reboot after a kernel upgrade put me at a grub prompt.

    try reinstalling the bootloader as follows:

    https://ask.fedoraproject.org/en/que...#post-id-40593

  3. #3
    Join Date
    May 2010
    Location
    Midwest USA
    Age
    51
    Posts
    523
    Linux (Fedora) Firefox 65.0

    Re: F29, A reboot after a kernel upgrade put me at a grub prompt.

    Quote Originally Posted by antikythera
    try reinstalling the bootloader as follows:

    https://ask.fedoraproject.org/en/que...#post-id-40593
    Thanks! That pointed me in the general direction, but I needed a bit more trial and error after that to figure it out.

    For me it was, booting into the live DVD, opening up a terminal, becoming root in that terminal and:

    Code:
    mkdir /mnt/sysimage
    mount /dev/fedora/root /mnt/sysimage
    All as the info says, but there's a secret sauce on newer systems, there's two boot related partitions, the regular "boot" and an "efi" directory that is technically part of boot, but is a separate FAT partition. As far as I can tell this is the default setup now. They both have to be mounted.

    Code:
    mount /dev/sda2 /mnt/sysimage/boot
    mount /dev/sda1 /mnt/sysimage/boot/efi
    Code:
    mount --bind /dev /mnt/sysimage/dev
    mount --bind /proc /mnt/sysimage/proc
    mount --bind /sys /mnt/sysimage/sys
    
    chroot /mnt/sysimage
    
    grub2-install --target=i386-pc --force /dev/sda
    But the second part of the secret sauce that makes it work is:
    Code:
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    In fact, I might have not needed to run grub2-install at all, just grub2-mkconfig pointing at the RIGHT directory.

    I had to boot back into the previous kernal and then run a dnf --refresh update.

    Anyway, it's back to normal. Thanks again.
    Running Fedora 29 64-bit on a HP EliteDesk 800 G1, 3.6GHz i7-4790 CPU (4 cores, 8 threads), 32GB RAM, 250GB SSD + 2TB HDD, EVGA GTX1050 TI SC 4GB GDDR5 video card. Vizio E221-A1 22" 1080p HDTV, using 1080P (1920x1080) over HDMI

Similar Threads

  1. grub prompt after fedora upgrade
    By fionazuco in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 5th June 2017, 12:03 AM
  2. reboot after kernel upgrade
    By Jagcoxa in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 4th June 2015, 06:32 AM
  3. Botched F12 upgrade, get grub> prompt. Any way to recover?
    By user200912 in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 23rd December 2009, 04:31 PM
  4. Replies: 6
    Last Post: 9th October 2008, 04:34 PM
  5. Replies: 1
    Last Post: 25th January 2005, 04:51 PM

Posting Permissions

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