View previous topic :: View next topic |
Author |
Message |
d4n1el Tux's lil' helper
Joined: 21 Jun 2004 Posts: 76
|
Posted: Sat Aug 07, 2004 6:51 pm Post subject: Lost my kernel???? |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54782 Location: 56N 3W
|
Posted: Sat Aug 07, 2004 6:59 pm Post subject: |
|
|
d4n1el,
I would guess you forgot to mount /boot before you did the copy.
What does 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 |
|
|
d4n1el Tux's lil' helper
Joined: 21 Jun 2004 Posts: 76
|
Posted: Sat Aug 07, 2004 10:50 pm Post subject: |
|
|
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...
do i need to recompile it or what could i do???
and what have i missed?
thx for the answers!!!
|
|
Back to top |
|
|
luqas Guru
Joined: 02 Jan 2004 Posts: 588 Location: /US/Texas/Beaumont
|
Posted: Sat Aug 07, 2004 11:20 pm Post subject: |
|
|
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 |
|
|
d4n1el Tux's lil' helper
Joined: 21 Jun 2004 Posts: 76
|
Posted: Sat Aug 07, 2004 11:44 pm Post subject: |
|
|
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 |
|
|
luqas Guru
Joined: 02 Jan 2004 Posts: 588 Location: /US/Texas/Beaumont
|
Posted: Sun Aug 08, 2004 12:28 am Post subject: |
|
|
If you copied it and your lilo.conf is pointing to it, then you are using the new kernel. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54782 Location: 56N 3W
|
Posted: Sun Aug 08, 2004 9:44 am Post subject: |
|
|
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 |
|
|
|