FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2008
    Location
    Sydney, Australia
    Age
    34
    Posts
    32

    Re-installing the boot loader of Fedora 20 - 64 bit

    Hi


    I have a dual boot system with Fedora 20 - 64 bit and Windows Server.

    Everything was working well until I re-installed the Windows.
    Now When I restart my computer it doesn't let me to choose Fedora. The Grub page doesn't come up to let me to do so. It goes straight to Windows.

    I know that need to re-install the boot loader. I have a 500 mega byte /boot partition and I have root and /home partitions separated.

    Would you please tell me what are the steps to re-install the grub? I can reboot my system with the live usb and see all of my installed files on the hard drive.

    I couldn't find any man page for grub-install btw



    Thank you

    Bobby
    Last edited by babak.nourani; 5th September 2014 at 02:11 AM.

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,568

    Re: Re-installing the boot loader of Fedora 20 - 64 bit

    Assuming both Windows and Fedora are installed on the same hdd (sda), boot into live CD, change to root user,
    Code:
    su
    press ENTER alone when prompted for the password
    grub2-install /dev/sda
    On your next boot, you should get the grub2 menu. If for some reason Windows is not in the menu, then run, as root,
    Code:
    grub2-mkconfig -o /boot/grub2/grub.cfg
    The above assumes your are using bios MBR install and not UEFI.

  3. #3
    Join Date
    Aug 2008
    Location
    Sydney, Australia
    Age
    34
    Posts
    32

    Re: Re-installing the boot loader of Fedora 20 - 64 bit

    Quote Originally Posted by PabloTwo
    Assuming both Windows and Fedora are installed on the same hdd (sda), boot into live CD, change to root user,
    Code:
    su
    press ENTER alone when prompted for the password
    grub2-install /dev/sda
    On your next boot, you should get the grub2 menu. If for some reason Windows is not in the menu, then run, as root,
    Code:
    grub2-mkconfig -o /boot/grub2/grub.cfg
    The above assumes your are using bios MBR install and not UEFI.

    Thank you Pablo

    I checked with gparted when I booted my system with the live usb, the name of my /boot partition is sda3 .

    so should I put
    grub2-install /dev/sda3
    instead of
    grub2-install /dev/sda
    ??



    Best regards

    Bobby

  4. #4
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,625

    Re: Re-installing the boot loader of Fedora 20 - 64 bit

    No, install it as Pablo stated, grub2-install /dev/sda (install bootloader to the MBR). If you run grub2-install /dev/sda3 it will install grub to the root of the OS partition.
    Glenn
    The Bassinator

  5. #5
    Join Date
    Aug 2008
    Location
    Sydney, Australia
    Age
    34
    Posts
    32

    Re: Re-installing the boot loader of Fedora 20 - 64 bit

    It returns
    Path /boot/grub2 is not readable by GRUB on boot. Installation is impossible. Aborting.
    when I try
    grub2-install /dev/sda

  6. #6
    Join Date
    May 2005
    Location
    Sonoran Desert
    Posts
    2,420

    Re: Re-installing the boot loader of Fedora 20 - 64 bit

    You can try to give grub2-install more information by using one or more of its parameters.

    For example, the "--boot-directory=" parameter tells it explicitly where your Fedora /boot directory is
    located. If you have mounted Fedora's /boot under /mnt then the command would be:

    Code:
    grub2-install --boot-directory=/mnt/boot /dev/sda
    The exact command depends on your Fedora setup - separate /boot partition? - and where you have mounted it.
    *****
    The Arch Wiki recommends invoking grub2-install this way for mbr setups:
    Code:
    # grub2-install --target=i386-pc --recheck --debug /dev/sda
    https://wiki.archlinux.org/index.php...nstall_to_disk
    Last edited by sonoran; 7th September 2014 at 04:38 AM.

  7. #7
    Join Date
    Aug 2008
    Location
    Sydney, Australia
    Age
    34
    Posts
    32

    Thumbs up Re: Re-installing the boot loader of Fedora 20 - 64 bit

    I tried
    grub2-install --boot-directory=/run/media/liveuser/Boot_Partition dev/sda
    and it worked!

    Beautiful.

    Thank you all for your kind guides.

    My issue perfectly solved.

Similar Threads

  1. [SOLVED] installation error right after setting boot loader
    By Cosmin3 in forum Installation, Upgrades and Live Media
    Replies: 9
    Last Post: 18th December 2012, 01:02 PM
  2. Replies: 12
    Last Post: 19th April 2011, 08:06 PM
  3. Manual kernel installation + boot loader
    By Night Runner in forum Using Fedora
    Replies: 22
    Last Post: 13th July 2009, 10:26 PM
  4. Fedora 10 - Boot loader installation option missing
    By auralish in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 27th November 2008, 03:41 AM
  5. Boot loader does not show up after installation
    By squishface in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 4th March 2007, 01:21 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
  •