LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   View current kernel config (http://www.linuxquestions.org/questions/linux-kernel-70/view-current-kernel-config-468208/)

hodges 07-27-2006 08:15 AM

View current kernel config
 
Hi,

Something I plan to do requires setting a particular kernel parameter to yes. Rather than configure and recompile the kernel with this parameter on, I wondered if there was a way to first check what parameters the currently running kernel was compiled with, as it may already have had this one on.

Thanks very much,
Simon

The_Outlander 07-27-2006 08:35 AM

Providing you have kernel source installed. Usually at /usr/src. OPen a terminal and cd into the kernel source directory, then do make menuconfig or make xconfig to view the kernel configuration editor, or open your favourite editor and open /usr/src/linux-version/.config

The .config file shows all the options that are set or not set.

Regardless of where your kernel source is located, just cd into it and do as above.

konsolebox 07-27-2006 08:45 AM

try to do
Code:

make oldconfig
or
Code:

zcat /proc/config.gz > .config
Edit: changed cmdline.gz to config.gz. sorry bout that.

hodges 07-28-2006 03:37 AM

All great solutions, thanks very much - problem solved.

Simon


All times are GMT -5. The time now is 06:36 PM.