How do we see the kernel configuration? basic q. but don't know:(
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.....
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 !!
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...?).
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 !!
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.
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.