Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-11-2004, 10:22 AM   #1
LQ Newbie
Registered: Dec 2003
Posts: 19

Rep: Reputation: 0
Question **Default Config File for Linux Kernel Problems**

After installing Red Hat Linux 9.0 from CD, I need to be able to compile a new kernel in order to add some features that are required for my application. I am wondering if there is a configuration file that is hidden somewhere that contains the current configuration of the kernel that was installed on my particular computer when Red Hat was installed for the first time.

The default “/usr/src/linux-2.4.20-8/.config” file does not match the default kernel that is installed from the CD.

I have seen the templates that are available for the different computers, however, what I need is a configuration file that is exactly what Red Hat installed into the kernel for this particular computer. Does anyone have any idea on where to find this file? Or, if not, is there a way to find out exactly all options that are installed into the current kernel?

Is it possible to rebuild the kernel exactly like the one that is installed initially?

Old 02-11-2004, 10:59 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
redhat normally installs is to /boot/Config-x.y.z. i assume it's in the default kernel, if not i should come from that specfic kernel source rpm.

also try "cat /proc/config", which may well spit out the exact config (and if it's not make sure to include this config option in the kernel setup, so you'll not be in this situation again.
Old 02-11-2004, 12:23 PM   #3
LQ Newbie
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Okay. Well, I guess the correct answer is to CAREFULLY read the Red Hat manual. It describes the process in pretty good detail, however, I just left out a step or two...

Sorry for the post.
Old 02-12-2004, 10:13 AM   #4
LQ Newbie
Registered: Dec 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Okay, so now that that is figured out. Is there an easy way to make the kernel monolithic (without using modules)?

Thank you.
Old 02-12-2004, 12:45 PM   #5
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
The fabled monlithic kernel.....

The single best - not easiest - or fastest - way to build a monolithic kernel requires a few steps:

First, choose, aquire, and unpack the kernel source to /usr/src/ .

Next, configure the kernel to be entirely modular. This means that you compile every option as "M". Don't forget make modules and modules install.

Now, configure your bootloader, and boot the new kernel. This point of this is that by default, your kernel will support none of your devices. You must load the modules one by one until you find what works for your hardware. When you have found a stable, working config for a device, run an lsmod, and note the loaded mods for that device. Do this until everything works, and you have a complete list of all the modules needed to run your box.

Then, go in, and we'll compile the kernel again, this time choosing only the modules we need, and compiling them in, instead of making modules. You must also say no to kmod_support and module version support. Throw in anything else that you desire in the kernel, (Networking, File Systems, etc....) and then compile. Don't run make modules or make modules install. Just dep, clean, and bzImage.

Now, change your bootloader to reflect the monolith. In grub, add the following to the "kernel" line
Or into lilo (place it just below "image")
You now run one big block of a kernel.

I should tell you, however, that if you are running a proprietary box (you didn't build it) chances are, someone has already done this. Google:
"linux on your_machine_make_&_model_here"
It should return pages devoted to optimizing a kernel for your chipset.
Good luck.

Last edited by PenguinPwrdBox; 02-12-2004 at 12:50 PM.


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
Default GUI Config File Permaximus Slackware 4 11-05-2005 01:59 AM
where is torsmo's default config file? Godsmacker777 Linux - Software 4 03-07-2005 09:38 PM
a working default config file for 2.6 demmylls Linux - General 9 12-25-2003 11:45 AM
Default kernel config pioter Slackware 3 11-19-2003 07:49 PM
default kernel config bLaX Linux - Newbie 6 11-06-2002 08:10 PM

All times are GMT -5. The time now is 03:22 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