I don't have access to the install media for Fedora right now. Can I restore boot loader for Fedora from Ubuntu 12?
2 Answers
You can try this:
- Boot your Ubuntu.
- 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 bea
(for the first hard drive installed in your system). - Just for good measure, mount
/dev
and/proc
there:sudo mount -o bind /dev /mnt/fedora/dev
andsudo mount -o bind /proc /mnt/fedora/proc
. I don't know if this is still needed but it won't hurt. chroot
into it:sudo chroot /mnt/fedora
. This will give you access to your Fedora install.- Then, run
/sbin/grub-install /dev/sdX
.
-
-
-
Please write the whole steps like (1,2,3...). If possible explain things in non technical terms. Sep 2, 2012 at 19:20
-
-
When Im trying to mount,(mount /dev/sda3 /mnt/fedora it says the path is invalid. Sep 2, 2012 at 19:34
I have solved this issue. What I did is :
- First I have copied the grub.cfg from my Ubuntu installation and replace that with Fedoras grub.cfg.
- 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.
- After that rebooted and got access to Fedora.
- After that used Grub Customzer to re-write grub entries for fedora.