View previous topic :: View next topic |
Author |
Message |
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Fri Jan 20, 2006 6:26 pm Post subject: Grub, Scsi, and problems. |
|
|
I installed Gentoo last night. I followed the Handbook to a T. Everything seemed to go smoothly right on through configuring my bootloader (GRUB) and even the reboot. So my system boots the first time...GRUB loads (I have my timeout set to 5). After 5 seconds, it selects my default (the only choice) Gentoo. Screen goes black for a half a sec...then back to the grub loader screen. Gentoo still highlighted...but nothing. I can hit enter again and it'll go black then come back to the GRUB screen again. Any help? |
|
Back to top |
|
|
morodoch Guru
Joined: 22 Sep 2005 Posts: 523 Location: England
|
Posted: Fri Jan 20, 2006 6:30 pm Post subject: |
|
|
Is it possible that grub is failing to find your kernel? Can you post your grub.conf? _________________ Well, the Sister was right. You boys could use a little churching up. Slide on down to the Triple Rock, and catch Rev. Cleophus. You boys listen to what he's got to say.
-- Curtis |
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Fri Jan 20, 2006 6:34 pm Post subject: |
|
|
I used the generic one in the handbook...making a change for the SCSI drive and timeout.
default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r5
root (hd0,0)
kernel /boot/kernel-2.6.14-gentoo-r5 root=/dev/sda3 |
|
Back to top |
|
|
morodoch Guru
Joined: 22 Sep 2005 Posts: 523 Location: England
|
Posted: Fri Jan 20, 2006 6:57 pm Post subject: |
|
|
In that case this is odd. Obviously the bios has found grub, and grub has found its config files. Does /boot/kernel-2.6.14-gentoo-r5 exist?
You can play with the grub boot entry by selecting it, and hitting either e or o (I can't remember which). The right key from the main menu will show you your root & kernel command lines. Navigate to the kernel line and then try editing it - grub supports bash completion which I find very helpful when I can't remember the name of my kernel _________________ Well, the Sister was right. You boys could use a little churching up. Slide on down to the Triple Rock, and catch Rev. Cleophus. You boys listen to what he's got to say.
-- Curtis |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 20, 2006 6:57 pm Post subject: |
|
|
Hi.
Please post the output of fdisk -l and ls -l /boot. If you do it from the live-cd, please do instead ls -l /mnt/gentoo/boot. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Fri Jan 20, 2006 9:40 pm Post subject: fdisk -l and ls -l /mnt/gentoo/boot |
|
|
fdisk -l
/dev/sda1 * linux
/dev/sda2 linux swap / solaris
/dev/sda3 linux
ls -l /mnt/gentoo/boot
total 13
lrwxrwxrwx 1 root root 1 Jan 19 19:22 boot->.
drwxr-xr-x 2 root root 1024 Jan 20 02:05 grub
drwx------ 2 root root 12288 Jan 19 20:22 lost+found |
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Fri Jan 20, 2006 9:50 pm Post subject: |
|
|
Two other things I'm looking at. Here is my grub.conf:
default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r5
root (hd0,0)
kernel /boot/kernel-2.6.14-gentoo-r5 root=/dev/sda3
during my installation I ran the command
cp arch/i386/boot/bzImage /boot/linux-2.6.14-gentoo-r5
should my kernel be /boot/kernel... or /boot/linux...
Also do I need the /boot. I read elsewhere that /boot is understood and I should just have /grub/splash.xpm.gz and kernel /kernel... (or linux) whichever it is... |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 20, 2006 9:53 pm Post subject: |
|
|
Well, it seems you forgot to copy your kernel to /boot.
Boot with your live-cd, mount the partitions and chroot, then do the following:
Code: | # cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-version-gentoo
# cp /usr/src/linux/.config /boot/config-version-gentoo
# cp /usr/src/linux/System.map /boot/System.map-version-gentoo |
Don't forget to replace version with the version of your kernel as config-2.6.14-gentoo. If you have an AMD64, you need to use /usr/src/linux/arch/x86_64/boot/bzImage instead. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Fri Jan 20, 2006 10:24 pm Post subject: |
|
|
I booted with live-cd, mounted, chrooted then:
Code: | # cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.14-gentoo-r5
# cp /usr/src/linux/.config /boot/config-2.6.14-gentoo-r5
# cp /usr/src/linux/System.map /boot/System.map-2.6.14-gentoo-r5 |
Rebooted. Still same error. Countdown, then selection of default OS. Goes black, then right back to OS selection.
If I press "c" then type "boot" I get this:
Error 8: Kernel must be loaded before booting.
Also, now my ls -l /mnt/gentoo/boot is as follows:
total 2855
-rw-r--r-- 1 root root 833988 jan 20 17:29 system.map-2.6.14-gentoo.r5
lrwxrwxrwx 1 root root 1 jan 19 19:22 boot ->.
-rw-r--r-- 1 root root 31842 jan 20 19:29 config-2.6.14-gentoo-r5
drwxr-xr-x 2 root root 1024 jan 20 02:05 grub
-rw-r--r-- 1 root root 2026803 jan 20 17:28 kernel-2.6.14.-gentoo.r5
drwx------ 2 root root 12288 jan 19 20:22 lost+found |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 20, 2006 10:37 pm Post subject: |
|
|
Please post the output of ls -l /mnt/gentoo/boot again.
Code: | -rw-r--r-- 1 root root 833988 jan 20 17:29 system.map-2.6.14-gentoo.r5
lrwxrwxrwx 1 root root 1 jan 19 19:22 boot ->.
-rw-r--r-- 1 root root 31842 jan 20 19:29 config-2.6.14-gentoo-r5
drwxr-xr-x 2 root root 1024 jan 20 02:05 grub
-rw-r--r-- 1 root root 2026803 jan 20 17:28 kernel-2.6.14.-gentoo.r5
drwx------ 2 root root 12288 jan 19 20:22 lost+found |
Notice the extra . in kernel-2.6.14.-gentoo.r5. You need to update the file name. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Fri Jan 20, 2006 10:46 pm Post subject: |
|
|
Pardon that was just a typo.
It actually reads
System.map-2.6.14-gentoo-r5
and
kernel-2.6.14-gentoo-r5
I was copying the code by hand...but it's right in my ls -l /mnt/gentoo/boot |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 20, 2006 11:02 pm Post subject: |
|
|
Well, in that case please try to use the GRUB command line. There you should type the following:
Code: | > root (hd0,0)
> kernel /boot/kernel-2.6.14-gentoo-r5 root=/dev/sda3
> boot |
You should use the auto-complete feature, pressing the TAB key, to see the available kernel files. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Fri Jan 20, 2006 11:15 pm Post subject: |
|
|
What I did.
Code: | grub> root
(hd0,0): Filesystem type is ext2fs, partition type 0x83
grub> kernel /boot/kernel-2.6.14-gentoo-r5 root=/dev/sda3
[Linux-bzImage, setup=0x1400, size=0x1ed733]
grub> boot |
And then it freezes (i can't even ctrl+alt+del). With the cursor undernearth like so
_________________ Unanswered posts need love too.
--
~ # emerge -pv gentoo-love |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jan 21, 2006 12:15 am Post subject: |
|
|
What processor do you have?
Code: | # cat /proc/cpuinfo |
What CFLAGS and CXXFLAGS have you used? Post the contents of /etc/make.conf. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Sat Jan 21, 2006 1:33 am Post subject: |
|
|
Pentium II (Klamath)
My make.conf is nonexistent.
I know i made it during the installation. I may be in the wrong place.
Other random files in /etc:
hosts
protocols
cron files
bash
hotplug
services
security
terminfo
networks
nanorc
filesystems, etc, etc
would i have needed to chroot?
all i did was mount like:
mount /dev/sd3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
then:
nano -w /etc/make.conf (blank) _________________ Unanswered posts need love too.
--
~ # emerge -pv gentoo-love |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jan 21, 2006 2:21 am Post subject: |
|
|
aim nano wrote: |
all i did was mount like:
Code: | mount /dev/sd3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot |
then:
Code: | nano -w /etc/make.conf (blank) |
|
You need to do
Code: | # cat /mnt/gentoo/etc/make.conf |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Sat Jan 21, 2006 3:26 am Post subject: |
|
|
CFLAGS="-02 -march=pentium3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}:
GENTOO_MIRRIORS="blah blah blah" _________________ Unanswered posts need love too.
--
~ # emerge -pv gentoo-love |
|
Back to top |
|
|
pippin88 n00b
Joined: 20 Jan 2006 Posts: 18
|
Posted: Sat Jan 21, 2006 3:45 am Post subject: |
|
|
aim nano: My problem (as you posted in my thread) is the exact same. Down to the freezing on grub CLI.
Hope we can get this sorted out. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jan 21, 2006 4:05 am Post subject: |
|
|
aim nano wrote: |
Pentium II (Klamath)
|
aim nano wrote: | CFLAGS="-02 -march=pentium3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}:
GENTOO_MIRRIORS="blah blah blah" |
That explains your problem. You have a Pentium II and you are compiling for a Pentium III. You can't do that. You'll have to recompile your entire system. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Sat Jan 21, 2006 4:58 am Post subject: |
|
|
Start from scratch? Or just recompile a new kernal? _________________ Unanswered posts need love too.
--
~ # emerge -pv gentoo-love |
|
Back to top |
|
|
pippin88 n00b
Joined: 20 Jan 2006 Posts: 18
|
Posted: Sat Jan 21, 2006 5:26 am Post subject: |
|
|
I'm pretty sure you just need to fix that option and compile a new kernel. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Jan 21, 2006 5:47 am Post subject: |
|
|
aim nano wrote: | Start from scratch? Or just recompile a new kernal? |
You need to recompile the kernel, but also every package that you build. I would suggest starting by deleting all files in / - I would keep the stage tarballs, any files downloaded from the Internet, like /usr/portage/distfiles and important config files. Then resuming from there extracting the stage tarball and the Portage snapshot. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
aim nano Tux's lil' helper
Joined: 20 Jan 2006 Posts: 131 Location: Jackson, MS
|
Posted: Sat Jan 21, 2006 6:56 am Post subject: |
|
|
I'm pretty much starting over so,
I just ran the command
/mnt/cdrom/stages
to make sure my cd rom was mounted (suggested in handbook even though i already knew it was mounted)
and i get these stages
stage3-athlon-xp
stage3-i686
stage3-pentium3
stage3-pentium4
stage3-x86
Now this is maybe why I got confused with my make.conf because the only options close to mine is pentium3.
So maybe I assumed I'd have to use that throughout my installation to maintain uniformity.
the next step is:
tar xvjpf /mnt/cdrom/stages/stage3-<subarch>-2005.1-r1.tar.bz2
which subarchitecture do I use for a pentium2? _________________ Unanswered posts need love too.
--
~ # emerge -pv gentoo-love |
|
Back to top |
|
|
morodoch Guru
Joined: 22 Sep 2005 Posts: 523 Location: England
|
|
Back to top |
|
|
mrrangerman43 n00b
Joined: 14 Jan 2006 Posts: 12 Location: Michigan
|
Posted: Sun Jan 22, 2006 3:28 am Post subject: |
|
|
aim nano
My install is almost the same as your's, this is my grub.conf
default 0
timeout 30
splashimage-(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14
root (hd0,0)
kernel /boot/linux-2.6.14-gentoo-r5 root=/dev/sda3
when I compiled my kernel it saved it as linux and not kernel so after you compile and cp over to /boot do a ls and note what your kernel is called and edit grub to same.
Dan |
|
Back to top |
|
|
|