FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2017
    Location
    GNOME rd, GNU, Linux, UNIX
    Posts
    2

    Exclamation How can I fix/reinstall GRUB?

    I'm using Fedora 26. I ran out of space on my Fedora partition so I wanted to delete my Ubuntu 16.04 partition to make more space, but since deleting Ubuntu, when I boot it takes me to GRUB rescue, I've tried fixing it but i've decided to just try and reinstall GRUB. I tried using Boot Repair from my Ubuntu live session but when I enter
    Code:
    sudo chroot "/mnt/boot-sav/sda8" dpkg --configure -a
    sudo chroot "/mnt/boot-sav/sda8" apt-get install -fy
    sudo chroot "/mnt/boot-sav/sda8" apt-get purge -y --force-yes grub*-common grub-common:i386
    It says that purge is an invalid operation, which it isn't when using apt in Ubuntu so i'm not sure what to do about that. Here is some info from Boot Repair https://pastebin.com/pad6pbvm I also have access to a Fedora USB so I can boot into that if required.

  2. #2
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,490

    Re: How can I fix/reinstall GRUB?

    if you have a live ISO you should be able to do

    sudo grub2-install /dev/your_boot_drive
    then you should be able to boot from that drive
    and once you boot the F26 system
    sudo grub2-install /dev/your_boot_drive

    With the DVD iso of Fedora, there is a rescue mode. It's role is to discover your Fedora26 system and to tell you what to do as a next step.

    I have not done a recovery in many years, but ... from memory
    The rescue mode will mount the lost Fedora26 as sysimage.
    The idea then is to move you away from / of the rescue to the / of the sysimage.
    Once on the sysimage
    run the switchover instructions to move your system to the sysimage and then
    sudo grub2-install /dev/your_boot_drive
    sudo grub2-install /dev/your_boot_drive
    Leslie in Montreal

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

  3. #3
    Join Date
    Sep 2017
    Location
    GNOME rd, GNU, Linux, UNIX
    Posts
    2

    Re: How can I fix/reinstall GRUB?

    Quote Originally Posted by lsatenstein
    if you have a live ISO you should be able to do

    sudo grub2-install /dev/your_boot_drive
    then you should be able to boot from that drive
    and once you boot the F26 system
    sudo grub2-install /dev/your_boot_drive

    With the DVD iso of Fedora, there is a rescue mode. It's role is to discover your Fedora26 system and to tell you what to do as a next step.

    I have not done a recovery in many years, but ... from memory
    The rescue mode will mount the lost Fedora26 as sysimage.
    The idea then is to move you away from / of the rescue to the / of the sysimage.
    Once on the sysimage
    run the switchover instructions to move your system to the sysimage and then
    sudo grub2-install /dev/your_boot_drive
    sudo grub2-install /dev/your_boot_drive
    When i do sudo grub2-install /dev/sda
    this is the output

    Code:
    Installing for i386-pc platform.
    Installation finished. No error reported.
    however, when i try to boot sda i still get taken to linux rescue

  4. #4
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,250

    Re: How can I fix/reinstall GRUB?

    Quote Originally Posted by Sol33t303
    I'm using Fedora 26. I ran out of space on my Fedora partition so I wanted to delete my Ubuntu 16.04 partition to make more space, but since deleting Ubuntu, when I boot it takes me to GRUB rescue, I've tried fixing it but i've decided to just try and reinstall GRUB. I tried using Boot Repair from my Ubuntu live session but when I enter
    Code:
    sudo chroot "/mnt/boot-sav/sda8" dpkg --configure -a
    sudo chroot "/mnt/boot-sav/sda8" apt-get install -fy
    sudo chroot "/mnt/boot-sav/sda8" apt-get purge -y --force-yes grub*-common grub-common:i386
    It says that purge is an invalid operation, which it isn't when using apt in Ubuntu so i'm not sure what to do about that. Here is some info from Boot Repair https://pastebin.com/pad6pbvm I also have access to a Fedora USB so I can boot into that if required.
    boot repair from Ubuntu won't work as Ubuntu GRUB is not the same build as Fedora GRUB. you could try using the Fedora workstation netinstall or server netinstall ISO to write GRUB again via the recovery environment.

Similar Threads

  1. Grub gone after reinstall XP
    By 1nt3rfe4r in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 4th October 2007, 08:41 AM
  2. How to reinstall Grub
    By joe2 in forum Installation, Upgrades and Live Media
    Replies: 11
    Last Post: 7th May 2006, 06:43 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
  •