I have had a look at the community documentation here and there doesn't seem to be any information about how to "Automount" a folder as the C: drive in Dosbox.
Also as a bonus is it possible to automount the cd/dvd drive in the same way?
I have had a look at the community documentation here and there doesn't seem to be any information about how to "Automount" a folder as the C: drive in Dosbox.
Also as a bonus is it possible to automount the cd/dvd drive in the same way?
With DosBox open, type:
config -writeconf /home/user/dosbox.conf
(or whatever) then exit Dosbox.Open
dosbox.conf
and add (the[autoexec]
is at the bottom):I assume you can do the same for just about any command, it seems to be basically a batch file that is ran at launch.
http://www.ubuntugeek.com/howto-auto-mount-a-drive-in-dosbox.html
As it has already been shown how to mount a folder and set it as c drive in
dosbox
(although it is also necessary to addc:
under themount c
line to actually change to that folder), I will address the second part of the question and demonstrate a few otherdosbox
commands that can be used to mount optical drives and disk image files.All the following commands go in the [autoexec] section of your
dosbox.conf
. To select a different conf from the default held in.dosbox
, generate it with theconfig -writeconf
command (as noted in the above answer), edit it and place it in your game folder, and launch the game so thatdosbox
uses the custom conf:With regard to your second question, you can mount multiple optical drives if you have more than one physical drive connected to your computer. The disc must be mounted in Ubuntu before you start
dosbox
. Thedosbox
command to add to your conf file is, for example:Dosbox
also has a very useful feature that allows you to mount a folder as if it were a cdrom: this is very useful when the folder contains multiple disk images. A sample command for this that I have in one of mydosbox
confs is:To mount image files that you may have, use the
imgmount
feature, which supports multiple images. I have a command similar to the following example in another of mydosbox
confs:or (because
-t iso
or-t cdrom
both work with disc images) you can useWhen you have composed all the entries you need for your conf (and set all the disks and folders to mount), the [autoexec] part of your conf may look this:
There is more relevant information in the dosbox manual and on the useful wiki.