Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I check what options are compiled into a linux kernel if I don't have access to the /boot/config-* file that's left over?

share|improve this question
up vote 22 down vote accepted

Unless your kernel was built with CONFIG_IKCONFIG_PROC, which would make the config available in /proc as sysadmin1138 mentioned above, you're pretty much out of luck. Debian and RH based kernel packages do, however, generally install a config-$version file in /boot. So unless it's a custom kernel, it should be available there.

share|improve this answer

I believe /proc/config.gz contains the .config file the kernel was compiled with.

share|improve this answer
4  
That's only available if CONFIG_IKCONFIG_PROC was set when the kernel was built. Doesn't seem to be there by default on RHEL or Ubuntu. – Insyte Aug 6 '09 at 17:19
3  
As of writing, this is enabled by default on Arch :) – Navin Apr 25 '13 at 0:33
2  
to read (or grep) the current settings from config.gz you can unzip it with $cat /proc/config.gz | gunzip > mykernel.conf as suggested by Jarl on superuser.com. – xaa Oct 29 '15 at 10:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.