LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do we see the kernel configuration? basic q. but don't know:( (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-we-see-the-kernel-configuration-basic-q-but-dont-know-572188/)

ankit4u1 07-25-2007 11:01 AM

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.....:scratch:

I would appreciate your reply. Thank you.:Pengy:

rocket357 07-25-2007 11:18 AM

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.

ankit4u1 07-25-2007 01:20 PM

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?

rocket357 07-25-2007 01:25 PM

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...?).

rshaw 07-25-2007 01:28 PM

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.

ankit4u1 07-25-2007 01:52 PM

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

rocket357 07-25-2007 02:33 PM

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.

ankit4u1 07-25-2007 04:45 PM

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?

rocket357 07-25-2007 05:00 PM

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?

ankit4u1 07-25-2007 05:17 PM

:mad: no that file is not there

I searched all the directories also...not there ! I think the last option is to format now !:((

rocket357 07-25-2007 09:31 PM

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

ramesh6056 07-26-2007 06:35 AM

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...

ankit4u1 07-30-2007 07:22 PM

Sorry:(...was waiting for the replies..then got fed up...and formatted everything..

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


All times are GMT -5. The time now is 02:15 AM.