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

Posted: September 8, 2013. At: 3:33 PM. This was 4 years ago. Post ID: 6228
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

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.

No comments have been made. Use this form to start the conversation :)

Leave a Reply