Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Mar 2000 01:56:30 -0500
From:      Nick <nmanisca@vt.edu>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-alpha@freebsd.org
Subject:   Re: catch22?
Message-ID:  <20000326015630.A7725@vt.edu>
In-Reply-To: <14557.36116.339772.170363@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Sat, Mar 25, 2000 at 11:08:49PM -0500
References:  <3.0.32.20000325214523.0340c140@mail.vt.edu> <14557.36116.339772.170363@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 25, 2000 at 11:08:49PM -0500, Andrew Gallatin wrote:
> 
> nm writes:
>  > 
>  > The fs's gave me enough room, so now my top works, thanks again :)
>  > 
>  > Nick
> 
> Cool.  Can you post your success story to the mailing list?  It might
> be good to have it in the archives.  
>

Sure!  Here is some info on booting your FreeBSD system with a boot disk.

First, I dd'd kern.flp (from /floppies of the FreeBSD distribution) to a
floppy.

Then mounted it, and removed the stock kernel.gz.  Next, I compiled my own
kernel and left out some things such as the NFS support and MSDOS fs, 
and CD9660 support.  This was in an effort to cut the size down so that 
it would fit on the floppy.

Now, once the kernel is built, I DID NOT strip it (if you strip it you
won't be able to use utils like top).  gzip the kernel and place kernel.gz
on the floppy (where the previous kernel.gz was located).

Next, edit the loader.rc in the boot directory of the floppy.
Here is what I used:

load /kernel.gz
set root=/dev/sd0a
autoboot 10 

root for me is /dev/sd0a.  I am not sure if setting this variable is what
tells the kernel where root is, or if it learns this from the -flags passed
to the loader from SRM (someone want to correct me here?).

umount the disk and you *should* now have a boot disk.

Please contact me if you can't get this working.


Nick Maniscalco
nmanisca@vt.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000326015630.A7725>