Topic: [SOLVED] how to reinstall bootloader?

Next to my Statler and Ubuntu I installed Fedora because of a Debian-bug that messes up one program I need.
Now I only see Fedora booting and no #! or Ubuntu to choose.

How can I reinstall the #! bootloader?
Is there a way using the live CD maybe?

Last edited by catch22 (2010-11-22 00:14:31)

#!+mocp=music in my ears

Re: [SOLVED] how to reinstall bootloader?

Try:

sudo update-grub
Dan

Re: [SOLVED] how to reinstall bootloader?

DB_Cooper wrote:

Try:

sudo update-grub

I had already tried that. After inserting the live cd

sudo update-grub

gave:

bash: update-grub: command not found
#!+mocp=music in my ears

Re: [SOLVED] how to reinstall bootloader?

http://members.iinet.net/~herman546/p20 … mands.html
On how to chroot and how to fix your GRUB.

Re: [SOLVED] how to reinstall bootloader?

You'll need to install update-grub from the Fedora repos.

sudo yum install update-grub


I think

then

sudo update-grub
Dan

Re: [SOLVED] how to reinstall bootloader?

Crunch3R wrote:

http://members.iinet.net/~herman546/p20 … mands.html
On how to chroot and how to fix your GRUB.

That didn't do it. Just to be sure I tried the correct way - I inserted Ubuntu live cd and clicked on the "crunchbang" icon in "places". Then in terminal:

ubuntu@ubuntu:~$ ls /media
crunchbang
ubuntu@ubuntu:~$ sudo mount -o bind /proc /media/crunchbang/proc
ubuntu@ubuntu:~$ sudo mount -o bind /dev /media/crunchbang/dev
ubuntu@ubuntu:~$ sudo mount -o bind /dev/pts /media/crunchbang/dev/pts
ubuntu@ubuntu:~$ sudo mount -o bind /sys /media/crunchbang/sys
ubuntu@ubuntu:~$ sudo cp /etc/resolv.conf /media/crunchbang/etc/resolv.conf
ubuntu@ubuntu:~$ sudo chroot /media/crunchbang /bin/bash
root@ubuntu:/# sudo update-grub
sudo: unable to resolve host ubuntu
Generating grub.cfg ...
Found background image: grub-splash-crunchbang.png
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found Ubuntu 10.10 (10.10) on /dev/sda6
Found Fedora release 14 (Laughlin) on /dev/sda7
done
root@ubuntu:/# exit
exit
ubuntu@ubuntu:~$ sudo umount /media/crunchbang/sys
ubuntu@ubuntu:~$ sudo umount /media/crunchbang/dev/pts
ubuntu@ubuntu:~$ sudo umount /media/crunchbang/dev
ubuntu@ubuntu:~$ sudo umount /media/crunchbang/proc

Rebooted and again saw only Fedora at start up - no Crunchbang nor Ubuntu.

#!+mocp=music in my ears

Re: [SOLVED] how to reinstall bootloader?

DB_Cooper wrote:

You'll need to install update-grub from the Fedora repos.

sudo yum install update-grub


I think

then

sudo update-grub
[ludo@d54C6E5DA ~]$ sudo yum install update-grub
[sudo] password for ludo: 
ludo is not in the sudoers file.  This incident will be reported.
[ludo@d54C6E5DA ~]$ su -
Wachtwoord: 
[root@d54C6E5DA ~]# sudo yum install update-grub
Loaded plugins: langpacks, presto, refresh-packagekit
Adding nl_BE to language list
Setting up Install Process
No package update-grub available.
Error: Nothing to do
[root@d54C6E5DA ~]# sudo update-grub
sudo: update-grub: command not found

neutral
EDIT: on the Fedora forum I was told:
There is no update-grub command for Fedora unless you've installed grub2 for Fedora. That is not recommended since it's still in the experimental stages.

The only way, as far as I know, to boot a system that uses grub2 (Ubuntu) from a system that uses grub legacy (Fedora) is to chainload it, and that will only work if grub2 was originally installed to the boot partition of the Ubuntu system. This is my understanding so of course I could be dead wrong.

Now, find out how to reinstall Crunch's (assuming grub2) or Ubuntu's boot loader. Once that's done you will probably start to be able to boot all three OS's.

Last edited by catch22 (2010-11-21 22:27:07)

#!+mocp=music in my ears

Re: [SOLVED] how to reinstall bootloader?

In a moment of despair I installed the statler live cd once more and bravely chose "text rescue".
Panic hit me when I realised there was no way back, but to make a long story short, I came upon an entry that had "reinstall bootloader" as an option. I went for it, eyes closed, and low and behold... I now have the 3 OS's in Grub :-)

#!+mocp=music in my ears

Re: [SOLVED] how to reinstall bootloader?

About booting distros that use Grub and Grub2:
http://forums.fedoraforum.org/showthread.php?t=166818

#Linux user 482038, eeepc 1000H and 901