LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2007, 11:01 AM   #1
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Rep: Reputation: 15
How do we see the kernel configuration? basic q. but don't know:(


Hi,

I am pretty new to linux. I want to see my kernel configuration. How do i see that?

I want to see if


CONFIG_KLIPS_OCF

is enabled or not !!! how do i see that? I did menuconfig, but that lists out the GUI, which has a lot of options and then i have to select it. I don't want to see the GUI..I do not know the technical terms for linux, so may be, I am not able to explain it properly, but I guess the above example explains what I want to see.....

I would appreciate your reply. Thank you.
 
Old 07-25-2007, 11:18 AM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
Quote:
Originally Posted by ankit4u1
I want to see my kernel configuration. How do i see that?

I want to see if


CONFIG_KLIPS_OCF

is enabled or not !!!
The kernel config is usually stored in: /usr/src/linux/.config

You can check for that flag above by doing:

Code:
# cat /usr/src/linux/.config | grep CONFIG_K*
Look through the output of that command to see if it's there.
 
Old 07-25-2007, 01:20 PM   #3
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks !! That's exactly what i was looking for !!

But u know what happnd? This is really weird ....no idea why !!

I just saw that all my modules disappeared !! I did lsmod, but only 5 modules in the list !! ? There were a lot of modules before, but now just five !!

What could be the problem?
 
Old 07-25-2007, 01:25 PM   #4
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
lsmod only lists the "active" modules...not all of the ones on your system. Did you recompile the kernel or anything like that? If so, did you modify the kernel config in any way? It's possible to compile modules "into" the kernel (i.e. not as separate blocks of code) without making changes to the kernel's capabilities, and if that's the case then they won't show up in lsmod's output. Have you noticed any change in functionality (sound card not working, etc...?).
 
Old 07-25-2007, 01:28 PM   #5
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
there may not be a problem, lsmod lists 'loaded' modules. not every option you built as a module in the kernel config.


edit; umm yeah, what he said.
 
Old 07-25-2007, 01:52 PM   #6
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
I actually wanted to include OCF modules !! So, here is what i did exactly

make menuconfig

selected Cryptographic options --> Open Cryptographic options --> some modules in that

then I went to this directory : /usr/src/kernels/2.6.18-8.el5/crypto/ocf/ and did

make -C /lib/modules/2.6.18.8.el5/build/ M=`pwd` modules

then I included the ocf moduels by lsmod

That was what i did before 2 days and everything was working fine till yesterday...

today I rebooted my comp. and suddenly nothing can be found...I tried connecting to eth0 and that also gives me an error.

I saw e100 device eth0 does not seem to be present, delaying initialization

I havn't tested other things, but I am sure they are not working ! What the hack happnd with the computer? I don't want to reinstall the OS. dat's pain !!

Pls help
 
Old 07-25-2007, 02:33 PM   #7
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
You mentioned the kernel source for the OCF modules as being a 2.6.18 kernel. Is that what you're running, or no?

Code:
# uname -r
That will tell you what kernel is currently running on your system. A mis-match between kernel versions may cause module loading issues, so let me know the output of that command.

What is the output of:

Code:
# find / -iname *.ko -or -iname *.o
If you get a long list, then it's likely your modules are fine, and you have a config file that needs updating.

Last edited by rocket357; 07-25-2007 at 02:36 PM.
 
Old 07-25-2007, 04:45 PM   #8
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
Yes, I am running kernel 2.6.18-8.el5

The output of uname -r is

2.6.18-8.el5

This is the default kernel with RHEL 5 server pack !! I did not recompile the kernel also. I think you were thinking if I have recompiled the kernel and am running the wrong kernel ...I haven't recompiled or reconfigured another kernel....

The output of
# find / -iname *.ko -or -iname *.o

is a long long list !

Oh relief, all my modules are fine !! thank god. Thank you rocket. So, what do i need to do to update the config file?

make?
 
Old 07-25-2007, 05:00 PM   #9
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
no, no... don't run make... that's not necessary.

We need to figure out why your install isn't autoloading modules now...I'm not terribly familiar with RHEL...do you have a /etc/modules.autoload.d/kernel-2.6 file?
 
Old 07-25-2007, 05:17 PM   #10
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
no that file is not there

I searched all the directories also...not there ! I think the last option is to format now !(
 
Old 07-25-2007, 09:31 PM   #11
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
Nah don't give up *that* easy...(the file I listed was for Gentoo...I was pretty certain it would be different for RHEL =)

I'm sure there's a way to restore the original module settings...it's just a matter of finding it.

Edit - check this link out and tell me if your system has these files:

http://www.redhat.com/docs/manuals/e...ersistant.html

Last edited by rocket357; 07-25-2007 at 09:35 PM.
 
Old 07-26-2007, 06:35 AM   #12
ramesh6056
Member
 
Registered: May 2007
Posts: 89

Rep: Reputation: 15
re..

Hi,

instead of make menuconfig...try out make config...

where it will ask you step by step whether you wan to enable this or not...


I think it will ask you the exact phrase what it was mentioned...
 
Old 07-30-2007, 07:22 PM   #13
ankit4u1
Member
 
Registered: Apr 2006
Distribution: Red Hat, Fedora
Posts: 97

Original Poster
Rep: Reputation: 15
Sorry...was waiting for the replies..then got fed up...and formatted everything..

thanks ramesh and rocket !! u were really helpful !!
 
  


Reply

Tags
configuration, kernel



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
Basic Apache Configuration Simdude90015 Linux - Software 8 07-14-2006 10:16 PM
Basic Ethernet Configuration awj78 Linux - Networking 1 01-31-2006 12:46 PM
Need help with basic sendmail configuration aznluvsmc Linux - Networking 1 12-03-2004 10:55 AM
Basic mysql configuration noahzenzen Linux - Newbie 6 07-08-2004 11:05 AM
proftpd configuration ...not so basic... zavajon Linux - Software 3 09-14-2003 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration