Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-07-2006, 11:41 AM   #1
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, 12:02 PM   #2
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
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, 12:37 PM   #3
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, 03:07 PM   #4
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)?


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to rebuild Grub config file rhstudent Linux - Laptop and Netbook 2 02-06-2006 09:46 PM
Need to rebuild entire kernel for each config change? rollo Linux - Newbie 12 10-28-2005 06:35 PM
DualBoot Fail: System Rebuild: Error upon reinstalling FC4 in Dual boot config krnlkule Linux - Newbie 1 09-06-2005 11:56 PM
forgot to make mrproper - how to rebuild config? chr15t0 Linux - General 5 12-31-2002 02:25 PM
Reusing .config during kernel rebuild ssu4716 Linux - General 1 04-01-2002 01:06 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration