Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub-install problems
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
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Tue Sep 21, 2004 5:40 pm    Post subject: grub-install problems Reply with quote

I have some problems with grub

I have emerged grub-static, because i have an amd64. According to the amd64 installation manual i should use grub-install --root_directory=/boot /dev/hda for installation. I do not have a special partitoin for boot so I use grub-instal /dev/hda. But this doesn't work. I get:
Code:
Could not find device for /boot: Not found or not a block device

I tried to install grub with the normal grub shell (root (hd0,1); setup (hd0); quit)
that worked so far. But now grub freezes at bootup.
Code:
"GRUB loading stage 1.5."
"GRUB loading, please wait..."

I have checked the grub error collection but none of the 2 solutions worked for me.
_________________
shift HAPPENS
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Tue Sep 21, 2004 10:49 pm    Post subject: Reply with quote

Post your /boot/grub/grub.conf file please.
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Wed Sep 22, 2004 5:10 am    Post subject: Reply with quote

Code:
default 0
timeout 5
#splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title=Gentoo Linux - Kernel 2.6.8-r4
root (hd0,1)
kernel (hd0,1)/boot/linux-2.6.8-r4 root=/dev/hda2

title=Windows XP
rootnoverify (hd0,2)
makeactive
chainloader +1

_________________
shift HAPPENS
Back to top
View user's profile Send private message
freelight
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 295
Location: NYC, NY, USA

PostPosted: Wed Sep 22, 2004 6:14 am    Post subject: Reply with quote

You have Gentoo on (hd0,1) and Windows on (hd0,2). What is on (hd0,0)? (Note that (hd0,0) is /dev/hda1.)
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Wed Sep 22, 2004 10:08 am    Post subject: Reply with quote

/dev/hda1 is the swapspace
_________________
shift HAPPENS
Back to top
View user's profile Send private message
LordPov
n00b
n00b


Joined: 23 May 2004
Posts: 18
Location: Sydney, Australia

PostPosted: Thu Sep 23, 2004 2:56 am    Post subject: Reply with quote

We had the same problem at my work.
We ended up fixing it by creating a seperate partition for /boot at the end of the drive.
Once this was setup, grub-install ran without complaint and our system booted nicely =)
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Sat Sep 25, 2004 10:13 am    Post subject: Reply with quote

I did the same.. it workd now, besides that i get no menu for grub but the grubshell
grub.conf looks like this
Code:
default 0
timeout 10

title=Gentoo Linux 2.6.8-4
root=(hd0,1)
kernel=(hd0,1)/linux-2.6.8-r4 root=/dev/hda3 vga=791
initrd=/boot/initrd-1024x768

title=Windows XP
rootnoverify (hd0,3)
makeactive
chainloader +1

_________________
shift HAPPENS
Back to top
View user's profile Send private message
_nightw0lf
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2004
Posts: 98
Location: /Israel/home

PostPosted: Sat Sep 25, 2004 11:55 am    Post subject: Reply with quote

I think that to have the grub menu , you should add in the grub config
that :
Code:
splashimage=(hd0,1)/boot/grub/splash.xpm.gz


Correct me if I'm wrong.
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Sat Sep 25, 2004 12:04 pm    Post subject: Reply with quote

well, i thinks that is just for the background menu splash image, because i have this line commented out on my other PC and the menu works just fine there
_________________
shift HAPPENS
Back to top
View user's profile Send private message
LordPov
n00b
n00b


Joined: 23 May 2004
Posts: 18
Location: Sydney, Australia

PostPosted: Mon Sep 27, 2004 5:45 am    Post subject: Reply with quote

Hang on, is your new /boot partition hda4?
That should mean that splashimage should be:
Code:
splashimage=(hd0,3)/grub/splash.xpm.gz


By default, it looks for /grub/splash.xpm.gz or /boot/grub/splash.xpm.gz in the partition defined as root (in your case: (hd0,1)).
Since root doesn't hold the file anymore, we need to tell grub where to look.

Hope this helps.
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Mon Sep 27, 2004 1:08 pm    Post subject: Reply with quote

My /boot partiton is /dev/hda2

When I use the command "configfile (hd0,1)/grub/grub.conf" in the grub shell I get the menu... but i don't always want to type this
_________________
shift HAPPENS
Back to top
View user's profile Send private message
tedwardut
n00b
n00b


Joined: 27 Sep 2004
Posts: 3

PostPosted: Mon Sep 27, 2004 4:21 pm    Post subject: Reply with quote

I am having the exact same problem. I can bring the boot menu by manually directing grub where to look, but just loads the grub command prompt when booting.

Ted
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