Solved

Kernel backup.

Posted on 1997-06-03
4
306 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

635 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