Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
thanksforfish
n00b
n00b


Joined: 24 Aug 2002
Posts: 29
Location: UK

PostPosted: Tue Sep 03, 2002 5:47 pm    Post subject: grub Reply with quote

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
View user's profile Send private message
BackSeat
Apprentice
Apprentice


Joined: 12 Apr 2002
Posts: 242
Location: Reading, UK

PostPosted: Tue Sep 03, 2002 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
thanksforfish
n00b
n00b


Joined: 24 Aug 2002
Posts: 29
Location: UK

PostPosted: Tue Sep 03, 2002 6:13 pm    Post subject: Reply with quote

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 :roll:

Thanks.
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Tue Sep 03, 2002 9:56 pm    Post subject: Reply with quote

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 :roll:

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
View user's profile Send private message
Mr.Yucky
n00b
n00b


Joined: 25 Aug 2002
Posts: 10

PostPosted: Wed Sep 04, 2002 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message
thanksforfish
n00b
n00b


Joined: 24 Aug 2002
Posts: 29
Location: UK

PostPosted: Wed Sep 04, 2002 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Wed Sep 04, 2002 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Danielb
n00b
n00b


Joined: 07 Aug 2002
Posts: 16
Location: Madrid (Spain)

PostPosted: Wed Sep 04, 2002 7:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
thanksforfish
n00b
n00b


Joined: 24 Aug 2002
Posts: 29
Location: UK

PostPosted: Thu Sep 05, 2002 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message
water
Guru
Guru


Joined: 19 Jun 2002
Posts: 387
Location: Zierikzee, The Netherlands

PostPosted: Thu Sep 05, 2002 8:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Valen
Apprentice
Apprentice


Joined: 18 Aug 2002
Posts: 197
Location: Toronto, Ontario, Canada

PostPosted: Fri Sep 06, 2002 2:48 am    Post subject: Re: grub Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum