How to make a bootable CD with DriveImage, Partition Magic and others - by B
Tools required:
W98/98SE Boot floppy;
IOPATCH;
WinImage, HD-COPY or Disk
Imager 95;
Burning s/w with bootable CD support.
There are times you need to run a large DOS utility – or several of them – with your nose pressed on the outside of a cold, cold Windows installation.
Utilities often required at moments of stress are: DriveImage; Ghost; Partition Magic . . . you know the kinds of things.
To do this comfortably; you’ll need to make a bootable CD: this works by containing an image of a bootable floppy – so the first thing you’ll need is a known working bootable floppy with your IDE/SCSI [including SCSI-host] CDROM drivers on it. Check it.
If you can’t find a suitable CDROM driver, & if the generic drivers in the MS boot-floppies don’t work; use the CDRom God 5.5 utility to find one that does.
Even with a known working floppy, you’ll very likely have to apply IOPATCH to its IO.SYS file – this puts a pause into the boot process in which your CD-devices can flash their lights, reset & so on without the CD’s unavailability freaking out the configuration files being loaded from
the floppy – they'll now just have to wait till the CD-device is ready.
Having done this; you now edit the autoexec.bat & config.sys files to prepare a DOS home for the utilities you’ll stick on the CDROM. – &, of course, the DriveImage or Ghost image-file you may choose to fill up the body of the CD with.
The example below is based on a standard W98/98SE boot-floppy & makes a spiffy blue-on-black extended DOS menu to give your utilities as extra boot choices.
Autoexec.bat: [for DriveImage, Partition Magic & Ghost]:
|
@ECHO OFF
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows 98 Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:X
IF "%config%"=="PQPM" GOTO PQPM
IF "%config%"=="PQDI" GOTO PQDI
IF "%config%"=="GHOST" GOTO GHOST
:PQPM
cls
x:\pmagic.bat
echo.
:PQDI
cls
x:\dimage.bat
echo.
echo.
:GHOST
cls
x:\ghost.bat
echo.
echo.
GOTO QUIT
:HELP
cls
call help.bat
echo Your computer will now restart and the startup menu will appear.
echo.
echo.
echo.
restart.com
GOTO QUIT
:QUIT
echo To get help, type HELP and press ENTER.
echo.
rem clean up environment variables
set CDROM=
set LglDrv=
|
And here is the config.sys [matching]:
|
[menu]
menuitem=CD, Start computer with CD-ROM support.
menuitem=PQPM, Partition Magic.
menuitem=PQDI, DRIVE IMAGE.
menuitem=GHOST, Norton GHOST.
menuitem=NOCD, Start computer without CD-ROM support.
menuitem=HELP, View the Help file.
menudefault=CD,10
menucolor=11,0
[CD]
device=himem.sys /testmem:off
device=oakcdrom.sys /D:mscd001
device=btdosm.sys
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
[PQPM]
include=CD
[PQDI]
include=CD
[GHOST]
include=CD
[NOCD]
device=himem.sys /testmem:off
[HELP]
device=himem.sys /testmem:off
[COMMON]
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 4096
devicehigh=ansi.sys
lastdrive=z
device=display.sys con=(ega,,1)
country=004,850,country.sys
install=mode.com con cp prepare=((850) ega.cpi)
install=mode.com con cp select=850
|
These files will give you a nice blue on black start menu with three new entries for DriveImage, Ghost and PartitionMagic. Also your CD's drive letter will be X:\ just in case you have more than a couple of partitions. The original Ramdrive is extended from 2 to 4 Mb for better performance.
Obviously, the files: “pmagic.bat,” “dimage.bat,” and “ghost.bat” referred to are called from the body of the CD – examples are given below.
dimage.bat
|
@echo off
cls
copy x:\PQDI\mouse.com %RAMD%:\mouse.com > NUL
copy x:\PQDI\mouse.ini %RAMD%:\mouse.ini > NUL
copy x:\PQDI\dihelp.dat %RAMD%:\dihelp.dat > NUL
copy x:\PQDI\pqdi.exe %RAMD%:\pqdi.exe > NUL
copy x:\PQDI\pqdi.ovl %RAMD%:\pqdi.ovl > NUL
copy x:\PQDI\pqdi.pqg %RAMD%:\pqdi.pqg > NUL
copy x:\PQDI\pqdi.rtc %RAMD%:\pqdi.rtc > NUL
copy x:\PQDI\readme.txt %RAMD%:\readme.txt > NUL
%RAMD%:\pqdi.exe
|
pmagic.bat
|
@echo off
cls
copy x:\PQPM\mouse.com %RAMD%:\mouse.com > NUL
copy x:\PQPM\mouse.ini %RAMD%:\mouse.ini > NUL
copy x:\PQPM\pmhelp.dat %RAMD%:\pmhelp.dat > NUL
copy x:\PQPM\pqmagic.exe %RAMD%:\pqmagic.exe > NUL
copy x:\PQPM\pqmagic.ovl %RAMD%:\pqmagic.ovl > NUL
copy x:\PQPM\pqmagic.pqg %RAMD%:\pqmagic.pqg > NUL
copy x:\PQPM\pqpb.rtc %RAMD%:\pqpb.rtc > NUL
copy x:\PQPM\pqtmp.fil %RAMD%:\pqtmp.fil > NUL
copy x:\PQPM\rescue.txt %RAMD%:\rescue.txt > NUL
%RAMD%:\pqmagic.exe
|
- & here's the batch file for Norton Ghost:
ghost.bat
|
@echo off
cls
x:\mouse.com
copy x:\ghost\ghost.exe %RAMD%:\ghost.exe > NUL
copy x:\ghost\ghost.ini %RAMD%:\ghost.ini > NUL
copy x:\ghost\ghost.env %RAMD%:\ghost.env > NUL
%RAMD%:\ghost.exe
|
Notes:
Any files below not present in the above standard W98/98SE floppy can be found in %root drv%\Windows\Command\ - or in the “oldmsdos” folder in your W9x CDROM, or in our links.
Your country/keyboard layout may differ from that shown [US] – check in your existing config.sys for the correct code.
CDROM/SCSI drivers – those shown above are the standard ones included in the W98/98SE floppy – yours may differ; in any case, type “rem”[space] before any config.sys entries of files you won’t need – this saves
memory.
The lowest CD-device-letter is set to “X” – if you have more than 3 such devices you’ll need to set the letter higher up the alphabet.
When you’re satisfied with this floppy & have tested it, save an uncompressed image of it with one of the 3 tools listed above – most folk use WinImage.
Now make a folder on a Hard Drive, & copy mouse.com; mouse.ini; dimage.bat; pmagic.bat; & ghost.bat; into it. Make three sub-folders called: "GHOST" “PQDI” & “PQDM” for Ghost, DriveImage, & Partition Magic – you may include the DriveImage *.PQI
image-file of a working installation into the PQDI folder.
Now all you need do is fire up your favourite burning app & set it to make a boot CD containing the above files & 2 folders; with the image you have just made as its floppy-image.
And now for the fun part - burning the CD - let's try CDRWin:
NEXT
If you have any comments/questions about this review please go
here
|