Operating System - Linux
1827807 Members
2892 Online
109969 Solutions
New Discussion

Re: I don't have /usr/src/linux/.config

 
Hanry Zhou
Super Advisor

I don't have /usr/src/linux/.config

I've read some docs about linux kernel, and they all are referring the file /usr/src/linux/.config, what is this one for, and why I don't have such file. I have /usr/src/linux-2.4, and no .confg underneath.

uname -a
2.4.9-e.27smp #1 SMP Tue Aug 5 15:49:54 EDT 2003 i68

Thanks,
none
9 REPLIES 9
Martin P.J. Zinser
Honored Contributor

Re: I don't have /usr/src/linux/.config

Hello Hanry,

.config contains the choices you made during the configuration before the Kernel build. If you have not configured/rebuild your own kernel there will be no .config

Greetings, Martin
Huc_1
Honored Contributor

Re: I don't have /usr/src/linux/.config


Martin is right this created the first time you run make config, make menuconfig or make xconfig as root from within the /usr/src/linux

To find you more information if you are so incline by having a look at the Makefile in /usr/src/linux

J-P
Smile I will feel the difference
Huc_1
Honored Contributor

Re: I don't have /usr/src/linux/.config

Sorry about previous reply entry mess ! (should review after cut and paste and before submitting my reply's)

Martin is right this is created the first time you run make config, make menuconfig or make xconfig as root from within the /usr/src/linux

find more information on this by having a look at the Makefile in /usr/src/linux

J-P (please no points for first entry thanks.)
Smile I will feel the difference
Jerome Henry
Honored Contributor

Re: I don't have /usr/src/linux/.config

Hanry,

The best way, if you want to learn more about your kernel, would be to run
make mrproper
make xconfig
You'll get a menu, in which you'll be able to browse all your kernel options, and to see which options are already ticked. It's graphical, organised and easier to read than a .config file, which you anyway don't have up to the time you compiled your kernel.
You may also search on google for this file, you'll find many examples (seem to be real machine sfile, strange AFA security is concerned, but anyway...)

J
You can lean only on what resists you...
Alexander Chuzhoy
Honored Contributor

Re: I don't have /usr/src/linux/.config

If you want to start making changes to the kernel you currently have -then just copy /boot/config-(kernel_version) to /usr/src/linux/.config
and this would be your starting point for changes.
Regards
Ragu_1
Regular Advisor

Re: I don't have /usr/src/linux/.config

Shall add up to what the rest have said. You can find a config file inside your /boot, do a `cp /boot/ /usr/src/linux-2.4/.config'. This .config file will help you start off with, once you do a `make menuconfig'. Before you start configuring your kernel, read the doc /usr/src/linux-2.4/Documentation/Changes. Under Debian GNU/Linux, there is this wonderful `kernel-package'. It consists of a perl helper script `make-kpkg', it generates a .deb file of the kernel image for your portable pleasure!
Share and share alike
Hanry Zhou
Super Advisor

Re: I don't have /usr/src/linux/.config

I don't have /boot/config* file, and nor /usr/src/linux/.config. Does that mean the kernel never been rebuilt on the box? Is /boot/config-kernelversion identical with /usr/src/linux/.config?
none
Stuart Browne
Honored Contributor

Re: I don't have /usr/src/linux/.config

Looking at the kernel name you've got there, it looks like you're using RedHat Advanced Server 2.1 (or another Enterprise RH product).

By default, this doesn't dump the .config to /boot (like Suse, and I thnk Debian do).

If you've installed the kernel-source package, you should also have a /usr/src/linux-2.4/configs/ directory which has a nubmer of '.config' files for various builds of the kernel.

Try copying one of these to /usr/src/linux-2.4/.config, and see how you go.
One long-haired git at your service...
root_6
Advisor

Re: I don't have /usr/src/linux/.config

sir

ur kernel config file is in /boot directrory either on seprate partiion or in the same /
its name is not only config
its name is some thing having ur kernel version
e.g
2.4.22config