Fedora 28 boot failure - Page 2
FedoraForum.org - Fedora Support Forums and Community
Page 2 of 2 FirstFirst 1 2
Results 16 to 21 of 21
  1. #16
    Join Date
    Oct 2018
    Location
    USA
    Posts
    11
    Linux (Fedora) Firefox 59.0

    Re: Fedora 28 boot failure

    The issue comes when I try to mount /mnt/root/boot/

    Click image for larger version. 

Name:	Screenshot from 2018-11-06 23-24-12.png 
Views:	13 
Size:	66.0 KB 
ID:	29905

  2. #17
    Join Date
    Aug 2007
    Posts
    298
    Linux Firefox 52.0

    Re: Fedora 28 boot failure

    From the previous screen photo you posted of the grub rescue shell partition (hd0,5) contained several kernel and initrds. This would correspond to /dev/sda5 with a SATA drive but would have different labeling with an NVMe drive. If you only have an NVMe drive and no SATA drive then this is my error. The /boot partition is likely /dev/nvme0n1p5. It would be the same format as the ESP but with a 5 instead of a 1. Sorry about this.

    You should be able to mount this partition read-only in the live environment and verify that it is the /boot partition.

    I have edited my previous post #15 with these changes.
    Last edited by amiga; 7th November 2018 at 06:14 PM.

  3. #18
    Join Date
    Oct 2018
    Location
    USA
    Posts
    11
    Windows 7 Firefox 63.0

    Re: Fedora 28 boot failure

    Thank you, Amiga,

    Appreciate you taking time to help with my issue!

    I thought it might be something like that but didn't really have much time to try more last night. I will get on it tonight though and will let you know about the outcome. I think it will work this time.

    Regards,
    Evgeni

  4. #19
    Join Date
    Oct 2018
    Location
    USA
    Posts
    11
    Windows 7 Firefox 63.0

    Re: Fedora 28 boot failure

    OK,

    Loaded Live Fedora and followed your steps:

    Create the mount point for the root partition.

    $ sudo mkdir -p /mnt/root

    Mount the root partition on the mount point.

    $ sudo mount /dev/mapper/fedora-root /mnt/root

    Mount the boot partition in the boot directory of the filesystem that you have mounted in the previous step.

    $ sudo mount /dev/nvme0n1p5 /mnt/root/boot/
    $ sudo mount /dev/nvme0n1p1 /mnt/root/boot/efi

    Mount system processes and devices into the root filesystem in /mnt/root.

    $ sudo mount -o bind /dev /mnt/root/dev
    $ sudo mount -o bind /proc /mnt/root/proc
    $ sudo mount -o bind /sys /mnt/root/sys
    $ sudo mount -o bind /run /mnt/root/run

    Change your filesystem into the one mounted under /mnt/root.

    $ sudo chroot /mnt/root

    Then restarted and:

    grub> insmod xfs
    grub> insmod lvm

    grub> set root=(hd0,5)

    and

    grub> linuxefi (hd0,5)/vmlinuz-4.18.16-200.fc28.x86.64 root=/dev/sda5 rhgb quiet selinux=0
    grub> initrdefi (hd0,5)/initramfs-4.18.16-200.fc28.x86.64.img
    grub> boot

    and got:

    Click image for larger version. 

Name:	IMG_20181107_221323.jpg 
Views:	9 
Size:	29.7 KB 
ID:	29909

    rebooted and tried again:

    grub> insmod xfs
    grub> insmod lvm

    grub> set root=(hd0,5)
    grub> linuxefi (hd0,5)/vmlinuz-4.18.16-200.fc28.x86.64
    grub> initrdefi (hd0,5)/initramfs-4.18.16-200.fc28.x86.64.img
    grub> boot

    And this time it tried to load but got something else:

    Click image for larger version. 

Name:	IMG_20181107_223210.jpg 
Views:	8 
Size:	255.1 KB 
ID:	29910

    Stuck again.
    Last edited by evgeni; 8th November 2018 at 05:46 AM.

  5. #20
    Join Date
    Aug 2007
    Posts
    298
    Linux Firefox 52.0

    Re: Fedora 28 boot failure

    $ sudo chroot /mnt/root

    Then restarted and:
    You can't restart at this point as you haven't re-generated the grub.cfg yet ! The whole point of the chroot was to mount your drive from the live environment so you can use grub2-mkconfig to create a new grub.cfg. You just wasted all of the steps you did up to this point. All of the commands you entered were for nothing as you never did anything after the chroot !

    You need to do as you did before in post #14.

    Code:
    $ sudo chroot /mnt/root
    dnf reinstall grub2-efi grub2-efi-modules shim
    sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    The dnf reinstall and the grub2-mkconfig were the whole point of the chroot operation. Every time you attempt this you skip important steps that you did before.


    grub> insmod xfs
    Why are you doing this ! You don't use the xfs file system ! You use ext4 so you need to use
    insmod ext2.

    Stop blindly copying steps that don't apply to you. Whoever wrote this guide arrogantly assumed that everyone uses xfs as they do. However on the desktop most people use ext4 as you do as it is the default. You need to stop copying everything from the internet that you see as much of it does not apply to you.

  6. #21
    Join Date
    Oct 2018
    Location
    USA
    Posts
    11
    Linux (Fedora) Firefox 63.0

    Re: Fedora 28 boot failure

    Hallelujah!

    Great job, Amiga!

    It worked! I skipped reinstalling grub2 and grub2-mkconfig because I did it before and didn't think I had to do it every time.
    I hope I learned something. I have to read more and try to understand what every commad do.

    Anyway it was a great exercise and it saved me from reinstalling the whole system. I appreciate your help and thanks for your patience!

    Best regards,

    Evgeni

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Fedora 16 kernel 3.3.0.4 boot failure
    By Beeblebrox in forum Installation, Upgrades and Live Media
    Replies: 10
    Last Post: 2nd February 2013, 08:36 PM
  2. Fedora 17 boot failure
    By Volatile in forum Using Fedora
    Replies: 9
    Last Post: 31st December 2012, 08:20 AM
  3. Fedora Install: Boot failure
    By pnaermao in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 17th April 2009, 11:47 PM
  4. Boot failure Fedora 9
    By bearfood in forum Installation, Upgrades and Live Media
    Replies: 9
    Last Post: 28th September 2008, 09:39 PM
  5. Fedora Core 2 boot failure
    By lithos2003 in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 20th July 2004, 04:14 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
  •