Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2000 12:42:33 +1000 (EST)
From:      =?iso-8859-1?q?Paul=20Jansen?= <vlaero@yahoo.com.au>
To:        questions@freebsd.org
Subject:   extracting bootblock from dos 6.22 boot floppy (FreeBSD 4.1)
Message-ID:  <20000906024233.6557.qmail@web5101.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi,

I would like to know how to extract a boot block from
a floppy disk so I can create a bootable floppy image.
I plan on making larger-than-floppy sized images to
use to network boot machines using etherboot. It seems
I must overcome this problem before I can get anywhere
with this though.

I've created a boot floppy from a working msdos 6.22
system using 'format a: /s /u'.

I've used the command:

dd if=/dev/fd0 of=/usr/tmp/bootblock bs=512 count=1

To verify that the bootblock is being extracted
correctly these is what I doing:

(1) extracting the boot block from a bootable floppy
using the command above
(2) Creating a floppy image using mformat and writing
the extracted boot block to this image.
To do this make sure the mtools package is installed. 
The edit the file ~/.mtoolsrc and add the line:

drive x: file="/usr/tmp/floppyimage"

then issue this command:

mformat -C -t 80 -s 18 -h 2 -B /usr/tmp/bootblock x: 

(3) copying the msdos.sys, io.sys, and command.com
files from the bootbale floppy to the newly created
floppy image using mcopy:

mcopy a:/io.sys a:/msdos.sys a:/command.com x:/

(4) writing this floppy image to another floppy disk
and try booting a machine with it.

dd if=/usr/tmp/floppyimage of=/dev/fd0 


I believe this process should should allow this other
floppy disk to be a bootable msdos 6.22 floppy after
the steps described above are performed.  This results
in the error message:

non-system disk or disk error
replace and press any key when ready


Can someone tell me what I'm doing wrong here?

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




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