LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-01-2004, 02:08 PM   #1
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 68

Rep: Reputation: 15
Newly compiled kernel behaves as if it was the old one?


Hello!

I've just installed debian 3.0, which somehow got me kernel 2.2.20. Of course I didn't like this, to I got the sources & headers for 2.4.18 and compiled this kernel (with USB fs support and stuff). Now when I reboot the computer, everything _seems_ to be going fine, except that somehow the new compiled stuff doesn't work, for example mounting the usbfs tells me that this fs is not supported in the kernel.

Worst thing ever though: modprobe seems not to be able to find the modules compiled for 2.4.18, just the ones for 2.2.20, and it _loads_ them! When I copy some of the 2.4.18 modules into the 2.2.20 directory and try to load them, it gives me a kernel version mismatch, claiming that I'm actually running 2.2.20!

I've recompiled the kernel about 10 times yesterday, yes, I did make mrproper, I didn't forget to make modules and make modules_install. I've even deleted the 2.2.20 vmlinuz, so there isn't even a 2.2.20 kernel on my hard drive.

After I've almost gone ballistic yesterday well after midnight, I've decided I'd better ask for help here before I do something I'd regret and my PC wouldn't live to regret... So, does anybody know where this may come from or what I could do about it?

Thanks a lot for any advice!
 
Old 06-02-2004, 03:06 AM   #2
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
Hi,

you should paste /etc/lilo.conf and a directory listing of /boot and the files in / .

meanwhile check this...

a) have you copied the new kernel image and system.map to the boot directory?
b) have you modify /etc/lilo.conf adding the entry for the new kernel?
c) if you have modified lilo.conf... have you executed /sbin/lilo to make the changes to be operative?
d) have you modified /etc/modules adding the new modules that you want to load at the boot? (and removing the ones you don't want to load)


Bye.
 
Old 06-02-2004, 03:39 AM   #3
Ironica
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 64

Rep: Reputation: 15
Yup, if using lilo, you have to execute /sbin/lilo after making sure that the path to the new kernel image is correct inside /etc/lilo.conf

You can type:
uname -r
to see what version of the kernel you are currently running. Sounds to me like it's still booting the old kernel, but you think it's booting the new one =P
 
Old 06-02-2004, 01:16 PM   #4
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
Hello!

Nope, the System.map is in /boot, map=System.boot is set in lilo.conf,, the right kernel was set to be booted too (I always change the lable when I recompile the kernel, and the right label was shown when I rebooted), so I definitely have run lilo after changing lilo.conf.

uname -r says taht it's 2.2.20_idepci, but this kernel doesn't exist on my ahrd drive anymore, I've deleted it to make fully sure.

It's not the first time I compile a new kernel, but the first time I have this kind of trouble... any ideas?
 
Old 06-03-2004, 04:52 AM   #5
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
grayFalcon:

you should paste /etc/lilo.conf (without commentary and blank lines) and a directory listing of /boot and the files in / .

Without that we can't help you.

Bye.

PS:
Number 1 RULE compiling a new kernel:
DO NOT REMOVE THE OLD KERNEL UNTIL YOU BE SURE THE NEW ONE IS WORKING FINE !!
nevertheless, I always keep the last two running kernels for emergency purposes.

Last edited by Goala; 06-03-2004 at 09:20 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Newly Compiled Kernel binarybob0001 Linux - General 2 11-20-2005 04:06 AM
keyboard won't work with newly compiled kernel dr_zayus69 Linux - Hardware 10 06-05-2005 11:23 AM
newly compiled kernel, boot fails class_struggle Linux - Newbie 2 07-30-2004 09:10 AM
Problem with newly compiled 2.4.22 kernel Xero720 Slackware 2 09-06-2003 12:23 PM
cdrom troubles with newly compiled kernel N_A_J_M Linux - General 9 12-09-2002 04:14 AM


All times are GMT -5. The time now is 08:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration