LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-05-2003, 11:10 AM   #1
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
using old config for new kernel


Ok here is the problem, I have tried and tried again to compile a new kernel for my linux machine and every time it does not work. I have read everything I can find online from man pages to tldp and with no avail.

My question is can I somehow see what my kernel now has compiled in and then somehow just take out the options I don't want in it (usb, sound, etc) and compile what I do want in, (smbfs, quotas, etc) I have the default kernel that comes with redhat 7.2, I am running straight command line with no extras, just the base install with gcc and all I need to install programs.

If I could start with what already works and then go from there it would work much better but when I am starting from scratch and have never done this before it is frustrating to have 200 questions asked that I don't really know the answer to most of them. I know how to edit lilo and add in the new kernel and I know the steps to compile the kernel I just don't know the options to set while doing the make config

Thanks.
 
Old 02-05-2003, 12:45 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
All the options that you choose when you run 'make menuconfig' are strored in a file called '.config' in the /usr/src/linux-version (or whever Redhat put the kernel source) directory. When I download a new version of the kernel, I just copy the .config from the old directory to the new one, run 'make menuconfig' and then rebuild the kernel.

I'm not a Redhat user, but I think that they store the config file, for the kernel that they built, in the /boot directory. So, just copy the /boot/config-version to the /usr/src/linux-version directory and rename it as .config. Run make menuconfig, change the options that you want and that should be it.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel config Ph0enix2003 Linux - General 5 03-04-2005 06:43 PM
Kernel Config 0x86 Linux - Software 1 07-20-2004 03:29 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
kernel config help.. doublefailure Linux - General 32 07-06-2002 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:59 AM.

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