UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install grub on my laptop running Ubuntu. I have installed Mandriva (with / mounted on /dev/sda7), Slackware (with / on /dev/sda13) and Ubuntu (with / on /dev/sda10). I had modified grub on /dev/sda7 to make booting into the three distros along with Windoze.
The question is I want to use the grub from Ubuntu for booting. Sowhile in Ubuntu, as root I issued the command grub and at the grub prompt, I issued the following commands -
Quote:
grub> find /boot/grub/stage1
(hd0,6)
(hd0,12)
so it is evident that it is not finding stage1 in /boot/grub in the root partition of Ubuntu. I tried update-grub, which created menu.lst at /boot/grub/. However grub still fails to find stage1 in Ubuntu. Any idea where I am going wrong?
Are all the other Grub files in the /boot/grub partition? Is the kernel file in the boot directory? If you are booting from Mandriva, there is no need for any of the stage files in Ubuntu but you would need the kernel.
You're missing a number of files. Not sure what selection you made for bootloader during Ubuntu installation but the stage1, stage2 and stage1.5 files as well as device.map are not there. If you boot from Mandriva, they're not necessary but, if you want to boot from Ubuntu, they are.
If you have your Ubuntu Live CD or installation CD, you could load it and create a mount point for your Ubuntu installation and copy the grub files to the Ubuntu /boot/grub directory and then run the grub install commands. If you don't know how to do this, post back and you should get some help.
A small problem though. I have a live CD of ubuntu 9.04, but I have upgraded to Karmic Koala beta online. Can I use the 9.04 live cd to copy the grub files?
See this tutorial from the ubuntu wiki about grub2: https://wiki.ubuntu.com/Grub2
It describes how to fully upgrade from grub legacy in 9.04 to grub2 in 9.10. Once you are fully upgraded to grub2 you should be able to just run sudo update-grub to add all your operating systems to grub2's
/boot/grub/grub.cfg file.
If any of you operating systems are not detected after updating grub, create a custom entry in /etc/grub.d as is discussed under "User-defined Entries" in that tutorial. The run "sudo update-grub" again.
I had to add a custom entry to boot my Slackware64 partition. The advice from that tutorial worked perfectly.
I did a clean install of Karmic though, so I did not have to upgrade from grub legacy to grub2.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.