To make a boot floppy suitable for dd into a
boot.img file, use a Windows 98 machine to
do a 
format a: /s
which installs the system.
Then copy the files from the boot directory under the directory
containing this file to the floppy.

You can edit CONFIG.SYS and AUTOEXEC.BAT to change the
menu selections.  The rest of the files you will
want to leave alone.  Note that you need the CRLF format
of line end.  You can use the unix2dos command to build this.
unix2dos -n CONFIG.SYS CONFIG.SYS2

You can boot from the floppy to make sure you have the syntax right.
You won't actually have the X: drive available unless you make one
and put it in the CDROM.
After you get the floppy to boot, put it in a linux floppy Drive and do:
dd if=/dev/fd0 of=/tmp/boot.img
You can also create the boot.img with the rawread program.
rawread C:\temp\boot.img  a:
(A copy is in the newboot directory)

Put the image file in the image directory, for example, the
cdrom directory.  Put any other files you need in the directory.
This will end up being the X: drive.  If you look at the AUTOEXEC.BAT file
from the boot directory you will see that depending upon the boot config
option, it will copy files from various directories on the CDROM (X:) to
the R: drive which is the ram disk.  It then executes the command from the RAM drive.


In the cdrom directory is a mkiso.sh file with the command to run
mkiso and build the ISO image.  This will build an image suitable for
burning.  Under windows, there is a copy of mkisofs.exe which will run
under windows.  It seems to take the same parms as the Linux mkisofs.
At least the ones we are using.

Other Dirs:
The newboot directory has boot files in various stages of editing.
The pqmagic directory has the combined contents of the 2 partition magic 
floppies.  It also has windows tools useful in building the 
boot CDrom without using Linux.


######################################################################################
REM AUTOEXEC.BAT
REM @ECHO OFF
MSCDEX.EXE /D:CDDRIVER /L:X
XMSDSK.EXE 51200 R: /t /y
MOUSE.COM
PATH=A:\;R:\
GOTO %CONFIG%

REM :TESTDISK
REM COPY X:\TESTDISK\*.* R:
REM R:\TESTDISK.EXE
REM GOTO DOS

REM :GHOST
REM COPY X:\GHOST\GHOST.EXE R:
REM R:\GHOST.EXE
REM GOTO DOS

REM :NTFS
REM COPY X:\NTFS\*.* R:
REM R:\NTFS4DOS.EXE
REM GOTO DOS

:PM
COPY X:\PQMAGIC\*.* R:
R:\PQMAGIC.EXE
GOTO DOS

:DOS
ECHO  X: CD DRIVE
ECHO  R: RAM DRIVE
REM IF EXIST R:\PQMAGIC.EXE  R:\PQMAGIC.EXE


######################################################################################
REM CONFIG95.SYS
DEVICE=HIMEM.SYS
REM DEVICE=EMM386.EXE
DOS=HIGH,UMB
LASTDRIVE=Z


REM -------------------------------------------------------
REM -- Put code page variable (yyy) here.                --
REM -------------------------------------------------------

REM DEVICEHIGH=DISPLAY.SYS CON=(EGA,yyy,)


REM -------------------------------------------------------
REM -- Put network or CD-ROM drivers here.               --
REM -------------------------------------------------------

[MENU]
menuitem=PM, Partition Magic
menuitem=DOS, Dos

[PM]
include=DOS

[DOS]
DEVICE=OAKCDROM.SYS /D:CDDRIVER /L:X

[COMMON]
LASTDRIVE=Z
######################################################################################
######################################################################################



TWEEKING THE BOOT CD
1.   Get a blank floppy.
2.   dd if=./cdrom/boot.img of=/dev/fd0
3.   mkdir /tmp/fd
4.   mount /dev/fd0 /tmp/fd
5.   cp /tmp/fd/config.sys /tmp/config.sys
6.   cp /tmp/fd/autoexec.bat /tmp/autoexec.bat
7.   Make the updates to the copies of config.sys and autoexec.bat
     and copy any needed drivers to the floppy.
8.   cp  /tmp/autoexec.bat  /tmp/fd/autoexec.bat
9.   cp  /tmp/config.sys    /tmp/fd/config.sys
10.  umount /tmp/fd
11.  Test the floppy
12.  mkdir tweeked_cdrom
13.  cp -r cdrom/* tweeked_cdrom
14.  dd if=/dev/fd0 of=./tweeked_cdrom/boot.img
15   cd tweeked_cdrom
16.  ce -nb mkiso.sh
17.  change the target file from ../pqmagic.iso to ../tweeked_pqmagic.iso or something similar
18,  ,/mkiso.sh
19.  Burn the image.
