*BSD News Article 50591


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoregon.edu!vixen.cso.uiuc.edu!news.ecn.bgu.edu!newspump.wustl.edu!gumby!andrews-cc!gillham
From: gillham@andrews.edu (Andrew Gillham)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: How to make bootable floppy?
Date: 10 Sep 1995 16:48:18 GMT
Organization: Andrews University
Lines: 25
Message-ID: <42v4si$hg1@orion.cc.andrews.edu>
References: <42uv4j$3d3@news.laser.net>
NNTP-Posting-Host: edmund.cs.andrews.edu

In article <42uv4j$3d3@news.laser.net> patton@laser.net writes:
>
>I have the original installation diskette to boot from in an emergency for now,
>but how do I go about creating one from scratch?  Specifically I need the 
>capability to restore files using dump and format/maintain partitions.  I also would
>like to use my own compiled kernal.  Is this possible?

Look in /usr/src/distrib/i386/floppies for an example of how all this
stuff works.
Basically:
# disklabel -w -B -b /usr/mdec/fdboot -s /usr/mdec/bootfd /dev/fd0a floppy
# newfs /dev/rfd0a
# mount /dev/fd0a /mnt
# cp /sys/arch/i386/compile/MYKERNEL/netbsd /mnt/netbsd
# umount /mnt

This should do it.  "disklabel -w -B /dev/fd0a floppy" would probably
be ok also.

-Andrew
-- 
============================ Real 32bit multi-tasking UN*X System
Andrew Gillham             | TCP/IP,NFS,PPP,4.4BSD-lite,multi-user
gillham@andrews.edu        | i386,sparc,alpha,mac68k,amiga,others
LAN/WAN/NW/UN*X specialist |   ---> http://www.NetBSD.org <---