LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-28-2005, 02:36 PM   #1
grilledsalad
Member
 
Registered: Sep 2003
Posts: 42

Rep: Reputation: 15
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!
 
Old 02-28-2005, 02:48 PM   #2
onelung02
Member
 
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
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
 
Old 02-28-2005, 02:50 PM   #3
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 19
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/.
 
Old 02-28-2005, 02:53 PM   #4
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
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
 
Old 02-28-2005, 07:49 PM   #5
grilledsalad
Member
 
Registered: Sep 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Thank ya's very much =)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use old kernel config file? RoaCh Of DisCor Linux - Software 4 01-04-2005 10:31 PM
wheres the 'telnet' file? nelly_boy Linux - Software 2 06-14-2003 10:39 AM
How can I install the 2.5.66 kernel in Redhat 9.0 - wheres the kernel?! voltron Linux - Newbie 5 05-28-2003 02:49 AM
Wheres my Kernel??!!! Smerk Linux - Software 12 03-21-2003 02:40 PM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration