UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 -
grub> find /boot/grub/stage1
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.
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
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.