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

Notices

Reply
 
Search this Thread
Old 07-27-2006, 08:15 AM   #1
hodges
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
View current kernel config


Hi,

Something I plan to do requires setting a particular kernel parameter to yes. Rather than configure and recompile the kernel with this parameter on, I wondered if there was a way to first check what parameters the currently running kernel was compiled with, as it may already have had this one on.

Thanks very much,
Simon
 
Old 07-27-2006, 08:35 AM   #2
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
Providing you have kernel source installed. Usually at /usr/src. OPen a terminal and cd into the kernel source directory, then do make menuconfig or make xconfig to view the kernel configuration editor, or open your favourite editor and open /usr/src/linux-version/.config

The .config file shows all the options that are set or not set.

Regardless of where your kernel source is located, just cd into it and do as above.
 
Old 07-27-2006, 08:45 AM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
try to do
Code:
make oldconfig
or
Code:
zcat /proc/config.gz > .config
Edit: changed cmdline.gz to config.gz. sorry bout that.

Last edited by konsolebox; 07-27-2006 at 08:46 AM.
 
Old 07-28-2006, 03:37 AM   #4
hodges
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
All great solutions, thanks very much - problem solved.

Simon
 
  


Reply


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
Any way to view the current processes? alyks Suse/Novell 7 10-18-2004 10:04 AM
need to check the current kernel .config file jimi_j Red Hat 1 06-28-2004 06:17 PM
"make config" with current kernel arimus25 Linux - Software 1 03-08-2004 06:26 PM
finding current kernel config? reetep Linux - Newbie 2 12-31-2003 05:43 AM
Where can I see current kernel config? kernelclink Linux - Newbie 3 03-07-2002 02:51 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration