-   Linux - Kernel (
-   -   View current kernel config (

hodges 07-27-2006 08:15 AM

View current kernel config

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,

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

make oldconfig

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.


All times are GMT -5. The time now is 12:32 AM.