Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > Linux > system administration

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

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: I don't have /usr/src/linux/.config      Add to my favorites
Hanry Zhou
Nov 8, 2003 11:18:16 GMT   

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,
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Martin P.J. Zinser This member has accumulated 2500 or more points
Nov 8, 2003 13:11:17 GMT    Unassigned

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 This member has accumulated 2500 or more points
Nov 8, 2003 16:42:51 GMT    Unassigned

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
Huc This member has accumulated 2500 or more points
Nov 8, 2003 17:04:07 GMT    Unassigned

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.)
Jerome Henry Expert in this area This member has accumulated 2500 or more points
Nov 9, 2003 03:53:26 GMT    Unassigned

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
Alexander Chuzhoy Expert in this area This member has accumulated 2500 or more points
Nov 9, 2003 04:36:18 GMT    Unassigned

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
Nov 10, 2003 00:04:08 GMT    Unassigned

Shall add up to what the rest have said. You can find a config file inside your /boot, do a `cp /boot/<config file> /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!
Hanry Zhou
Nov 11, 2003 10:07:01 GMT    N/A: Question Author

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?
Stuart Browne This member has accumulated 7500 or more points
Nov 11, 2003 17:32:09 GMT    Unassigned

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.
root
Nov 30, 2003 05:31:02 GMT    Unassigned

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
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.