Guide Part 2: The Hard Drive

  • For those who wish to skip this part there are pre-created and pre-formatted virtual hard drives available. Please select either the 1GB, 2GB or 4GB variety.

    9) Obtain a Copy of a Boot Disk

    A boot disk is a recovery method. It also provides basic functionality for setting up hard drives.

    The boot disk we will be using for our install is for DOS 6.22, and can be located by following the link.

    Get your Boot Disk

    Boot Disk Website →

  • 10) How to Make the Hard Disk

    Start DosBox Daum and you will be met with the command prompt. The command we will be using to create the virtual hard drive is called imgmake.

    If you type imgmake and hit enter you will  be presented with the syntax of the command if you want to understand the proper formatting.

  • 11) Make the Hard Disk Image

    The proper syntax for imgmake is shown. imgmake (name).img -t hd -size (size) -nofs Notice in our example, we are creating a 1 GB hard drive image.

    Please notice that you can name the image whatever you would like. You may also vary the size as you wish. However, FAT16 file system has a hard disk size limit of 2 GB, so you have no reason to go larger (for the purposes of this guide).

  • 12) Verify the Disk Image

    Once the program has finished creating the disk image will be created and located in your DosBox root folder (with the executable) unless otherwise specified.

    NOTICE: Please be aware that the cylinder head and sector counts are important. You should make a note of these as you need to know what they are.
  • 13) The Boot Disk

    We will now extract the boot disk you downloaded previously into the same root folder as your DosBox executable and presumably your virtual hard drive.

    It should be named 622c.ima or 622c.img as shown in the screen-shot. You will of course want to have it unzipped into the folder.

  • 14) Bringing it Together

    It is time to adjust our config file for ease of use. If you need help remembering how to do this please see part 1 of this guide.

    You should add the lines shown to the autoexec section at the bottom of the config file. Be aware that the size and name of your hard drive are important. Particularly the -size parameter. The parameter should be entered as: -size 512,(sectors),(heads),(cylinders)

  • 15) Verify your Commands

    Once you start DosBox again, you should see the following lines appear.

    You should also verify the two images have mounted correctly by seeing that drive 0 was mounted as 622c.img (also known as the A: drive) and drive 2 is mounted as your hard drive image (also known as the C: drive).

  • 16) Boot Into DOS

    There is a reason it is called a "Boot Disk". Boot into dos using the command indicated, type boot -l a.

    It should state that it is booting from drive A into MS-DOS.

  • 17) Fixed Disk

    Once booted into DOS you should be met with a screen like this. You should also have an A: prompt.

    You may use the directory command (simply type dir) to see all the programs located on the boot disk. Alternatively simply type "fdisk" and hit enter, as shown.

  • 18) Partitioning the Drive

    Once fdisk has started, you will be met with this screen. You should see that you have one fixed disk drive which is our virtual disk we created a few steps ago.

    The choice we want is choice 1, to create a DOS partition. 1 is the default choice, simply hit enter to move on.

  • 19) Choosing the Partition Type

    Next you will be met with the choice of the type of partition we want to create.

    The default choice is 1 and this is again the choice we want. We will be creating a primary DOS partition. Verify 1 is your choice and hit enter to proceed.

  • 20) Partition that Drive!

    Type Y into the prompt and hit enter.

    You should be prompted to restart. If the program does not automatically restart, simply exit it and start DosBox again.

  • 21) Formatting the C: Drive

    Once you have restarted DosBox and booted back into DOS, (by typing boot -l a) you should be ready to format the C: drive.

    Simply type "format c:" into the A: prompt.

  • 22) Verify the Format

    You will be met with a warning, that formatting the drive will lose all data.

    No matter, the drive we created a few minutes ago is completely empty. Simply type Y and hit enter.

  • 23) Name your Hard Drive

    You should see that it has performed and completed the format for the drive.

    You will then be prompted to label your volume (name the drive). You may name it whatever you like within 11 characters. Once complete, simply close DosBox (short-cut key combination Alt+F9 if you are lazy)

    Part 3: Installation