Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED! THANK YOU!] chroot: FATAL: kernel too old.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Mon Jun 28, 2004 5:26 am    Post subject: [SOLVED! THANK YOU!] chroot: FATAL: kernel too old. Reply with quote

Umm...don't ask me why (I don't even know why...it just felt good at the time), but I did "emerge -C pam-login" and now I can't login anymore...as root or as my user. So I go to boot form the Gentoo LiveCD and follow the instructions to chroot into /dev/hda3 in order to emerge it again. so I mount it, etc. and then type
Code:
# chroot /dev/hda3 /bin/bash
and it says
Quote:
FATAL: kernel too old
...and that happens from Knoppix 3.4, SUSE 9.0 LiveCD, and Gentoo 2004.0 LiveCD. This is really fursttrating and any help would be greatly appreciated.
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF


Last edited by codergeek42 on Tue Jun 29, 2004 2:36 am; edited 1 time in total
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Mon Jun 28, 2004 5:30 am    Post subject: Reply with quote

Forgot to add that I am typing this from booting into the SuSE LiveCD .
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
kiezpro
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 126
Location: Yes

PostPosted: Mon Jun 28, 2004 5:35 am    Post subject: Reply with quote

That's a tricky one... I checked which files are installed with pam-login, and it seems like the only crucial ones are /etc/login.defs and /bin/login. You should be able to copy both from the Gentoo CD, boot from your harddrive and then re-emerge pam-login. Good luck!
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Mon Jun 28, 2004 5:39 am    Post subject: Reply with quote

Hmmm...I'll try that. Thanx.
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
RaaR
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2003
Posts: 125

PostPosted: Mon Jun 28, 2004 6:38 pm    Post subject: Reply with quote

I may be reaching here but there's no harm in asking:

Does your system have a nptl glibc? If that is the case, bash won't work if you boot with a 2.4 kernel (hence the "kernel too old" error). Try booting with the Knoppix26 kernel and check if that solves the problem.

Good luck!
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Tue Jun 29, 2004 1:31 am    Post subject: Reply with quote

RaaR wrote:
I may be reaching here but there's no harm in asking:

Does your system have a nptl glibc? If that is the case, bash won't work if you boot with a 2.4 kernel (hence the "kernel too old" error). Try booting with the Knoppix26 kernel and check if that solves the problem.

Good luck!
Yup. my working system had GLibC 2.3.3 (~x86) with NPTL. For some reason though, Knoppix26 won't boot (it get stuck on "Searching for CD-ROM on /dev/hdc...")...oh well. I'll try the SMP kernel on the 2004.0 Gentoo LiveCD, which (iirc) is 2.6.3 or something...
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Tue Jun 29, 2004 2:22 am    Post subject: Reply with quote

IT WORKED!!!

THANK YOU!!!

THANK YOU!!!

THANK YOU!!!

Alright. Copying /bin/login from the LiveCD and using the SMP kernel worked and I was able to chroot and re-emerge pam-login.
And I can login normally and stuff now.

If either of you are ever around the Anaheim area, stop by and let me buy you a few rounds of non-alcholic beverages.
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
blue.sca
l33t
l33t


Joined: 28 Aug 2003
Posts: 680
Location: Mainz, Germany

PostPosted: Tue Jun 29, 2004 8:14 am    Post subject: Reply with quote

hehe, i had the exact same problem, used the cruft script to remove my /etc/pam.d/* :) (bad thing btw, dont trust this).
i just copied over the files in /etc/pam.d/* on the livecd and could reboot and login, to re-emerge pam-login...
_________________
geek by nature, linux by choice
i want my avatar back... thank you
:wq
Back to top
View user's profile Send private message
kiezpro
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 126
Location: Yes

PostPosted: Tue Jun 29, 2004 8:51 am    Post subject: Reply with quote

Well, I live about 6500 miles away from Anaheim, so it's not too often on my way :-)
Glad I could help though!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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