LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 06-11-2004, 04:33 AM   #1
inline.skater
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake Linux 10.0
Posts: 13

Rep: Reputation: 0
GRUB Bootloader Trouble


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.
 
Old 06-11-2004, 04:49 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Tell us which partitions Mandrake and Gentoo are on.
 
Old 06-11-2004, 05:05 AM   #3
skate
Member
 
Registered: Aug 2003
Location: Bulgaria
Distribution: OpenSuse 10.3, Debian 4.0r3 "Etch", FreeBSD 7.1, Ubuntu
Posts: 210

Rep: Reputation: 30
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 ~~~
 
Old 06-11-2004, 09:59 AM   #4
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
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!)
 
Old 06-13-2004, 01:34 AM   #5
inline.skater
LQ Newbie
 
Registered: Jun 2004
Distribution: Mandrake Linux 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
DISCUSSION: HOWTO GRUB BOOTLOADER AND TROUBLE-SHOOTER aus9 LinuxAnswers Discussion 3 03-02-2005 02:37 AM
GRUB bootloader spits out "GRUB hard disk error" Crampedson Linux - Software 2 01-26-2005 06:34 PM
Trouble getting Syslinux to install a bootloader swipple Linux - Software 3 01-13-2005 07:33 PM
GRUB bootloader dbaker Linux - Software 1 06-11-2003 05:52 PM


All times are GMT -5. The time now is 01:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration