Subject: Re: A boot disk
To: Julio Merino <juli@merino.net>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: port-i386
Date: 06/13/2001 14:08:27
On Wed, Jun 13, 2001 at 02:14:53PM +0200, Julio Merino wrote:
> Hi all,
> 
> before switching my linux gateway to NetBSD, I would like to check
> a compiled kernel that I've done for it. I'm now wondering how
> can I create a boot disk with my own kernel to check if the
> computer boot ok... (don't need sh or anything, just the kernel).
> 
> I've tried to write some of the cdrom images inside 
> i386/installation/floppy to a floppy disk, but then I'm unable to
> mount them in any directory! So I can't change it's kernel....
> 
> Any idea?

Simplest might be:

disklabel -r -w /dev/fd0a floppy3
newfs /dev/fd0a
/usr/mdec/installboot -v -f /usr/mdec/biosboot.sym /dev/rfd0a
mount /dev/fd0a /mnt
cp yourkernel /mnt

and see how far it gets...


> P.S: Do you think NetBSD is ok for a gateway and server (http, ftp)? 
> (security and such things).

Of course! Then again, I'd be biased ;)

Cheers,

Patrick