How to re-install the GRUB 2 bootloader on Fedora Core 19 with the command line.

To re-install the bootloader for Fedora Core 19; type this command.

root@neo homer# grub2-install /dev/sda
Installation finished. No error reported.

This will properly re-install the GRUB2 bootloader and then you will be able to boot Fedora properly.

And then if you wish to generate a new GRUB 2 configuration; use this command.

root@neo homer# grub2-mkconfig > /root/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64
Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-d622a566f4ac4b49b1cb43d7e2a94323
Found initrd image: /boot/initramfs-0-rescue-d622a566f4ac4b49b1cb43d7e2a94323.img
Found Windows 8 (loader) on /dev/sda1
done

This file may then be copied to the /boot/grub2 directory once you have confirmed that the command completed successfully. I just took a hard drive out of my computer and the hard disk I removed had the GRUB bootloader on it. Therefore I had to press F12 and boot from another drive. I was able to boot Fedora and then I could re-install the bootloader using the grub2-install command.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *