Creating A Bootable DOS CD V 1.5
Creating A Bootable DOS CD V 1.5
5
Introduction
We are now going to create a bootable DOS CD. This CD can be used to boot almost
any fairly modern computer…a much wider variety of machines than a USB memory
stick. The CD can also be used to install DOS on a USB stick or a disk partition, even on
a machine without a floppy drive!
The purpose of this procedure is to describe how to do this “from the ground up” using
free and freely available tools AND to do this entirely from WindowsXP.
All you need to do this is a few free tools and a bootable floppy disk image. You will
need a Windows computer with a CD drive that can burn CD’s. This technique describes
how to do this “from the ground up” by downloading all of the tools you need from the
web. All of the tools (including FreeDOS) are free and freely available. (Bootable CD’s
can be created from Linux using most of the same tools, and from DOS, but this
procedure is for Windows).
Background
There are many, many methods of creating bootable CD’s. We are going to use isolinux
and memdisk. This is, I believe, the most likely technique to work. This technique
requires a file containing an image of a bootable disk. By default, we will use a 1.44
MByte floppy disk image. The same technique can be used with a 2.88 MByte floppy
disk image.
2.88 Mbytes is plenty of space to hold a minimal DOS installation, TR-Log or CT contest
logger, country and section files, and a super check partial database, and instructions on
creating that image are included. You can also load CD drivers and access the entire CD,
or copy files into RAM disks.
You can create a custom bootable CD from ANY bootable floppy disk. To do this, you
need an “image” of the floppy disk. You can get that (using any computer with a floppy
disk drive) by using the VFD program (see below), and instead of running wbootess.exe
(also see below) do a “diskcopy a: b:” to copy the floppy disk to the VFD virtual floppy
drive. This will create an image file for you.
The DOS 7.1 image (wbootess) includes a CD-ROM driver and automatically mounts the
CD as X:. You can add hundreds of megabytes of additional files to your CD image and
access them after you boot the CD.
NOTE: The bootable CD will appear as “A:” to DOS. You can create a RAM disk and
copy TRLog into the ram disk. You could also use a FAT16 or FAT32 hard disk
partition, a Floppy disk drive, or a USB memory stick (if your BIOS supports that) to
hold your contest log files.
Before Getting Started
You need a utility to open “Zip” files. Many computers already have winzip installed
(www.winzip.com). If you don’t have winzip, you can download the free program
EasyZIP from http://www.thefreesite.com/easyzip111.htm. You can also use the open-
source package 7-ZIP from http://www.7-zip.org/.
NOTE: If you are using Windows98, then the VFD program will not work. You will
require a real floppy disk drive to manipulate the floppy disk images. See the Appendix
for information on the “DD” command.
First, create a folder on your desktop (in Windows) called BootableCD. Create folders in
that directory called VFD2.1, CDRTools, and Images. Create a folder in the Images
directory called ISOLINUX.
At this point, you may delete the three zip archives (vfd21-20741.zip, cdrtools-latest.zip,
and syslinux-3.11.zip) from your desktop.
When you are done, a directory listing of BootableCD should look like this:
OK, I’m glad that’s over!
Click OK. You will see the message “Drive 0: A virtual floppy image is opened.”
Now, double click (or run) the file “wbootess.exe” from the BootableCD directory. This
will write the MS-DOS 7.1 image. Select the appropriate letter for the VFD floppy drive
(A: or B: next to Floppy) and click “OK”. Click “OK” when it asks “Insert Floppy to
Write.” You’ll get a progress dialog and wbootess.exe will close itself when done.
From the VFD control panel, select “Close.” Don’t just close the window! Be sure to
use the CLOSE button. Otherwise, you will get an error from mkisofs when you run
mkbootablecd.bat.
cd Images
..\cdrtools\mkisofs -o ..\BootableCD.iso -b
ISOLINUX/isolinux.bin -c ISOLINUX/boot.cat -no-emul-boot
-boot-load-size 4 -boot-info-table .
cd ..
DO NOT use a carriage return in the line starting ..\cdrtools. (This line ends with
–boot-info-table .). The arguments to mkisofs are separated by spaces. These
arguments are:
-o ..\BootableCD.iso
-b ISOLINUX/isolinux.bin
-c ISOLINUX/boot.cat
-no-emul-boot
-boot-load-size 4
-boot-info-table
.
Note that the arguments that accept a filename or parameter also contain a space between
the argument and the filename or parameter. These are: -o, -b, -c, and –boot-load-size.
Note that the last argument is a single period (“.”) which indicates the current directory.
You must save the file as type “txt” if you use Wordpad or Microsoft Word to create the
file. It must have the extension “.bat.” Exit the editor. NOTE: The directory and file
names in mkisofs are case sensitive. If you created the directory as ISOLINUX, you
must use ISOLINUX/isolinux.bin and so on in mkBootableCD.bat.
default DOS7.1
label DOS7.1
kernel memdisk
append initrd=f144.img
default FreeDOS
label FreeDOS
kernel memdisk
append initrd=odin1440.img
Heck, you can also put BOTH of these images on the CD with the following ISOLINUX
file:
PROMPT 1
TIMEOUT 100
default DOS7.1
label DOS7.1
kernel memdisk
append initrd=f144.img
label FreeDOS
kernel memdisk
append initrd=odin1440.img
The isolinux.cfg file must also be saved as type “txt” if you are using Wordpad or
Microsoft Word to create the file. It must be named isolinux.cfg. Exit the editor.
There is enough room on the CD for literally HUNDREDS of DOS boot images!
Finally, change to the BootableCD directory and type mkBootableCD.bat. You should
see something close to the following output, with a new file called BootableCD.iso.
You may see smaller sizes than shown in this output. This included both the f144.img
and fdos1440 image files and one other DOS boot image file.
Now, burn this ISO image to a CD as a BOOTABLE image. Don’t just copy the ISO file
to a CD. See the Appendix for detailed directions on doing this. If, from windows, you
see a file called “BootableCD.iso” on the CD, you did it wrong! (You should see a
directory ISOLINUX).
Insert the CD in the drive and reboot your computer. You should be presented with an
“A:>” DOS prompt! If using FreeDOS, select Option 2…you don’t want to start the
setup program.
I have a better FreeDOS floppy disk image, which also includes NTFS4DOS, which I
will send anyone who wants it! Send me an e-mail at [email protected].
You can modify the floppy disk image file that is used to boot the computer using the
VFD program. For example, to modify the autoexec.bat file used by wbootess (which is
now in BootableCD\Images\ISOLINUX\f144.img), perform the following steps:
You can modify the isolinux.cfg file to boot the modified disk image or make it boot any
number of disk images.
You can create a boot floppy disk from Windows by formatting the VFD floppy disk
drive using the Windows format command, just like creating a real bootable floppy disk.
Finally, open a Command window (from the Windows Start button, Start->All Programs-
>Accessories->Command Prompt). Enter “DISKCOPY A: B:”. Go to VFD and select
“Close” for drive0. You have now created a floppy disk image file from your floppy
disk.
Note that you can also write a real floppy disk from a floppy disk image file by entering
(in this case) “Diskcopy B: A:”.
You can even use this program to extract the disk image that ANY bootable CD uses!
Note that some CD’s use disk images to boot that are NOT floppy disk images and, thus,
VFD may not open them.
Now, we need to copy three files from the boot floppy: msdos.sys, io.sys, and
command.com.
You will need to add more files to the basic floppy disk images to make them useful.
Acknowledgements
Thanks to everyone who helped me test this procedure, especially Chaz Cone, W4GKF.
The instructions are much clearer because of his patient testing! Thanks also to John
Wilson, K0IP, for his help with clarifying the instructions for mkBootableCD.bat, and to
Mike, W7OT, for helping with the description for starting VFD.
Appendix: Burning a Bootable CD (ISO) Image
Burning an ISO image to CD – Version 1.3
If, after you burn a file like bootablecd.iso to a CD, you see the file “bootablecd.iso” on
the CD, then you have not done it correctly. When you open the CD in Windows, you
should see the files contained in the ISO image instead of the iso file.
The CD burning software included with WindowsXP does not allow you to correctly
burn an ISO image directly to a CD. NOTE: Your computer may have a third-party
program pre-installed by the manufacturer, like Easy CD Creator, that does have this
capability.
Three different programs, and the techniques for correctly burning an ISO image to a CD,
are identified below.
CD Burning Software
You may have CD creation software on your computer that will burn an ISO image to
CD and create a bootable CD. For example, Easy CD Creator (Roxio) will do this. If
not, you can download the “Power Toy” from the Web and use that to burn the CD.
1. Insert a blank CD
2. Start the Project Selector and choose “Make a Data CD”
3. When the application starts, choose “Record CD from CD Image…” from the
FILE menu
4. In the File selector window, choose “ISO image files” in the Files of Type:
box and browse to where the desired image is saved.
5. Double-click the ISO image file and press Start Recording in the “ready-to-burn”
dialog when it appears.
Burning the System Rescue CD using the “Power Toy”
To burn an ISO file directly to CD, we can use a small program called the “ISO Recorder
Power Toy.” The usual CD burning program provided with Windows XP won’t create a
bootable CD, it just copies files to the CD. If you are not running WindowsXP, try
SCDWriter.
Read this page carefully and determine which version to download based on your version
of Microsoft Windows.
Download the appropriate file and click on the installer. I am using Version 2 for
Windows XP Service Pack 2.
Hit “Next,” select “Everyone”, hit “Next” and install the software. When the installation
asks, select “Yes” and reboot your computer.
After the file has completed downloading, insert a blank CD-R disk into your CD burner,
right click on any ISO file, and select “Copy Image to CD.”
Click “Next” in the CD Recording window. The ISO Recorder Power Toy will now
write the iso file and create a bootable CD.
Select “Disc” from the top menu bar and “Record ISO Image to Disk”. Select your ISO
file and burn it to the CD. If you try this program, please let me know if it works for you.
It works on my WindowsXP computers.