Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Kernel backup.

Posted on 1997-06-03
4
Medium Priority
?
311 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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,…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

926 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