LinuxQuestions.org
Review your favorite Linux distribution.
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-23-2005, 01:37 PM   #1
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Rep: Reputation: 30
kernel config


how can i verify what the running kernel is compiled to support without having the kernel config file?
 
Old 06-23-2005, 01:53 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
In general, you can't. You could look for kernel module files under /lib/modules, but that will only tell you what is supported through modules, not what is or isn't compiled in.

However, recent 2.6 series kernels have started embedding the configuration file and making it available as /proc/config.gz, which you can view with:
Code:
gunzip < /proc/config.gz | less
or extract to your home directory with:
Code:
gunzip < /proc/config.gz > ~/.config
It should be noted that the option to supply this file can be turned off, but I've never known anyone actually do this.
 
Old 06-23-2005, 02:03 PM   #3
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Original Poster
Rep: Reputation: 30
it's the service consol of esx, it's running kernel 2.4.9-vmnix2, redhat 7.2. I want to see what they compiled the kernel to support. your tip worked on my workstation running NLD, but not on the server. Any other suggestions?
 
Old 06-23-2005, 06:05 PM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Isn't there a config file in your /boot directory?
 
Old 06-23-2005, 08:19 PM   #5
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Also maybe in

/usr/src/linux
 
Old 06-24-2005, 01:48 AM   #6
puishor
Member
 
Registered: Jun 2005
Location: Bucharest
Distribution: Debian,Knoppix,Slackware
Posts: 91

Rep: Reputation: 15
Quote:
Isn't there a config file in your /boot directory?
Yes,it is.
Here rise the following question:
I use kernel 2.4.x .
If I use the /boot/config-2.4.x file for xconfig program , only to change some settings , in order to recompile a 2.6.10 kernel , is that gonna work ?
At least does this sound reasonable ?
 
Old 06-24-2005, 06:06 AM   #7
Dr Croubie
LQ Newbie
 
Registered: Mar 2005
Location: c-/ Unibar, Adelaide University, South Australia
Distribution: SuSE 9.1
Posts: 10

Rep: Reputation: 0
Quote:
Originally posted by puishor
If I use the /boot/config-2.4.x file for xconfig program , only to change some settings , in order to recompile a 2.6.10 kernel , is that gonna work ?
At least does this sound reasonable ?
if you:
cp /boot/config-2.4.whatever /usr/src/linux/
and then:
make xconfig
you'll get all the settings of your old kernel. problem is, any new bits added into the kernel will be set at their default value, which can sometimes be dangerous (or at the least, annoying, and could make your new kernel slow and/or big). so make sure you investigate anything that's marked as 'new'.

or instead, going for:
make oldconfig
will auto-skip any old bits, and only prompt for new stuff since your old kernel. but it takes ages (at least 200 changes from 2.6.4 to 2.6.6.11). lot slower, but you definately pick up all the changes.
 
  


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
kernel>config linuxhippy Slackware 7 04-09-2005 10:59 AM
Kernel config Ph0enix2003 Linux - General 5 03-04-2005 06:43 PM
kernel config? dfowensby *BSD 8 04-03-2004 06:16 AM
INFO: creating a special secured kernel (grsecurity kernel patch) w sysctl config markus1982 Linux - Security 0 05-25-2003 05:29 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:35 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