FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 20
  1. #1
    Join Date
    Jun 2008
    Posts
    114

    Best way to reinstall Grub

    Something somehow deleted my bootloader file, so now my Fedora boot process leads to shim MOK manager instead of booting up. I see that the grubx64 file is missing, although the cfg file is still present ?

    What is the best way to reactivate Grub without changing the installation or reinstalling? I do have a Fedora 25 Live disk but I don't want to reinstall because that would erase everything right?

  2. #2
    Join Date
    Mar 2017
    Location
    USA
    Posts
    42

    Re: Best way to reinstall Grub

    Right. Since a good answer has already been published, here is a link:

    https://ask.fedoraproject.org/en/que...n-the-live-cd/

    Tim

  3. #3
    Join Date
    Aug 2007
    Posts
    177

    Re: Best way to reinstall Grub

    Right. Since a good answer has already been published, here is a link:
    Did you actually read the post in the link you gave tim8723 ? It has nothing to do with this post as their system is legacy BIOS and not UEFI. The OP in this thread definitely has a UEFI system.

    Also if you read that thread it is one of the worst examples ever. The OP in that thread has a very confusing disk structure with two Fedora installations, one with LVM and one with standard partitions. Also their BIOS Boot partition which should be only 1 MB in size is 128 MB and their main Linux partition is labeled "Microsoft Basic Data". All of these inconsistencies result in the responses being very confused and incorrect. I could not imagine a worse example for how to re-install grub on a UEFI system for the OP in this thread primarily since the OP in that thread has a BIOS/GPT system in addition to many confusing factors.
    Last edited by amiga; 30th July 2017 at 08:08 PM.

  4. #4
    Join Date
    Jun 2008
    Posts
    114

    Re: Best way to reinstall Grub

    Quote Originally Posted by amiga
    Did you actually read the post in the link you gave tim8723 ? It has nothing to do with this post as their system is legacy BIOS and not UEFI. The OP in this thread definitely has a UEFI system.

    Also if you read that thread it is one of the worst examples ever. The OP in that thread has a very confusing disk structure with two Fedora installations, one with LVM and one with standard partitions. Also their BIOS Boot partition which should be only 1 MB in size is 128 MB and their main Linux partition is labeled "Microsoft Basic Data". All of these inconsistencies result in the responses being very confused and incorrect. I could not imagine a worse example for how to re-install grub on a UEFI system for the OP in this thread primarily since the OP in that thread has a BIOS/GPT system in addition to many confusing factors.
    Thanks, I thought that thread was trash also and did not attempt to follow the solutions offered, which are far too DIY for me anyway.

  5. #5
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,600

    Re: Best way to reinstall Grub

    I ran sudo dnf list grub*
    and came way with
    dnf list grub* | cut -d' ' -f1-2

    Installed Packages
    grub-customizer.x86_64
    grub2.x86_64
    grub2-efi.x86_64
    grub2-tools.x86_64
    grubby.x86_64
    Available Packages
    grub2-breeze-theme.x86_64
    grub2-efi-modules.x86_64
    grub2-starfield-theme.x86_64
    [leslie@F26onE ~]$ dnf list grub* | cut -d' ' -f1
    Last
    Installed
    grub-customizer.x86_64
    grub2.x86_64
    grub2-efi.x86_64
    grub2-tools.x86_64
    grubby.x86_64
    Available
    grub2-breeze-theme.x86_64
    grub2-efi-modules.x86_64
    grub2-starfield-theme.x86_64

    try dnf reinstall grub* Which should fix up your issue.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  6. #6
    Join Date
    Jun 2008
    Posts
    114

    Re: Best way to reinstall Grub

    I have no idea how the previous post could be applied to my situation, where I have a Fedora system which cannot be booted into nor mounted. At least, I have no idea how to mount it from running a Live USB.

  7. #7
    Join Date
    Oct 2011
    Posts
    1,630

    Re: Best way to reinstall Grub

    From Live media, you can mount your system and chroot into it. Since you are using UEFI boot method, you must also mount EFI System partition under /boot/efi . Here is a few links that can help you with that, and don't follow advices to use grub2-install since that is not used on an UEFI system.

    https://unix.stackexchange.com/a/72599/215643

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

    If your board's firmware still does not recognize Fedora boot loader, you might have to install an entry with efibootmgr.

  8. #8
    Join Date
    Oct 2011
    Posts
    1,630

    Re: Best way to reinstall Grub

    Quote Originally Posted by safulop
    Thanks, I thought that thread was trash also and did not attempt to follow the solutions offered, which are far too DIY for me anyway.
    Weeelll there is no GUI with a single tick for this one that I am aware of. You have to do some research on how to do stuff yourself. If you find this too hard right now, it might be easier for you to just reinstall then.

  9. #9
    Join Date
    Jun 2008
    Posts
    114

    Re: Best way to reinstall Grub

    I can handle the tough stuff when necessary; has anyone used Super Grub Disk for this problem? I am trying it now but when I create their bootable USB from the iso image it is not actually bootable....

  10. #10
    Join Date
    Jun 2008
    Posts
    114

    Re: Best way to reinstall Grub

    OK I was able to mount the installed system using the Live system, but I think it is more broken than I thought because it says "no" to both dnf and yum, and apt-get doesn't work right either.

    So at this point I am just going to roll into Fedora 26; what happens if I use the installer with manual partitions to stick the new system where the old one is? Will it automatically do updates or will I end up with two of everything?

  11. #11
    Join Date
    Oct 2011
    Posts
    1,630

    Re: Best way to reinstall Grub

    It will format the partition and create new system on '/' partition from scratch, It think there is no "overwrite" option if I remember correctly. But stuff did change since last time I've used an installer, so I might be completely wrong. But it should be possible to install a new system in a different partition and to keep this one for reference.

    There was an option to keep /home partition though if you have it separate, in that case be sure to do manual partitioning and to tell it to not format. In any case is always a good idea to backup anything important to you before this action.
    Last edited by srakitnican; 31st July 2017 at 08:49 PM.

  12. #12
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,639

    Re: Best way to reinstall Grub

    what happens if I use the installer with manual partitions to stick the new system where the old one is? Will it automatically do updates or will I end up with two of everything?
    If you choose to "stick the new system where the old one is" then the installer will reformat the partition with the old system and install the new system on that partition. That is effectively, overwritng that partition with the new installation. Before it writes anything to disk, the installer will give you a window telling you which partition it will "reformat" so that you can make a final check that it's doing what you want it to. If it's not what you want, you can go back and start partitioning again or readjust what you have configured. As mentioned above, you have to choose custom partitioning to arrange all of this. The installer only reformats partitions which have the reformat box ticked.

    A new installation from media such as a usb or disk doesn't automatically do updates and if you install over the old partition you will not end up with anything from the old system, so there's no doubling up.

  13. #13
    Join Date
    Aug 2007
    Posts
    177

    Re: Best way to reinstall Grub

    OK I was able to mount the installed system using the Live system, but I think it is more broken than I thought because it says "no" to both dnf and yum, and apt-get doesn't work right either.
    This doesn't make sense as apt-get is not in Fedora at all. It is package management for Debian systems. If you have apt-get on your Live System and don't have either dnf or yum then you don't have a Fedora Live DVD.

  14. #14
    Join Date
    Jun 2008
    Posts
    114

    Re: Best way to reinstall Grub

    Quote Originally Posted by amiga
    This doesn't make sense as apt-get is not in Fedora at all. It is package management for Debian systems. If you have apt-get on your Live System and don't have either dnf or yum then you don't have a Fedora Live DVD.
    Well, I already did chroot over to my installed system. So when I was calling for yum, dnf, and apt-get it was not using the Live system, it was using my installed system. I can assure you I have a Fedora Live USB, I am using it right now to try and get stuff off my old system before I erase it and start over.

  15. #15
    Join Date
    Aug 2007
    Posts
    177

    Re: Best way to reinstall Grub

    Well, I already did chroot over to my installed system. So when I was calling for yum, dnf, and apt-get it was not using the Live system, it was using my installed system.
    So now you are claiming that your installed system is not Fedora but a Debian derivative as apt-get wouldn't exist in any Fedora installation.

    I can assure you I have a Fedora Live USB, I am using it right now to try and get stuff off my old system before I erase it and start over.
    So you don't like my questioning whether you have a Fedora Live USB or not but apparently your old installed system is not Fedora. If your installed system does not have either dnf or yum and does have apt-get, which doesn't work right but does exist then your old installed system is not Fedora.

    In none of your previous posts you never mentioned that you have any installed system but Fedora.

    Post #6 by safulop
    I have no idea how the previous post could be applied to my situation, where I have a Fedora system which cannot be booted into nor mounted. At least, I have no idea how to mount it from running a Live USB.
    Post #1 by safulop
    Something somehow deleted my bootloader file, so now my Fedora boot process leads to shim MOK manager instead of booting up. I see that the grubx64 file is missing, although the cfg file is still present ?

    What is the best way to reactivate Grub without changing the installation or reinstalling? I do have a Fedora 25 Live disk but I don't want to reinstall because that would erase everything right?
    In all of your previous posts you only talked about having an installed Fedora system. Now you are claiming that your installed system does not have either dnf or yum and does have apt-get meaning it can't be Fedora.
    Last edited by amiga; 1st August 2017 at 08:06 PM.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Reinstall GRUB
    By hqthao in forum Using Fedora
    Replies: 1
    Last Post: 12th November 2012, 08:57 AM
  2. How to reinstall Grub?
    By Elijah in forum Using Fedora
    Replies: 2
    Last Post: 31st May 2006, 02:02 PM
  3. Reinstall Grub
    By michi in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 27th April 2006, 06:10 PM
  4. Reinstall GRUB
    By zillah in forum Using Fedora
    Replies: 6
    Last Post: 20th December 2004, 09:19 PM

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
  •