View previous topic :: View next topic |
Author |
Message |
Brain Fury Guru
Joined: 10 Jul 2003 Posts: 357 Location: Düsseldorf (Germany)
|
Posted: Tue Sep 21, 2004 5:40 pm Post subject: grub-install problems |
|
|
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 |
|
|
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
Posted: Tue Sep 21, 2004 10:49 pm Post subject: |
|
|
Post your /boot/grub/grub.conf file please. |
|
Back to top |
|
|
Brain Fury Guru
Joined: 10 Jul 2003 Posts: 357 Location: Düsseldorf (Germany)
|
Posted: Wed Sep 22, 2004 5:10 am Post subject: |
|
|
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 |
|
|
freelight Apprentice
Joined: 12 Jun 2004 Posts: 295 Location: NYC, NY, USA
|
Posted: Wed Sep 22, 2004 6:14 am Post subject: |
|
|
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 |
|
|
Brain Fury Guru
Joined: 10 Jul 2003 Posts: 357 Location: Düsseldorf (Germany)
|
Posted: Wed Sep 22, 2004 10:08 am Post subject: |
|
|
/dev/hda1 is the swapspace _________________ shift HAPPENS |
|
Back to top |
|
|
LordPov n00b
Joined: 23 May 2004 Posts: 18 Location: Sydney, Australia
|
Posted: Thu Sep 23, 2004 2:56 am Post subject: |
|
|
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 |
|
|
Brain Fury Guru
Joined: 10 Jul 2003 Posts: 357 Location: Düsseldorf (Germany)
|
Posted: Sat Sep 25, 2004 10:13 am Post subject: |
|
|
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 |
|
|
_nightw0lf Tux's lil' helper
Joined: 27 Aug 2004 Posts: 98 Location: /Israel/home
|
Posted: Sat Sep 25, 2004 11:55 am Post subject: |
|
|
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 |
|
|
Brain Fury Guru
Joined: 10 Jul 2003 Posts: 357 Location: Düsseldorf (Germany)
|
Posted: Sat Sep 25, 2004 12:04 pm Post subject: |
|
|
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 |
|
|
LordPov n00b
Joined: 23 May 2004 Posts: 18 Location: Sydney, Australia
|
Posted: Mon Sep 27, 2004 5:45 am Post subject: |
|
|
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 |
|
|
Brain Fury Guru
Joined: 10 Jul 2003 Posts: 357 Location: Düsseldorf (Germany)
|
Posted: Mon Sep 27, 2004 1:08 pm Post subject: |
|
|
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 |
|
|
tedwardut n00b
Joined: 27 Sep 2004 Posts: 3
|
Posted: Mon Sep 27, 2004 4:21 pm Post subject: |
|
|
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 |
|
|
|