How to use the Mount Command in DosBox

Tutorial on how to use the DropBox mount command, and how to automatically mount drives on startup.

4691 views

Edited: 2017-04-11 07:54

The mount command is used to mount directories ad virtual drives in DosBox. A common use is to mount a directory full of dos games as your c drive.

To mount a directory as c, type the following command:

MOUNT C C:\DOSC

It is also possible to mount iso files, this is done with the imgmount command:

imgmount E C:\images\my-image-file.iso -t iso

Automatically mount on start

To automatically mount a drive when starting DosBox, you can add a few extra lines to the options file. Simply open it in your favorite editor, then scroll all the way to the bottom of the file, and add your own commands in the [autoexec] section of the file.

To automatically mount a directory as your c drive, and d as the CD-ROM drive, the section should look like:

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.

MOUNT D M:\ -t cdrom
MOUNT C C:\DOSC

The MOUNT command is used for mounting, and the letter represents the drive letter that you want to assign to whatever it is you are mounting.

The -t cdrom part will mount as CD-ROM, other options include: dir (default) and floppy.

Note. dir is left out of the last command, since its already default.

MOUNT C C:\DOSC

Hence the -t parameter simply changes the mount type.

Links

  1. MOUNT - dosbox.com

Tell us what you think: