View previous topic :: View next topic |
Author |
Message |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Mon Nov 01, 2004 1:50 pm Post subject: Grub and AMD64 hangs |
|
|
Hi all!
I'm trying to install Gentoo 2004.2 (using the LiveCD) but I can't really manage to boot the installed system. I tried all the suggestions I found in other threads (compile grub with CFLAGS="", ...) but nothing worked. It just hangs here:
Code: |
GRUB loading stage1.5
GRUB loading, please wait...
|
My boot partition is /dev/hde1, while root is /dev/hde3 (it's a SATA disk).
Here's my menu.lst:
Code: |
timeout 30
default 0
title Gentoo Linux 2.6.9
root (hd0,0)
kernel /kernel-2.6.9-gentoo-r1 root=/dev/hde3
|
This is my device.map:
I installed GRUB from its console (however, I also tried grub-install and nothing changed), with:
Code: |
grub> root (hd0, 0)
filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Cheching is /boot/grub/stage1 exists... yes
Cheching is /boot/grub/stage1 exists... yes
Cheching is /boot/grub/e2fs_stage1_5 exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 22 sectors are embedded.
succeeded.
Running "install /boot/grub/stage1 (hd0) (hd0)1+22 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded.
Done.
|
So, it seems to work fine but the it doesn't at all. Where might the problem be?
Thanks, Michele. |
|
Back to top |
|
 |
j-m Retired Dev

Joined: 31 Oct 2004 Posts: 975
|
Posted: Mon Nov 01, 2004 1:57 pm Post subject: |
|
|
But you need grub-static, do you have it? |
|
Back to top |
|
 |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Mon Nov 01, 2004 4:05 pm Post subject: |
|
|
Hi!
I tried with both: grub-static (0.93) and grub (0.94, complied with the multilib-enabled gcc I emerged). They just give the same exact problem...
By the way, the boot partition in is ext2 filesystem.
Thanks, Michele. |
|
Back to top |
|
 |
j-m Retired Dev

Joined: 31 Oct 2004 Posts: 975
|
Posted: Mon Nov 01, 2004 4:13 pm Post subject: |
|
|
LordArthas wrote: | Hi!
I tried with both: grub-static (0.93) and grub (0.94, complied with the multilib-enabled gcc I emerged). They just give the same exact problem...
By the way, the boot partition in is ext2 filesystem.
Thanks, Michele. |
OK, I don´t know. Maybe you should file a bug. Also a have a look at https://bugs.gentoo.org/show_bug.cgi?id=66573 - does this describe your problems with grub-static  |
|
Back to top |
|
 |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Mon Nov 01, 2004 4:19 pm Post subject: |
|
|
Hi!
It seems his situation is a little better than mine: at least he manages to get to the shell, while my system freezes before (at GRUB loading, please wait...). I'll wait to see if some other suggestions come, otherwise I'll try and fill in a bug report.
Too bad my first Gentoo experience is so troubled.
Michele. |
|
Back to top |
|
 |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Mon Nov 01, 2004 5:47 pm Post subject: |
|
|
Hi!
I finally managed to boot Gentoo by copying the lilo binary from my Athlon XP 32bit. That worked just fine. The only problem was that the new kernel (2.6.9) sees my SATA disc as /dev/sda, while the Gentoo LiveCD (2.6.7) was seeing it as /dev/hde, so I had to edit /etc/fstab.
Now that my system is up, I'll try to set Grub up with a more calm.
Michele. |
|
Back to top |
|
 |
j-m Retired Dev

Joined: 31 Oct 2004 Posts: 975
|
Posted: Mon Nov 01, 2004 6:08 pm Post subject: |
|
|
LordArthas wrote: | Hi!
I finally managed to boot Gentoo by copying the lilo binary from my Athlon XP 32bit. That worked just fine. The only problem was that the new kernel (2.6.9) sees my SATA disc as /dev/sda, while the Gentoo LiveCD (2.6.7) was seeing it as /dev/hde, so I had to edit /etc/fstab.
Now that my system is up, I'll try to set Grub up with a more calm.
Michele. |
LILO works for you with AMD64?  |
|
Back to top |
|
 |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Mon Nov 01, 2004 6:34 pm Post subject: |
|
|
Hi!
j-m wrote: | LILO works for you with AMD64?  |
Yep, no problem. However, since it's masked, I guess it won't compile on a 64bit environment. If you grab the 32 bit binary from somewhere it works just fine. Mine is here if someone needs it.
Michele. |
|
Back to top |
|
 |
j-m Retired Dev

Joined: 31 Oct 2004 Posts: 975
|
Posted: Mon Nov 01, 2004 6:44 pm Post subject: |
|
|
LordArthas wrote: | Hi!
j-m wrote: | LILO works for you with AMD64?  |
Yep, no problem. However, since it's masked, I guess it won't compile on a 64bit environment.
Michele. |
Could you please try? Just curious...  |
|
Back to top |
|
 |
ap viper Tux's lil' helper


Joined: 14 Feb 2004 Posts: 95
|
Posted: Mon Nov 22, 2004 8:54 pm Post subject: |
|
|
*is amazed*
The same thing has worked for me! Grub froze on me as well, but thanks to your binary, I have a bootable system. Thanks a million!  _________________ why the heck are you reading this? |
|
Back to top |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Mon Nov 22, 2004 11:36 pm Post subject: |
|
|
Moved from Installing Gentoo. |
|
Back to top |
|
 |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Tue Nov 23, 2004 9:47 am Post subject: |
|
|
ap viper wrote: | *is amazed*
The same thing has worked for me! Grub froze on me as well, but thanks to your binary, I have a bootable system. Thanks a million!  |
You're welcome.
Probably it would be a good idea to tweak LILO ebuild in order to be unmasked under AMD64 and build it in 32 bit (which should work). However, I currently don't know how to compile 32 bit binaries on AMD64 (even though my GCC with multilib is able to), I'll dig into this when I've got some time.
Michele. |
|
Back to top |
|
 |
nitroburn n00b


Joined: 26 Jan 2004 Posts: 32
|
Posted: Wed Dec 01, 2004 2:15 pm Post subject: |
|
|
I am the person that filed the bug report...I think it is portage's grub-static is messed up...What I did, was use an ubuntu linux for amd64 and installed it and now have a working grub. Then I just reformated those partitions and installed gentoo on top. I have had grub stop at the loading screen like you said. I think whomever made the grub-static for portage made a mistake and grub also has problems. |
|
Back to top |
|
 |
jean-michel Tux's lil' helper


Joined: 30 May 2002 Posts: 142 Location: Somewhere East of the Atlantic
|
Posted: Wed Dec 01, 2004 2:41 pm Post subject: Something is definitely amiss |
|
|
Something is definitely wrong with the current grub-static and Gentoo AMD64 release. I was able to get a system suffering EXACTLY the same frozen grub issues booting again by using an alternative 64bit build on an older set of partitions on the same box. Grub-static is either incompatible with some newer libraries (which shouldn't be the case if it is truly STATIC), or else a newer release of static is borked.
In any event, I've resorted to copying around old grub files.
Someone really needs to fix this. I posted a comment to the bug referenced above, but I don't have the authority to reopen the bug, which has been marked resolved. It is anything but resolved. _________________ The Struggle for the Future of Human Evolution Begins: Autonomy the SciFi Series! |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Wed Dec 01, 2004 6:36 pm Post subject: |
|
|
What's the difference between grub and grub-static?
I've installed GRUB and I have a RAID-1 (mirror), I installed GRUB on sd0 and sd1 and it boots fine (albeit after a long waiting time, I noticed). _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
jean-michel Tux's lil' helper


Joined: 30 May 2002 Posts: 142 Location: Somewhere East of the Atlantic
|
Posted: Thu Dec 30, 2004 7:29 pm Post subject: |
|
|
Whatever was broken has fixed itself.
I did a new install from scratch, and whatever was b0rked before has been fixed ... for now, at least!  _________________ The Struggle for the Future of Human Evolution Begins: Autonomy the SciFi Series! |
|
Back to top |
|
 |
racoontje Veteran

Joined: 19 Jul 2004 Posts: 1290
|
Posted: Thu Dec 30, 2004 7:43 pm Post subject: |
|
|
What motherboard is this? I'm seeing similar behaviour on my nForce4. |
|
Back to top |
|
 |
viddy n00b

Joined: 27 Oct 2004 Posts: 2
|
Posted: Tue Jan 04, 2005 2:15 am Post subject: |
|
|
I was having this exact problem - could not find a way to solve it.
The LILO binary worked like a charm
(Grub has never liked my S-ATA disks. It refuses to work with them.) |
|
Back to top |
|
 |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Tue Jan 04, 2005 8:03 am Post subject: |
|
|
Hi all!
I just installed Gentoo on a machine similar to the one on which GRUB does not work (it has SATA disks, but it's a 32 bit AMD Athlon system instead of 64). No problem at all, but on my AMD 64 GRUB always refused to work. However, I still have to try a newer version of GRUB: I'll do that when I've got some time to mess my system up, and I'll report here.
Michele. |
|
Back to top |
|
 |
Sir Alaran Apprentice


Joined: 11 Dec 2003 Posts: 182 Location: KSJC
|
Posted: Fri Jan 07, 2005 8:52 am Post subject: |
|
|
I had similar problems with grub freezing. It would show the menu and then hardlock the system. (Even the Caps Lock LED stopped responding) It only went away when I disabled "legacy usb" support in the bios. No idea why that would work... My system seems to be pretty picky. MSI K8T Neo2 motherboard here. _________________ D is awesome.
Textadept is my friend. |
|
Back to top |
|
 |
Anon5710 Apprentice


Joined: 23 Jul 2004 Posts: 232 Location: Belgium
|
Posted: Thu Jan 20, 2005 4:31 pm Post subject: |
|
|
LordArthas wrote: | Hi!
Yep, no problem. However, since it's masked, I guess it won't compile on a 64bit environment. If you grab the 32 bit binary from somewhere it works just fine. Mine is here if someone needs it.
Michele. |
HOw do i use this binary ? I don't know how to install lilo |
|
Back to top |
|
 |
LordArthas Guru


Joined: 01 Nov 2004 Posts: 500 Location: Maniago, Friûl, Italia
|
Posted: Thu Jan 20, 2005 5:17 pm Post subject: |
|
|
Hi!
Quote: |
HOw do i use this binary ? I don't know how to install lilo |
[/quote]
You need to create a /etc/lilo.conf file. Take a look at the lilo documentation to see the various options this file has.
Michele. |
|
Back to top |
|
 |
Anon5710 Apprentice


Joined: 23 Jul 2004 Posts: 232 Location: Belgium
|
Posted: Thu Jan 20, 2005 5:19 pm Post subject: |
|
|
that i do know .. but where do i need to put that binary in ?
And do i have to do an emerge lilo-bin than or something like that ? |
|
Back to top |
|
 |
|