MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an IBM eServer xSeries 335 server with a Serverworks chip. This server is currently running Mandrake Multi-Network-Firewall (MNF) which is the 2.4.18-8mdk kernel (I think the same version as Mandrake 8.2). I paid a significant amount of money for this OS in order to get support from Mandrake which I did not receive.
Anyway, I think that 2.4.18 is the latest version of MNF but obviously outdated. In addition, I have this problem , a known incompatibility between my kernel and the Serverworks chip, that I would like to resolve. I should probably mention this server ran fine for just over a year until this problem started last week.
I believe this issue applies to kernels 2.4.18 through 2.4.20. My Mandrake 9.1 workstation has the 2.4.22-10 kernel and I have the installation CD's for that. But, I like the features of MNF, in addition, I have my iptables firewall, proxy server - squid, internet filtering, hardware, and everything set up just the way I need it.
My question is: is it possible to upgrade my kernel from 2.4.18 to 2.4.22 from my 9.1 CD, while preserving the configuration of my existing system, in order to resolve my problem ?
So EXTRAVERSION should equal nothing. If has the word "custom", then this needs to be removed, but it's a good thing to know about for the future*.
6) make mrproper (this sets up your kernel sources properly)
7) make xconfig (this loads the config program, use make menuconfig if in console mode)
8) Now this stage is very important. You can't just pick any old stuff and try to compile. You must use a config file from the working kernel that you usually use. This will be found in the boot directory. Open another terminal window and do an:
ls /boot
You'll most likely see something like config-2.4.22-1.2115.nptl for Fedora Core 1 and config-2.4.20-8 for redhat 9 (although the kernel versions change a lot in redhat 9 releases).
9) Load in the old config file by clicking the "Load Configuration From File" button. Then in the Enter Filename box, enter:
/boot/config.2.4.<whatever>
Obviously, replace <whatever> with the filename you saw listed in step 8.
10) When you click ok, there is no success message. If you are returned to the screen with all the options, then the config loaded fine. If it didn't, it would have shown an error.
11) Now to set the required options:"
hope this helps.
Last edited by GlennsPref; 12-20-2004 at 05:15 PM.
Wow thanks for all the great replies. I will read all that. Sooooo.. what your saying is I **do** or **do NOT** have to back up all my config files? My greatest fear is having to hunt through every directory looking for *.conf and *./config files and find somewhere to put them and remember where they go. (I might miss something important.)
Re: How to upgrade kernel but preserve configuration?
Quote:
Originally posted by Avatar Hi Mandrake experts.
I have an IBM eServer xSeries 335 server with a Serverworks chip. This server is currently running Mandrake Multi-Network-Firewall (MNF) which is the 2.4.18-8mdk kernel (I think the same version as Mandrake 8.2). I paid a significant amount of money for this OS in order to get support from Mandrake which I did not receive.
Anyway, I think that 2.4.18 is the latest version of MNF but obviously outdated. In addition, I have this problem , a known incompatibility between my kernel and the Serverworks chip, that I would like to resolve. I should probably mention this server ran fine for just over a year until this problem started last week.
I believe this issue applies to kernels 2.4.18 through 2.4.20. My Mandrake 9.1 workstation has the 2.4.22-10 kernel and I have the installation CD's for that. But, I like the features of MNF, in addition, I have my iptables firewall, proxy server - squid, internet filtering, hardware, and everything set up just the way I need it.
My question is: is it possible to upgrade my kernel from 2.4.18 to 2.4.22 from my 9.1 CD, while preserving the configuration of my existing system, in order to resolve my problem ?
Thank you very much in advance.
--A
I don't know if this will work in your case, but I have about six different kernel in my machine. I have two computers. One is running 2.4, it has three kernels, just take a look at sixbone.com to see one of them, and my laptop which is the one that has about six different kernels. Any way, this what I do to upgrade to a different kernel:
urpmi --fuzzy kernel
and I get a list of the kernel available, pick the one I want, installe it, and reboot.
Of course, you will be using a CD, probably you will not see as many kernel as I see.
The beauty of the command above is that automaticly uptade my lilo, puts the respective stanza, etc.
I find using RCS is handy for backing up config files before changing them. You can have several versions backed up and make a short comment when you check-in a config file. Later, if you need to you can read these comments and restore the version that you want.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.