LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-30-2004, 03:04 PM   #1
teet
LQ Newbie
 
Registered: Mar 2004
Location: Truman State University
Posts: 28

Rep: Reputation: 15
how to tweak kernel


Okay, so I installed fedora core 2 the other week and I quickly found that I needed to recompile my kernel in order to get the Nvidia driver to work.

So I followed the directions on another forum and they worked perfectly. I downloaded the latest 2.6.6 kernel (the whole thing, not a patch), and did a make oldconfig...but now I can't see my NTFS partitions (b/c the NTFS driver was for the original 2.6.5 kernel).

I know the 2.6 kernel has NTFS support built in, but when I go into my 2.6.6 source directory and do a "make gconfig" all the default options are checked...not the "custom" set of options that are running on my 2.6.6 kernel as we speak. Whenever I try to configure the kernel myself I always get error messages on the boot (there are only like 40 billion options to check).

My question is, is there an easy way to "tweak" my kernel (just turn a few things on/off), or will I just have to CAREFULLY go through the 40 billion options?

-teet
 
Old 05-30-2004, 03:12 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Before you ran "make oldconfig" did you copy the ".config" file from your old source directory?

If you selected "Kernel .config support" in your whne you compiled the kernel you are curently running then you can also get it by running:
cd /path/to/src/dir
cat /proc/config.gz | gunzip > .config
 
Old 05-30-2004, 03:44 PM   #3
teet
LQ Newbie
 
Registered: Mar 2004
Location: Truman State University
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Before you ran "make oldconfig" did you copy the ".config" file from your old source directory?
yes...I followed the directions from this site:

http://linuxiso.org/forums/viewtopic...a09eac48a6c6df

I also tried the following command:

cp /usr/src/linux-2.6.5-1.358/configs/kernel-2.6.5-i686.config /usr/src/linux-2.6.6/test.config

and then ran "make gconfig" and tried to load the "test.config" file...but it still just gave me the default options instead of the custom options.

(note: i DO NOT currently have kernel .config support enabled)

-teet
 
Old 05-30-2004, 03:57 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try running:
cp /usr/src/linux-2.6.5-1.358/.config /usr/src/linux-2.6.6/.config

Overwrite the file if asked, then:
make gconfig
 
Old 05-30-2004, 04:48 PM   #5
teet
LQ Newbie
 
Registered: Mar 2004
Location: Truman State University
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Try running:
cp /usr/src/linux-2.6.5-1.358/.config /usr/src/linux-2.6.6/.config
cp: cannot stat `/usr/src/linux-2.6.5-1.358/.config': No such file or directory

I also tried:

cp /usr/src/linux-2.6.5-1.358/configs/kernel-2.6.5-i686.config /usr/src/linux-2.6.6/.config

and running "make gconfig" but it didn't work either.

Thanks for trying

-teet
 
Old 05-31-2004, 03:03 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you didn't have a .config file in your old source directory then it must have been deleted or you ran make clean. You have probably lost your current configuration but make sure you make a backup of your .config file this time after you have built the kernel.
 
  


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
DNS Tweak viniosity Linux - Networking 2 01-04-2005 07:06 PM
Doom 3 tweak under linux??? Braveheart1980 Linux - Games 2 10-09-2004 02:48 AM
Slack - why do I tweak but not use? GAVollink Slackware 14 01-02-2004 06:51 PM
mrtg tweak eyexer0 Linux - General 1 06-03-2003 04:30 AM
tweak lakshman Linux - General 2 01-30-2003 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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