If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Install dosbox in ubuntu
Open terminal window and type the following command
sudo apt-get install dosbox
Howto Automount drive
Open a terminal session, and it should take you to your home directory. If not, type cd /home/yourname/
Create a directory to store your DOS programs in. I called mine dosprog, so I typed mkdir dosprog The full pathname to this file is home/yourname/dosprog
Open dosbox by typing dosbox
You are now in the dosbox shell. Neat, huh? Note that it automatically puts you at the Z:\ drive We want to change that. Try typing in the dos command C: Note that it says the drive doesn’t exist. We could mount the C drive everytime we open dosbox by typing mount c /home/yourname/dosprog everytime, but why do that whendosbox can create a configuration file to take care of that for you! But first we need to create the file.
At the dosbox Z:\ prompt, type in config -writeconf /home/yourname/dosbox.conf You now have the configuration file.
Type exit. This puts you back in your terminal session
Type sudo gedit dosbox.conf This will open the dosbox configuration file.
Scroll down the dosbox.conf file to this section
[autoexec]
# Lines in this section will be run at startup.Type the following in on a new line:
mount c /home/yourname/dosprog
This will automatically mount the C: drive to your dosprog directory.
If you want dosbox to automatically start on the C: drive, enter C: on a new line after your mount line.
Save and quit gedit.
Now at the terminal prompt, type in dosbox It should auto mount the C: drive, (and if you followed step 8a, it will also start you on the C: drive)
Manually Mounting a CD-ROM
Place a CD in your CD-ROM. Ubuntu will happily auto-mount the CD for you to /media/cdrom0 assuming that you placed teh CD in that drive. If you have more than one CD-ROM drive Ubuntu may will have mounted it to /media/cdromx where x is a number. Now that we’re done with that OS stuff back to DosBox.
Type mount d /media/cdrom0 -t cdrom
Now your CD is mounted in DosBox to the D: drive. Again if you’d like to test this type, D: and press enter. Now type dir and press enter. You should again get a listing of all items on the CD.
Mounting a directory to a drive in DosBox
Open triminal windows and type the following command
dosbox
This launches DosBox in a new window, and starts you with a Z:\ prompt
So now on to really mounting a drive. I suggest you mount a directory that you have permission to write to (as a user, not a superuser). Your home directory (/home/username) works nicely.
Type mount c /home/username
This mounts your home directory to the C:\ drive in DosBox. If you’d like to test this, type C: and press enter.
Now type dir and press enter. Just as in DOS, you will get a listing of all items in your directory.




Hey,
This is missing one vital piece of info. To use your new configuration file with dosbox you have to tell dosbox where it is when you start it.
So if you used this command inside dosbox:
config -writeconf /home/yourname/dosbox.conf
You have to run Dosbox with the following commandline in a terminal or an app launcher:
dosbox -conf /home/yourname/dosbox.conf
This will then load your customised .conf file, including any mounting you have put in the [Autoexec] section.
Hope that helps,
Dom.
Is that really necessary? On my system, after following admin’s suggestions, typing “Dosbox” in the terminal starts Dosbox with the new configuration settings. No need for any command line arguments…
frits
when you mount and boot from an image, how can you use other Psychical drives with it?
like I mount a win95 image, and my flashdrive, win95 boots fine, but my flashdrive will not show up!!
Except Warcraft 2, won’t be using CD audio just plain MIDI.
I’m after a way to get Warcraft 2 to use cd audio.
Alright… I’m using Linux here. I can get Dosbox to read a dosbox.conf file when it is in my home (~) directory. However, I’d like to put the dosbox.conf file in my ~/Dos_Games directory. Whenever I do that, Dosbox won’t run the file! It runs it fine when I have it in ~ though.
Any ideas?