Solved

Kernel backup.

Posted on 1997-06-03
4
301 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for a quick answer!



0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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

10 Experts available now in Live!

Get 1:1 Help Now