Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-09-2006, 12:22 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
pull compile config out of running kernel

is there anyway to find out what options a running kernel was compiled with?

i have a unknown manufacturer server box that runs fine w/ an existing linux system. the kernel wasn't compiled on this box. i want to build up a new system from scratch on this box, but i'm not sure what drivers etc i'll need. instead of watching the boot up and making lots of notes, is there any way i can pull the info out of the kernel itself? i'm looking to create a .config for the existing kernel from the kernel binary itself.

thanks in advance.
Old 07-09-2006, 12:30 AM   #2
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
look in /proc if there is a file called config.gz then you can "zcat /proc/config.gz > filename" to get the compile options. Or (derending on your setup) it may be in /boot/config-(kernel-version) eg config-2.6.15-25-686


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how could i compile a kernel using the old config speel Slackware 11 07-04-2005 11:59 PM
Kernel compile isn't reading my .config file...? R00ts Debian 4 03-21-2005 08:46 PM
Running a kernel compile for first time Guvvy Linux - Newbie 3 02-07-2005 10:42 PM
Need a SIMPLE CONFIG file for Kernel compile bongski55 Linux - Newbie 1 09-02-2003 09:54 AM
kernel compile with spec. config Sammy2ooo Linux - Newbie 3 07-03-2003 02:39 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:59 PM.

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