Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Booting Issues...
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
Raccroc
n00b
n00b


Joined: 08 Sep 2002
Posts: 46
Location: Austin

PostPosted: Thu May 08, 2003 5:38 am    Post subject: Grub Booting Issues... Reply with quote

I know I've seen this before, but I cannot seem to find the solution this time 'round.

I've just setup a new install of Gentoo on a VA Linux Fullon 2240. It's a two hard drives installed using a built in Adaptec 7896.

/boot = /dev/sda1
/ = /dev/sda2
(other partitions not important)

Installed grub, ran grub, and created grub.conf w/o issue (no errors). Upon rebooting, I get to a nice blue screen provied by splash.xpm.gz.
Only instead of offering me my boot choice, I end up with "grub>" prompt.

Manually typing
Code:
root (hd0,0)
kernel (hd0,0)/boot/linux-2.4.20-r2 root=/dev/sda2
boot

...boots the system just fine.

I have checked my grub.conf several times over, tried re-running the install steps for grub, tried changing to/from MBA, and even tried upgrading to version 0.93.20030118. No good.

Recap...it seems to be seeing the boot sector and grub.conf (or I wouldn't be getting the grub splash prompt). My grub.conf syntax seems ok, I've manually entered both boot lines exactly and the grub prompt and it boots fine. Not sure what else to try...though I know I've done it before.


Last edited by Raccroc on Thu May 08, 2003 9:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Bio
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 197
Location: Geneva which should be in Switzerland...

PostPosted: Thu May 08, 2003 8:47 am    Post subject: Reply with quote

Can you copy your grub.conf file below? Obviously Grub can access your HDD since it displays your splash image.

Did you try :

Code:
kernel (hd0,0)/linux-2.4.20-r3 root=/dev/sda2


The command line you wrote will look for your kernel in /boot/boot if i'm not mistaken
Back to top
View user's profile Send private message
Raccroc
n00b
n00b


Joined: 08 Sep 2002
Posts: 46
Location: Austin

PostPosted: Thu May 08, 2003 9:02 am    Post subject: Reply with quote

Actually either method will work and I tried both ways.

Here is my grub.conf...
Code:
# cat /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

tile=Linux Kernel Version 2.4.20-r2
root (hd0,0)
kernel /boot/linux-2.4.20-r2 root=/dev/sda2

...originally...
Code:
kernel (hd0,0)/boot/linux-2.4.20-r2 root=/dev/sda2
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Thu May 08, 2003 9:59 am    Post subject: Reply with quote

Is there any chance that when you were installing grub, you typed this?
Code:
setup (hd0,0)


I made this mistake. This will install grub onto the boot sector of the boot partition, where what I think you want is to install grub onto the MBR of your hard drive.

Try this from within grub:
Code:
root (hd0,0)
setup (hd0)


This will put grub onto the MBR, so that it will get loaded at boot.
Back to top
View user's profile Send private message
Raccroc
n00b
n00b


Joined: 08 Sep 2002
Posts: 46
Location: Austin

PostPosted: Thu May 08, 2003 10:18 am    Post subject: Reply with quote

Perhaps, but I went back and tried it both ways in case. Besides, it should work from either the boot sector or the MBR and if it was a MBR error it shouldn't have got to Grub stage1.5.

After glancing at the texinfo for grub, I may have found something. I think I might have had to manually set the stage2 boot drive. It seems to sound familar...

Anyone know what switches/syntax "install" needs in the grub shell?
(either way I'll play with it this afternoon and report back)
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Thu May 08, 2003 10:43 am    Post subject: Reply with quote

Is this what you want?

install [--force-lba] [--stage2=os_stage2_file] stage1_file [d] dest_dev stage2_file [addr] [p] [config_file] [real_config_file]

Details are here.
Back to top
View user's profile Send private message
Raccroc
n00b
n00b


Joined: 08 Sep 2002
Posts: 46
Location: Austin

PostPosted: Thu May 08, 2003 11:06 am    Post subject: Reply with quote

Sorta...except that's a direct copy from the man page.

What I was asking is if anyone (who's preferably used it before) knows the exact switches/syntax would best be used by "install"? Trying to cut out a lot of rebooting cause I missed something, espically when I'm not 100 % sure this is the fix/best fix.
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