LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2005, 02:30 PM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
Best way to tell how a kernel is configured if no config file is accessible?


hi i was wondering what is the best way to find out the configuration of a kernel if you don't have access to a config file? Im having some kernel issues and need to see how it was conifgured.

some questions not specific to the post title but related -

Is ther e a way to generate a config file post compile?
Is it possible to have it generate one while compiling or are they files you need to write yourself?

thanks for any responses in advance.
 
Old 06-01-2005, 02:34 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Most kernels these days are compiled with ".config" or ".config.gz" support. If so, you can get the configuration from the running kernel in /proc/config or /proc/config.gz.

EDIT:
Sorry... it only shows up in /proc/config.gz if you have the .config.gz support enabled. Otherwise you'd have to use the script scripts/extract-ikconfig from the kernel source tree to get the configuration.

Last edited by jtshaw; 06-01-2005 at 02:36 PM.
 
Old 06-01-2005, 02:45 PM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
i figured the information would be in proc. the only problem i see is i don't have a /proc/config file or directory. this is the output of ls /proc/

[jeff@localhost proc]$ ls /proc/
1 2020 2539 2929 3123 crypto kcore stat
10455 2024 2558 2931 3125 devices kmsg swaps
10477 2045 2582 2936 3132 diskstats loadavg sys
10482 2066 2612 3 3134 dma locks sysrq-trigger
10558 2098 2618 3048 344 dri mdstat sysvipc
10559 2198 2624 3068 395 driver meminfo tty
10560 2208 2630 3076 4 execdomains misc uptime
10879 2220 2636 3078 79 fb modules version
1412 2433 2637 3080 9 filesystems mounts vmstat
151 244 2738 3082 92 fs mtrr
152 2448 2831 3084 acpi ide net
153 2467 2842 3086 asound interrupts partitions
154 2476 2872 3087 buddyinfo iomem pci
18 2487 2920 3090 bus ioports scsi
1973 2498 2924 3118 cmdline irq self
2 2520 2927 3121 cpuinfo kallsyms slabinfo

the kernel is 2.6.11.10 and the distro is fedora core 2. thanks for your quick reply.
 
Old 06-01-2005, 02:47 PM   #4
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
Yes, I just posted minutes later my (subtle) complaint that too many distros atlk too much about the packages they include but never about the config file they set for the kernel compile.

To offer an linux distro and not explicitly include the associated kernel compile file is a total lack of attention to detail. OK, so that's not a bug or an offence or anything you'll go to jail over, but surely no linux distro is complete without a the kernel compile config file somewhere, perfrebly the actually web site alot with all the packages they installed.
 
Old 06-01-2005, 03:22 PM   #5
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
well i've used fedora core and they seem to include a config file for their kernels in the /boot/ directory. I don't know where (if anywhere) config files show up for custom kernels.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I configured logroate.d -> squid but didn't roate according to my config. Niceman2005 Linux - Networking 4 02-06-2005 08:49 PM
Use old kernel config file? RoaCh Of DisCor Linux - Software 4 01-04-2005 10:31 PM
.config file for new kernel plan9 Slackware 2 06-04-2004 07:02 PM
2.6.4 Kernel Config file Nappa Slackware 10 04-10-2004 12:14 AM
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 - General

All times are GMT -5. The time now is 05:26 AM.

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