[1365] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: RH4.0 Boot Disk - Problem

daemon@ATHENA.MIT.EDU (Jon Klaren)
Mon Oct 28 00:44:37 1996

Date: Sun, 27 Oct 1996 21:41:36 -0800 (PST)
From: Jon Klaren <jklaren@qualcomm.com>
To: Pedro Soria-Rodriguez <sorrodp@ece.WPI.EDU>
cc: redhat-list@redhat.com
In-Reply-To: <Pine.OSF.3.95.961027224327.12713B-100000@ece.WPI.EDU>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Sun, 27 Oct 1996, Pedro Soria-Rodriguez wrote:
> Date: Sun, 27 Oct 1996 22:52:44 -0500 (EST)
> From: Pedro Soria-Rodriguez <sorrodp@ece.WPI.EDU>
> To: redhat-list@redhat.com
> Subject: Re: RH4.0 Boot Disk - Problem
[snip]
> 	What i need to know now is how to build my own kernel and put 
> it in the boot disk.
[snip]
> 	However, teh kernel in the boot.img is not "my release" so it
> shows that message when accessing the CD-ROM.  I can build a kernel
> with the same options as the one in the distribution, but when I have
> tried to put it in a boot disk, it doesnt find the ramdisk that the
> default kernel otherwise does find.
> 
> 	So basically: Where can I find information on how to put my own
> kernel on a boot disk?
[snip]

Take redhat's own boot disk and extract the initial root disk from it by
doing:
* put boot disk in floppy drive
* # dd if=/dev/fd0 of=initrd.gz bs=1k skip=500

Now make your own boot disk by doing:
* compile your own kernel.  Erik posted to this list the actual kernel
.config file that he used. 
I haven't done the rest of this, so maybe someone who _has_ can fill in
the details
* put the initial ramdisk image on the floppy using
	dd if=initrd.gz of=/dev/fd0 bs=1k seek=500
* put the kernel on the floppy.
* Install LILO on the floppy with the initrd parameter

I've done this with success to a 4.0 bootdisk using a DOS-format disk
and loadlin called from the autoexec.bat.
In that case, you put the zimage and initrd.gz on the disk and call
loadlin as follows:
a:\loadlin a:\zimage initrd=a:\initrd.gz

Good Luck,
-Jon
Jon Klaren
San Diego, CA USA
jklaren@qualcomm.com


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post