Posted: . At: 7:33 PM. This was 3 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.

How to re-install the GRUB 2 boot-loader on Fedora Core Linux with the command line.

To re-install the bootloader for Fedora Core 19; you must first load into your Linux installation with a chroot. This post will explain this process.

https://securitronlinux.com/bejiitaswrath/re-installing-the-grub2-bootloader-using-a-chroot-with-linux-mint-14/.

Then, once you are in the chroot environment, the following commands will re-install GRUB for you.

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 Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.