LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-07-2006, 10:41 AM   #1
mebaro
LQ Newbie
 
Registered: Jul 2005
Location: Miami
Distribution: RHES3, Fedora4
Posts: 16

Rep: Reputation: 0
Change kernel config wo rebuild


Is it possible to modify the kernel config without having to rebuild the kernel?

I need to change the "CONFIG_SCSI_MULTI_LUN" option to yes. It is currently "not set". I'm using Red Hat ES 3 with the default kernel installaion and options. I don't want to risk recompiling the kernel and removing something else from the default installation.

Thank You For Your Support...
 
Old 04-07-2006, 11:02 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
As far as I know it's not some sysctl tunable, so you'll have to compile.
A good start would be your current kernels .src.rpm.
 
Old 04-07-2006, 11:37 AM   #3
pretty.tulip
LQ Newbie
 
Registered: Apr 2006
Location: Egypt
Distribution: RedHat 9 & enterprise 4
Posts: 4

Rep: Reputation: 0
Hi Mebaro,
Unfortunately, you must rebuild kernel for any modification,but don't worry so much about kernel recompilation as long as you know very well what you are modifying,frankly I don't know that modification you want to do but I can advice you just to be careful in your choices, & it's better to backup your system files (just in case) by the command :
tar cvfp /etc.tar /mnt/d
that backup for /etc because it includes the configuration files for any service on your system.
* The option (p) to keep the path of the optained files &directories.
* /mnt/d is the directory of the compressed file, I assumed you have dual booting (linux & windows) or else you can put the backup on a cd.
* To restore the backup (I hope you don't need it), use the command:
tar xvf /mnt/d/etc.tar
Don't be afraid to recompile,1 of the Linux' advantages is its stability, even if in the worst cases you failed to restore the files, enter the 1st system cd (bootable cd) and make repair by chkdsk.
Good luck & Hope you don't need all that.
 
Old 04-07-2006, 02:07 PM   #4
mebaro
LQ Newbie
 
Registered: Jul 2005
Location: Miami
Distribution: RHES3, Fedora4
Posts: 16

Original Poster
Rep: Reputation: 0
OK, so I did a 'make menuconfig' and only added the multi lun support. I then compared .config with my boot config and they are very different. There are stanzas in the boot config that have been removed from .config. I then copied my boot config (/boot/config-2.4.21-32.EL) over .config and ran 'make menuconfig' again. I added only multi lun support and complated the configs again, and again they are very different.

How can I make a config that will compile my kernel identicle to the original with only the one change (multi lun)?
 
  


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
How to rebuild Grub config file rhstudent Linux - Laptop and Netbook 2 02-06-2006 08:46 PM
Need to rebuild entire kernel for each config change? rollo Linux - Newbie 12 10-28-2005 05:35 PM
DualBoot Fail: System Rebuild: Error upon reinstalling FC4 in Dual boot config krnlkule Linux - Newbie 1 09-06-2005 10:56 PM
forgot to make mrproper - how to rebuild config? chr15t0 Linux - General 5 12-31-2002 01:25 PM
Reusing .config during kernel rebuild ssu4716 Linux - General 1 04-01-2002 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:38 PM.

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