LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Wheres the Kernel Config File? (https://www.linuxquestions.org/questions/linux-newbie-8/wheres-the-kernel-config-file-295946/)

grilledsalad 02-28-2005 02:36 PM

Wheres the Kernel Config File?
 
I tried searching google and lq, but got silly stuff for responses...

I'm preparing to upgrade my kernel for the first time, and want to print out my existing kernel config so I have something to go back on. I can't seem to find it though, I know i've seen it before.

Debian linux, kernel 2.4 right now. upgrading to 2.6

Thanks!

onelung02 02-28-2005 02:48 PM

normally it is in:
/usr/src/linux2.X

and also normally there is a symlink to it, so all you have to do is type cd /usr/src/linux

from in that directory you can type

#make menuconfig

and that will show your config file in a nice gui form, but the actually file is located in this path:

/usr/src/linux2.*kernel verions*/.config

hope this helps

-onelung

chris318 02-28-2005 02:50 PM

trying doing:
shell$ cat /proc/config.gz | gzip -d > config

if that doesn't create a config file for you try looking in /usr/src/linux/ there should be a .config file in their hidden. If not try /boot/.

nonzero 02-28-2005 02:53 PM

snip: <any silly stuff>

Depending on your distribution there may or may not be a config file in your /boot or /root directory. It is not required for boot but if available gives you the configuration that the running kernel was built under. It would be something like /boot/config-2.4.29. If you rolled your own kernel recently using

make menuconfig (or xconfig)

the current config file is in the top level of your source tree and can be found with

ls -a looking for .config (that's dotconfig - man I need new glasses!)

nz

grilledsalad 02-28-2005 07:49 PM

Thank ya's very much =)


All times are GMT -5. The time now is 06:49 AM.