On Tue, Oct 02, 2001 at 04:04:04AM -0700, Yunus shaikh wrote:
> can you tell me how to strip the kernel 
> i tried doing it but it did not work 
> regards
---end quoted text---

You cannot strip a zImage or a bzimage, since the file headers
are changed. You need to compile afresh with all the essential 
modules static. Don't worry if the size is HUGE!

Copy it to /tmp or some other dir.
Then 'strip vmlinuz'
The resulting kernel would be 30% of original size (approx).

Do a rdev on the kernel and make sure it is pointed to your "/"
partition ... ('rdev vmlinuz /dev/hda2' ... or whatever).

I am not certain if subsequently doing a bzip2 on  it  affects
loading in any way, since I have not tried. If you  see kernel
sources, the first step is to unzip/ bunzip it before loading.
It may very well work ... in case not, you still have the ori-
ginal to work with. Can give it a try ... please  confirm back
on list (if successful) ... it would be nice to know.

Make a  loadlin  or  LILO boot floppy with this image and boot
from floppy to try out.  See  LOST  below for making a loadlin
boot floppy. You cannot make a boot floppy with mkbootdisk for
this type of trial static kernel. Use the  "mbf"  script on my 
home page (http://geocities.com/usmbish/) to make a LILO based 
boot floppy.

Bish. 


:
####[ Linux One Stanza Tip (LOST) ]###########################

Sub : How to make a Loadlin bootdisk                 LOST #119

This is the simplest way making your own boot disk.  Totally a 
DOS prompt job. In DOS [1] "format a: /s/v" [2] Copy two files
your kernel (usually vmlinuz) and "loadlin.exe" to it, [3] and  
make a one-line config.sys to point to your / device and boot:
e.g. "shell=a:\loadlin.exe a:\vmlinuz root=/dev/hda2 ro"
      
####<[EMAIL PROTECTED]>####################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to