LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack 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: 26,534
Blog Entries: 51

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 12:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration