Solved

Kernel backup.

Posted on 1997-06-03
4
303 Views
Last Modified: 2013-12-15
I have justdone as follows:

1 make mrproper
2 make menuconfig
3 make dep
4 make clean
5 make zdisk

Now I like to replace my old kernel. I wounder if I can take a backup of it before I replace it?? How??

What do I have to do to get my new kernel at my harddrive??
(I'm running lilo)

Can you also give me some tip about what to check if it works before replacing the kernel??

Thanks!

0
Comment
Question by:n94magho
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:cgreenup
ID: 1627796
First thing you need to do is add an entry for your new kernel in your lilo.conf (probably in /etc/).  You'll need to specify it's location, it's root file system, a label, etc.  Basically, mirror your current kernel's entry with the exception of the location and the label.  Then run lilo (maybe in /sbin/).  When you reboot next time, you will have the new kernel image as a boot option.  You can boot to it, test it out, and if it doesn't work, reboot and enter in the label for the working kernel, and begin again.  This should provide the test you're looking for.  Once you're sure that you have a properly functioning re-compiled kernel, then you can back up the old one, replace the old one, or whatever you would like.  :)
0
 

Author Comment

by:n94magho
ID: 1627797
Sorry! Mabe I didn't explained so good but my english is so bad.
I have my new kernel on a floppy (after I made  "make zdisk") And I this floppy work good as far as I know. So I like make a copy of my old kernel (to kernel.old in case that my new does'nt work as good as I think.). Which file shall I make a copy of?? And when I have done that I like to replace the old kernel. How??
(I have the new kernel on a floppy after "make zdisk" (as I said before).

0
 
LVL 1

Accepted Solution

by:
cgreenup earned 50 total points
ID: 1627798
Actually, you were perfectly clear, I just didn't read close enough.  Ok, first things first.  Find out what the name of your current trusted kernel is.  You can look in lilo.conf and see what the 'image' line points to.  Then rename that file.   Then copy your new kernel (probably zImage) off the floppy onto your hard drive.  Rename it to the same name that your old kernel used to have.  With the new kernel using the name that your old kernel used to have, you should be able to boot to the new kernel in the same way that you used to boot to the old one.  In order to be able to boot to the old one now, you still need to make a new entry for it in the lilo.conf (the same entry as the default can be used with the exception of the 'image=' and 'label=').  

By the way, there is another way to set this up: 'make zlilo' will install the kernel and set everything up to use it, so long as your setup conforms to a few specific conventions:  your kernel image must be /vmlinuz, lilo.conf must be in /etc, and lilo must be in /sbin.  You might be able to give that one a try (after doing the backup, of course).
0
 

Author Comment

by:n94magho
ID: 1627799
Thanks for a quick answer!



0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nagios alerts 3 47
Oracle 10g standard edition server with 4 processors 3 55
Migrating php-mysql-jquery application to Microsoft Azure Cloud 7 31
number in printf 13 27
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question