View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Thu May 23, 2002 11:46 am Post subject: Grub, forgive me if is dupplicate |
|
|
Grub problem, please forgive me if is dupplicate but i did not find a msg like this while searching:
This is my HD map:
/dev/hda1 * - win32 ( C drive ), active partition
/dev/hda2 - /boot ( linux boot ), active partition
/dev/hda3 - swap ( linux swap )
/dev/hda4 - /root ( linux root )
This is my grub command line:
grub> root (hd0,1)
grub> setup (hd0)
grub> quit
This is my menu.lst:
default 0
timeout 30
title=Gentoo System
root (hd0,1)
kernel /boot/bzImage root=/dev/hda4
title=Windows
root (hd0,0)
chainloader +1
After boot I only got this on the screen and computer stops:
Booting 'Gentoo System'
root (hd0,1)
File system type is ext2fs, part. type 0x83
kernel /boot/bzImage root=/dev/hda4
Uncompresing Linux...OK, booting the Kernel.
AND THAT'S IT!
Computer stops...
Even i loaded computer with CD-install and compiled again...
Please any help? |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 1:05 pm Post subject: |
|
|
19 peoples saw this message and no one knows to solve the problem?
Best Regards |
|
Back to top |
|
|
stingray72 n00b
Joined: 08 May 2002 Posts: 40 Location: Atlanta, GA
|
Posted: Thu May 23, 2002 1:14 pm Post subject: |
|
|
I think where you have
it should read
because you root parition is /dev/hda4. That's the way I understand it from reading the brief GRUB how-to on the install instructions. |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 1:23 pm Post subject: |
|
|
Quote: | it should read
root (hd0,3)
|
You mean in menu.lst?
Menu.lest needs the REAL address of root part. |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 1:29 pm Post subject: |
|
|
<rant>
Quote: | That's the way I understand it from reading the brief GRUB how-to on the install instructions. |
which bit of: Quote: | Here's how the two commands work. The first root ( ) command tells GRUB the location of your boot partition (in our example, /dev/hda1 or (hd0,0) in GRUB terminology. |
from the install instructions isn't clear to you? I'm getting fed up of all the confusion this subject is causing. Yes it's bad terminology but it's clearly explained in the GRUB manual here: http://www.mcc.ac.uk/grub/grub_3.html#SEC9
</rant>
As to the original problem. Well it looks like there's something really wrong with the kernel you built. Just check it really exists at /boot/bzImage when you mount your boot partition there. If it does I would guess there's something really wrong with the kernel for it to hang there, like it's compiled for the wrong architecture or something. |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 1:36 pm Post subject: Arch |
|
|
This is a Compaq computer Pentium 4, 1.600 Mhz, 256 Ram
Let say that my kernel is configured wrong, what do i have to do to get the original configuration cuz file .config is already changed.
May i get a .config file from somebody?
ciufulitu@yahoo.com
Many thanks |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 1:42 pm Post subject: |
|
|
Quote: | May i get a .config file from somebody |
err where did you get the original from?
The .config file is tailored to the h/w inside your machine so unless your computers have exactly the same setup another persons .config is useless. |
|
Back to top |
|
|
jay l33t
Joined: 08 May 2002 Posts: 980
|
Posted: Thu May 23, 2002 1:44 pm Post subject: |
|
|
just recompile it!!!
start again with make menuconfig, change the selections and follow the instructions in the installing doc. _________________ Do you want your posessions identified? [ynq] (n) |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 1:53 pm Post subject: |
|
|
I did it 4 times
I get the same status all the time:
Quote: | Booting 'Gentoo System'
root (hd0,1)
File system type is ext2fs, part. type 0x83
kernel /boot/bzImage root=/dev/hda4
Uncompresing Linux...OK, booting the Kernel. |
Then computer stops[/quote] |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:02 pm Post subject: |
|
|
I just recreated your problem by compiling my kernel for a K-7 (my computer is a PIII) so check that Processor type and features *really* is set to the right option... |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 2:04 pm Post subject: |
|
|
I re-compiled for pentium3 and pentium4 and i got the same...
Last time i'll do it...if will not work...i don't know |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:08 pm Post subject: |
|
|
OK. Which kernel sources are you using? Also can you list your /etc/make.conf file here. |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 2:14 pm Post subject: |
|
|
gentoo-sources |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:25 pm Post subject: |
|
|
OK, you could try using the vanilla sources instead as they dont have the patches the gentoo ones have. But P4 is hardly uncommon so if these patches really break the kernel for P4s then I'm sure it would be posted on here. Just one other question - you are definitely mounting /dev/hda2 on /boot before you copy bzImage there? Some ppl have forgotten this step and wondered why the new kernels they compiled failed to work... |
|
Back to top |
|
|
stingray72 n00b
Joined: 08 May 2002 Posts: 40 Location: Atlanta, GA
|
Posted: Thu May 23, 2002 2:29 pm Post subject: |
|
|
Quote: |
which bit of: Quote: | Here's how the two commands work. The first root ( ) command tells GRUB the location of your boot partition (in our example, /dev/hda1 or (hd0,0) in GRUB terminology. |
from the install instructions isn't clear to you? I'm getting fed up of all the confusion this subject is causing. Yes it's bad terminology but it's clearly explained in the GRUB manual here: http://www.mcc.ac.uk/grub/grub_3.html#SEC9
</rant>
|
huw....
Excuse me... I mis-read it. I apologize. Thank you for correcting me. It is crystal clear.
I can understan your frustration but human error is part of life. You really come off as a jerk when you write stuff like that. Hope you didn't mean it that way |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 2:39 pm Post subject: |
|
|
OK, these are my steps:
1) boot with cd inside
.....
2) mount /dev/hda4 /mnt/linux ( this is the ROOT part. )
3) mount /dev/hda2 /mnt/linux/boot ( this is the BOOT part. )
4) chroot /mnt/linux /bin/bash
5) cd /usr/src/linux
6) make menuconfig ( made the changes for Pentium 4 )
7) make dep && make clean bzImage modules modules_install
cd arch/i386/boot
9) cp bzImage /boot/bzImage
10) umount /mnt/linux/boot
11) umount /mnt/linux
12) reboot ( ENTER )
Now i got in screen after Gentoo seelction in grub menu:
Quote: |
Booting 'Gentoo System'
root (hd0,1)
File system type is ext2fs, part. type 0x83
kernel /boot/bzImage root=/dev/hda4
Uncompresing Linux...OK, booting the Kernel.
AND THAT'S IT!
Computer stops...
|
I think i give up...i tried everything
Thanks for help guys |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:40 pm Post subject: |
|
|
Sorry I thought the <rant> tags would infer a bit of sarcasm on my behalf. It wasn't meant as a personal attack. I've just read a few too many incorrect comments posted on this forum about how to cofigure GRUB. No offence meant. |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 2:41 pm Post subject: |
|
|
As you can see in my first msg, the grub was configured perfect. |
|
Back to top |
|
|
stingray72 n00b
Joined: 08 May 2002 Posts: 40 Location: Atlanta, GA
|
Posted: Thu May 23, 2002 2:45 pm Post subject: |
|
|
huw wrote: | Sorry I thought the <rant> tags would infer a bit of sarcasm on my behalf. It wasn't meant as a personal attack. I've just read a few too many incorrect comments posted on this forum about how to cofigure GRUB. No offence meant. |
It's cool. It was my fault in the first place for mis-reading the install instructions. I use LILO so I probably had that idea in mind while reading it. No problemo. Maybe a smiley face in the rant next time or even this funny dude w/ goggles |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:48 pm Post subject: |
|
|
I know, that's why I got a bit annoyed when stingray72 said it wasn't. Must be a bit more careful when I press submit, honestly didn't mean to upset anyone. -- Huw |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:50 pm Post subject: |
|
|
yeah smiley's are good! |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:52 pm Post subject: |
|
|
better than my grammar anyway |
|
Back to top |
|
|
Guest
|
Posted: Thu May 23, 2002 2:52 pm Post subject: |
|
|
I think Gentoo is not ready for use...so i give up
Many Thanks for help guys. |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Thu May 23, 2002 2:59 pm Post subject: |
|
|
Sorry it didn't work out I use gentoo and it's great. Keep looking here as maybe someone else will have the answer you need. For now I'd suggest trying another distro like Redhat/Mandrake/Suse. Once you have compiled a working kernel for that you can always use the .config file when/if you decide to go back to gentoo.... That's how I started and as I got to know the h/w in my laptop better I pruned the kernel down to include only what I really need. |
|
Back to top |
|
|
Egil n00b
Joined: 16 May 2002 Posts: 12 Location: Milwaukee, WI
|
Posted: Thu May 23, 2002 7:22 pm Post subject: Re: Grub, forgive me if is dupplicate |
|
|
Anonymous wrote: | Grub problem, please forgive me if is dupplicate but i did not find a msg like this while searching:
This is my HD map:
/dev/hda1 * - win32 ( C drive ), active partition
/dev/hda2 - /boot ( linux boot ), active partition
/dev/hda3 - swap ( linux swap )
/dev/hda4 - /root ( linux root )
This is my grub command line:
grub> root (hd0,1)
grub> setup (hd0)
grub> quit
This is my menu.lst:
Code: | default 0
timeout 30
title=Gentoo System
root (hd0,1)
kernel /boot/bzImage root=/dev/hda4
title=Windows
root (hd0,0)
chainloader +1 |
|
Try this and let me/us know if it works:
Code: | default 0
timeout 30
title=Gentoo System
root (hd0,1)
kernel /bzImage root=/dev/hda4
title=Windows
root (hd0,0)
chainloader +1 |
The way I understand it is...
The partition at /dev/hda2 does not contain a /boot directory. Therefore, even though it finds the partition and states that it is going to boot, it cannot find bzImage. |
|
Back to top |
|
|
|