View previous topic :: View next topic |
Author |
Message |
thanksforfish n00b
Joined: 24 Aug 2002 Posts: 29 Location: UK
|
Posted: Tue Sep 03, 2002 5:47 pm Post subject: grub |
|
|
Hi - I have installed gentoo but can't boot properly. Grub loads, then comes up with a grub prompt. I can type kernel (hd0,6)/boot/bzImage then type boot and gentoo boots all right. My menu.lst is configured :
title=Gentoo Linux
root (hd0,6)
kernel /boot/bzImage root=/dev/hda9
Am I doing something obvious wrong ? Grub is installed to the mbr.
Thanks. |
|
Back to top |
|
|
BackSeat Apprentice
Joined: 12 Apr 2002 Posts: 242 Location: Reading, UK
|
Posted: Tue Sep 03, 2002 5:59 pm Post subject: |
|
|
If (hd0,6)/boot/bzimage boots your system then your menu.lst is incorrect. Try:
Code: | title=Gentoo Linux
root (hd0,8)
kernel /boot/bzImage root=/dev/hda7 |
BS |
|
Back to top |
|
|
thanksforfish n00b
Joined: 24 Aug 2002 Posts: 29 Location: UK
|
Posted: Tue Sep 03, 2002 6:13 pm Post subject: |
|
|
Hi - thanks for the reply.
I thought root in grub terminology meant the /boot partition which in my case is hda7 hence I used (hd0,6) - this would seem consistent with (hd0,6)/boot/bzimage being able to boot the kernel from the grub prompt. i thought the root= on the kernel line was just an argument to tell the kernel where "/" was.
Or have I completely misunderstood
Thanks. |
|
Back to top |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Tue Sep 03, 2002 9:56 pm Post subject: |
|
|
thanksforfish wrote: | Hi - thanks for the reply.
I thought root in grub terminology meant the /boot partition which in my case is hda7 hence I used (hd0,6) - this would seem consistent with (hd0,6)/boot/bzimage being able to boot the kernel from the grub prompt. i thought the root= on the kernel line was just an argument to tell the kernel where "/" was.
Or have I completely misunderstood
Thanks. |
No, you were right.. if your boot partition is hda7, then it'll be hd0,6 to grub. (start counting from 0, like you thought) can you post your entire menu.lst so we can see it?
thanx. |
|
Back to top |
|
|
Mr.Yucky n00b
Joined: 25 Aug 2002 Posts: 10
|
Posted: Wed Sep 04, 2002 7:16 am Post subject: |
|
|
I recently had fun with grub, 2 suggestions:
first make sure that u run the grub "root" command to the rite partitions, and second make sure that after you compiled your kernel that you copied it to the rite location..... |
|
Back to top |
|
|
thanksforfish n00b
Joined: 24 Aug 2002 Posts: 29 Location: UK
|
Posted: Wed Sep 04, 2002 7:07 pm Post subject: |
|
|
Hi, here is my full menu.lst (/boot is on hda7 and / is on hda 9, swap is on hda8, windows 98 is on primary partition hda1, d and e are on hda5 and hda6)
default 0
timeout 10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,6)
kernel /boot/bzImage root=/dev/hda9
title=Windows 98
root (hd0,0)
chainloader +1
title=Gentoo Linux Safe Image
root (hd0,6)
kernel /boot/bzImage.safe root=/dev/hda9
Is it possible that the boot partition needs to be below 1024 or doesnt that problem exist anymore. I can't understand why grub won't boot with this menu.lst but will boot when i give it the kernel command and boot command.
Are there any other files that grub uses that i need to have configured ?
I also read somewhere that devfs should be switched on but not have the mount option set in the kernel - in my kernel it is switched on and has mount set could this be the cause ?
(I have also tried lilo but that fails with a kernel init panic).
Thanks for any help. |
|
Back to top |
|
|
kirill Apprentice
Joined: 01 Aug 2002 Posts: 183 Location: Finland
|
Posted: Wed Sep 04, 2002 7:14 pm Post subject: |
|
|
thanksforfish wrote: | Hi, here is my full menu.lst (/boot is on hda7 and / is on hda 9, swap is on hda8, windows 98 is on primary partition hda1, d and e are on hda5 and hda6)
default 0
timeout 10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,6)
kernel /boot/bzImage root=/dev/hda9
title=Windows 98
root (hd0,0)
chainloader +1
title=Gentoo Linux Safe Image
root (hd0,6)
kernel /boot/bzImage.safe root=/dev/hda9
Is it possible that the boot partition needs to be below 1024 or doesnt that problem exist anymore. I can't understand why grub won't boot with this menu.lst but will boot when i give it the kernel command and boot command.
Are there any other files that grub uses that i need to have configured ?
I also read somewhere that devfs should be switched on but not have the mount option set in the kernel - in my kernel it is switched on and has mount set could this be the cause ?
(I have also tried lilo but that fails with a kernel init panic).
Thanks for any help. |
Hi
Everything in your setup looks right, the only problem seems to be that grubs menu doesn't come up? did you make sure that you mount /boot before editing your menu?
Also, the latest grub (0.91/92?) uses /boot/grub/grub.conf as its config file. Maby you unmasked the latest grub and now it reads the wrong file? _________________ --kirill |
|
Back to top |
|
|
Danielb n00b
Joined: 07 Aug 2002 Posts: 16 Location: Madrid (Spain)
|
Posted: Wed Sep 04, 2002 7:53 pm Post subject: |
|
|
I have had troubles with grub lately (it hung when trying to display the menu), and i fixed it changing the background image (strange but true). |
|
Back to top |
|
|
thanksforfish n00b
Joined: 24 Aug 2002 Posts: 29 Location: UK
|
Posted: Thu Sep 05, 2002 7:26 am Post subject: |
|
|
Hi - again thanks for the replies - I did mount /boot as this is the only way I could access menu.lst to edit it. Also I have not unmasked anything, only installed in the way described in the guide (presumably this will not install the new grub). Is grub happy to boot from a partition above 1024 or does this depend on bios ? I am at a bit of a loss as to how to get this to work. Does anyone have any more ideas ?
Thanks. |
|
Back to top |
|
|
water Guru
Joined: 19 Jun 2002 Posts: 387 Location: Zierikzee, The Netherlands
|
Posted: Thu Sep 05, 2002 8:05 am Post subject: |
|
|
That problem with cilinder 1024 only exists with old versions of LiLo.
Maybe installing grub into the MBR again might help. _________________ Groeten uit Holland |
|
Back to top |
|
|
Valen Apprentice
Joined: 18 Aug 2002 Posts: 197 Location: Toronto, Ontario, Canada
|
Posted: Fri Sep 06, 2002 2:48 am Post subject: Re: grub |
|
|
thanksforfish wrote: | Hi - I have installed gentoo but can't boot properly. Grub loads, then comes up with a grub prompt. I can type kernel (hd0,6)/boot/bzImage then type boot and gentoo boots all right. My menu.lst is configured :
title=Gentoo Linux
root (hd0,6)
kernel /boot/bzImage root=/dev/hda9
Am I doing something obvious wrong ? Grub is installed to the mbr.
Thanks. |
??
Don't you need that (hd0,6) in the menu.lst kernel line?
Also, what happens if you try to comment out the splashimage line in your menu.lst? |
|
Back to top |
|
|
|