1

I don't have access to the install media for Fedora right now. Can I restore boot loader for Fedora from Ubuntu 12?

2
  • Why do you think you need to restore the boot loader? What error are you getting?
    – stark
    Sep 2, 2012 at 20:00
  • I could not boot into fedora. (Fatal error occurred... blah blah blah.. ! and Kernel Panic" Sep 5, 2012 at 20:03

2 Answers 2

1

You can try this:

  1. Boot your Ubuntu.
  2. Open a terminal and mount the Fedora partition: sudo mount /dev/sdXY /mnt/fedora (where sdXY is the partition where you have Fedora installed). Most likely, X will be a (for the first hard drive installed in your system).
  3. Just for good measure, mount /dev and /proc there: sudo mount -o bind /dev /mnt/fedora/dev and sudo mount -o bind /proc /mnt/fedora/proc. I don't know if this is still needed but it won't hurt.
  4. chroot into it: sudo chroot /mnt/fedora. This will give you access to your Fedora install.
  5. Then, run /sbin/grub-install /dev/sdX.
14
  • Can you please elaborate. Sep 2, 2012 at 18:12
  • Which part do you want me to elaborate on?
    – Renan
    Sep 2, 2012 at 18:12
  • Please write the whole steps like (1,2,3...). If possible explain things in non technical terms. Sep 2, 2012 at 19:20
  • @CuriousApprentice edited the answer, try now.
    – Renan
    Sep 2, 2012 at 19:27
  • When Im trying to mount,(mount /dev/sda3 /mnt/fedora it says the path is invalid. Sep 2, 2012 at 19:34
0

I have solved this issue. What I did is :

  1. First I have copied the grub.cfg from my Ubuntu installation and replace that with Fedoras grub.cfg.
  2. After that I have changed some entries in grub.cfg, like I have replaced the UUID, Name of the initrd file and msdos9 to msdos3.
  3. After that rebooted and got access to Fedora.
  4. After that used Grub Customzer to re-write grub entries for fedora.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .