Solved

Kernel backup.

Posted on 1997-06-03
4
302 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now