From owner-freebsd-questions Wed Sep 6 20:29:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from web5102.mail.yahoo.com (web5102.mail.yahoo.com [216.115.106.72]) by hub.freebsd.org (Postfix) with SMTP id 3C66A37B422 for ; Wed, 6 Sep 2000 20:29:20 -0700 (PDT) Message-ID: <20000907032919.23166.qmail@web5102.mail.yahoo.com> Received: from [203.11.192.243] by web5102.mail.yahoo.com; Thu, 07 Sep 2000 13:29:19 EST Date: Thu, 7 Sep 2000 13:29:19 +1000 (EST) From: =?iso-8859-1?q?Paul=20Jansen?= Subject: mformat (from mtools) broken in freebsd 4.1? To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is mformat able to make a bootable dos filesystem? I've done: dd if=/dev/fd0 of=/usr/tmp/bootfloppy then done this witha blank floppy in the drive: dd if=/usr/tmp/bootfloppy of=/dev/fd0 This results in a copy of the floppy that is bootable (I tested this disk out by booting a system with it). I try creating an image with mformat. Firstly, with a bootable msdos 6.22 floppy in the drive: dd if=/dev/fd0 of=/usr/tmp/bootblock bs=512 count=1 Then I made an entry in ~/.mtoolsrc to declare a dos filesystem to be mapped to a file: drive x: file="/usr/tmp/bootfloppy" then format the x: drive: mformat -C -t 80 -s 18 -h 2 -B /usr/tmp/bootblock x: Then, making sure the bootable floppy is in the drive again I try copying the required msdos system files to the X: image mcopy -pm a:/io.sys a:/msdos.sys a:/command.com x:/ I then dump the x: drive image to a blank floppy: dd if=/usr/tmp/bootfloppy of=/dev/fd0 I then try and boot a system off this and I get: Non-system disk or disk error replace and press and key when ready Why is this happening? Thanks. _____________________________________________________________________________ http://geocities.yahoo.com.au - Yahoo! Australia & NZ GeoCities - Build your own Web Site - for free! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message