Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lost my kernel????
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
d4n1el
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2004
Posts: 76

PostPosted: Sat Aug 07, 2004 6:51 pm    Post subject: Lost my kernel???? Reply with quote

HI.
I think i have mad a misstake. but i think it is danger like it sounds...

i recompiled my kernel, but when i tried to update? lilo, somethinkg went wrong

bash-2.05b# /sbin/lilo
Fatal: open /boot/kernel-2.6.7-gentoo-r11: No such file or directory

The starnge thing is that the computer works fine.. i can reboot and everything...

some one knows what i did wrong and what i need to do to fix it???
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54782
Location: 56N 3W

PostPosted: Sat Aug 07, 2004 6:59 pm    Post subject: Reply with quote

d4n1el,

I would guess you forgot to mount /boot before you did the copy.
What does
Code:
uname -a
show?
Pay close attention to the version and compile time.

You are probably running your old kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
d4n1el
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2004
Posts: 76

PostPosted: Sat Aug 07, 2004 10:50 pm    Post subject: Reply with quote

Linux tux 2.6.7-gentoo-r11 #2 SMP Fri Jul 30 02:15:27 UTC 2004 i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux
this is what i got...

yes i think it is my old kernel... :oops:
do i need to recompile it or what could i do???
and what have i missed?

thx for the answers!!!
:D
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Sat Aug 07, 2004 11:20 pm    Post subject: Reply with quote

When you compile your kernel it creates it under /usr/src/linux/arch/i386/boot and names it bzImage (All this is assuming you are using x86 and left the kernel compression default). You just need to copy it to your /boot (make sure it is mounted first).

Ex. cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.7 (or whatever you want to name it)

Then modify your lilo.conf and run /sbin/lilo to update the MBR.

HTH
Back to top
View user's profile Send private message
d4n1el
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2004
Posts: 76

PostPosted: Sat Aug 07, 2004 11:44 pm    Post subject: Reply with quote

thx.. i found it... but uname -a give the same respons as before the copying...
do i need to recompile again or have i used the new kernel???
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Sun Aug 08, 2004 12:28 am    Post subject: Reply with quote

If you copied it and your lilo.conf is pointing to it, then you are using the new kernel.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54782
Location: 56N 3W

PostPosted: Sun Aug 08, 2004 9:44 am    Post subject: Reply with quote

d4n1el,

Please post the output of the following commands - after you have mounted boot:-
Code:
ls -al /boot
less /boot/grub/grub.conf

I want to see all of your grub.conf file.

Its also possible that your last kernel build terminated with an error, so your new bzImage was not built. Check the date and time on the bzImage file.

If uname -a shows you are running your old kernel - thats what you are running.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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