From owner-freebsd-questions Tue Oct 2 0:26:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.98.60]) by hub.freebsd.org (Postfix) with ESMTP id 46C3337B40E for ; Tue, 2 Oct 2001 00:26:38 -0700 (PDT) Received: from localhost (kheuer@localhost) by gwdu60.gwdg.de (8.11.3/8.9.3) with ESMTP id f927QYm51824; Tue, 2 Oct 2001 09:26:34 +0200 (CEST) (envelope-from kheuer@gwdu60.gwdg.de) Date: Tue, 2 Oct 2001 09:26:33 +0200 (CEST) From: Konrad Heuer To: wu zhigang Cc: Subject: Re: Please advise In-Reply-To: <000001c14b0d$e75eeae0$c4d715a5@zgang> Message-ID: <20011002092051.U51649-100000@gwdu60.gwdg.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 2 Oct 2001, wu zhigang wrote: > I have a question about using the FreeBSD OS, Please advise. > > I want to format a bootable floppy using the FreeBSD OS, and I want > copy a .exe file into the floppy, then run the .exe file, no need to > probe the hard disk or other devices other than a floppy. Please > advise how to do this, Thanks. You may find at ftp://gwdu60.gwdg.de/pub/FreeBSD/misc/minisys.flp a floppy disk image which boots a 4.3-STABLE kernel without network and SCSI support. I built the image for a purpose similar to yours. You may replace /sbin/init on the floppy with your executable, but take a look at the source /src/myinit.c before. Don't forget to statically link your C code by using `cc -static ...'! The floppy disk image can be written to a floppy disk by using fdimage.exe or dd as described for the FreeBSD installation floppies. Hope that helps! Konrad Heuer Personal Bookmarks: Gesellschaft f=FCr wissenschaftliche Datenverarbeitung mbH G=D6ttingen http://www.freebsd.org Am Fa=DFberg, D-37077 G=D6ttingen http://www.daemonnews.o= rg Deutschland (Germany) kheuer@gwdu60.gwdg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message