Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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'm currently using Mandrake 10.0 Offical Edition and have though about booting with multiple operating systems (Win98, Mandrake 10, and Gentoo). I read something about being able to edit the GRUB menu list and add OS's to boot there. First though, you have to change GRUB to your default bootloader. I did this just to check out GRUB, and I thought it was graphical like LILO, but I found out it wasn't. Now I'm stuck, because I don't know how to boot Mandrake. Right now I'm using Knopphix STD to try and find a solution to my problem. Does anybody know what I would put for 'kernel', 'initrd', 'root', and such? I just need to know it for the default Mandrake partition. Thanks for any help.
Your partitions must be primary NOT logical to boot from them..and the partition where is the linux installed must be ACTIVE...you can do all theese things with Partition Magic v.8.0 ~~~
So did you make a boot disk that contains grub? Or did you install grub to the MBR of the disk that bios boots from? Grub is actually very easy to use. You need to know your disk partition tables and where the OS you want to boot are installed. When you start the computer, I am assuming that you are not getting a the list that says which system you want to boot on your computer. You are getting a grub> prompt though, right? Well then define your root by entering root(hd0,0) where you can change 0 and 0 to represent different partitions on different drives. Grub counts from zero so your first hd, which is normally hda, is actually 0. Partitions are also counted from zero.
Ex: First partition second hard disk:
grub>root(hd1,0) (the second hard disk is 1 and the first partition is 0 ... now if your system is on an extended partition, those automatically count from 4, I think, regardless of how many primary partitions you have.)
Now that root is defined, enter the kernel you want to use. Usually your kernel is located in /boot/ so type in
grub>kernel /boot/vmlinuz ro root=/dev/hdb1 where vmlinuz is the kernel you want to use, ro is read only and root defines your root partition, which will match your first entry always (I think). Now Grub is COOL because it will let you see what your options are concerning kernels. That is type kernel /boot/ and then hit tab and it should give you a list of the stuff in /boot/ ! Actually hitting tab is helpful for figuring out root too. Try it and youll see.
Rocks, eh?
Finally enter
grub>boot
And you are up and running. Then make sure to edit the grub menu which will probably be in /boot/grub/ or not...depends on your system I guess.
My system:
The file is called menu.lst
default=0
timeout=10
#splashimage=(hd0,1)/grub/splash.xpm.gz
color green/black light-green/black
title Linux
root (hd2,5)
kernel /boot/vmlinuz-2.6.3 ro root=/dev/hdf6
title Windows 2000
rootnoverify (hd0,0)
makeactive
chainloader +1
Note: You can use the Windows entries above to boot windows if you want too. Just enter grub>boot after entering the three commands above (separately!)
Finally, if you dont understand the naming system for your hd's, you should just try different root entries at first until you find the correct one for grub to work. It shouldnt do anything harmful (just a guess though!)
Thanks so much Kroenecker, your post was extremely informative on GRUB. I got frustrated with not being able to figure out GRUB, so I just popped in the Mandrake Install disk and deleted the Mandrake partitions and re-installed Mandrake. Thanks again for the help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.