HOWTO: Auto mount a drive in DOSBOX
Here's a simple one.
First off, I may say that if you're a REAL retro-gamer, you cannot beat Dosbox! All those classic MS DOS games are at your fingertips in this excellent "emulator". I'm currently enjoying Prince of Persia, Populous, Jungle Strike, Thexder 1 and 2, and the DOS version of Sim City 2000.
Here we go:
This works with version 0.63-2 of Dosbox, which is in the repositories.
INSTALLING DOSBOX
1) Click SYSTEM then ADMINISTRATION then SYNAPTIC PACKAGE MANAGER
2) Enter your password
3) Click any line in the upper left window, then type DOS This will take you down to dosbox. Right click the box and select MARK FOR INSTALLATION
4) Click Apply.
Synaptic will download and install DOSBOX.
HOW TO AUTOMOUNT DRIVE
1) Open a terminal session, and it should take you to your home directory. If not, type cd /home/yourname/
2) 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
3) Open dosbox by typing dosbox
4) 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.
5) At the dosbox Z:\ prompt, type in config -writeconf /home/yourname/dosbox.conf You now have the configuration file.
6) Type exit. This puts you back in your terminal session
7) Type sudo gedit dosbox.conf This will open the dosbox configuration file.
8 ) Scroll down the dosbox.conf file to this section:
Code:
[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.
8a) If you want dosbox to automatically start on the C: drive, enter C: on a new line after your mount line.
(for more info on what the dosbox.conf file can do, check the FAQ at http://dosbox.sourceforge.net/wiki/i...ge=dosbox.conf )
9) Save and quit gedit.
10) 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)
That's all there is to it!
Now get out there and find yourself some abandonware!
Re: HOWTO: Auto mount a drive in DOSBOX
Nice post cheers, I had DosBox installed but was trying to figure out how to get the dosbox.conf created so your post really helped thanks!
Re: HOWTO: Auto mount a drive in DOSBOX
Thanks for the post! I knew I had done it before but couldn't remember how.
Re: HOWTO: Auto mount a drive in DOSBOX
Most people might want to add "C:" without quotes after the mount line, to automatically go to the C drive.
Re: HOWTO: Auto mount a drive in DOSBOX
DosBox would for some reason not recognize my config file.
Solution:
Code:
mkdir ~/.dosbox
dosbox
# Enter withing DosBox:
config -writeconf /home/YOURUSERNAME/.dosbox/dosbox.conf
exit
# Back to terminal:
cd ~
echo 'dosbox -conf ~/.dosbox/dosbox.conf' > bin/dosbox.sh
chmod u+x bin/dosbox.sh
# Then start dosbox with:
~/bin/dosbox.sh
Re: HOWTO: Auto mount a drive in DOSBOX
thanks for the howto!
Btw, when I try to run tt(tt.exe) it says i need it to run on win32, how do i do this?
Re: HOWTO: Auto mount a drive in DOSBOX
Is there anything in the conf file you can edit to increase the size of the display for certain games?
And i dont mean alt + enter for full screen either.
Re: HOWTO: Auto mount a drive in DOSBOX
Quote:
Originally Posted by
motin
DosBox would for some reason not recognize my config file.
Solution:
Code:
mkdir ~/.dosbox
dosbox
# Enter withing DosBox:
config -writeconf /home/YOURUSERNAME/.dosbox/dosbox.conf
exit
# Back to terminal:
cd ~
echo 'dosbox -conf ~/.dosbox/dosbox.conf' > bin/dosbox.sh
chmod u+x bin/dosbox.sh
# Then start dosbox with:
~/bin/dosbox.sh
You can do it another way:
Code:
mv ~/.dosbox/dosbox.conf ~/.dosboxrc
and after that just run 'dosbox' without arguments.
So, dosbox checks file "~/.dosboxrc" while running, neither "dosbox.conf".
Re: HOWTO: Auto mount a drive in DOSBOX
optimized by yours truly ... the perfect dosbox.conf copy and paste over your old conf for maximum happiness.
Code:
[sdl]
fullscreen=false
fulldouble=false
fullresolution=original
windowresolution=original
output=opengl
autolock=true
sensitivity=100
waitonerror=true
priority=highest
mapperfile=mapper.txt
usescancodes=true
[dosbox]
language=
machine=vga
captures=capture
memsize=32
[render]
frameskip=0
aspect=false
scaler=supereagle
[cpu]
core=auto
cycles=20000
cycleup=0
cycledown=0
[mixer]
nosound=false
rate=22050
blocksize=1024
prebuffer=44
[midi]
mpu401=uart
device=oss
config=
[sblaster]
sbtype=sb2
sbbase=220
irq=7
dma=1
hdma=5
mixer=true
oplmode=auto
oplrate=22050
[gus]
gus=true
gusrate=22050
gusbase=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=C:\ULTRASND
[speaker]
pcspeaker=true
pcrate=22050
tandy=auto
tandyrate=22050
disney=false
[joystick]
joysticktype=auto
timed=true
autofire=false
swap34=false
buttonwrap=true
[serial]
serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled
[dos]
xms=true
ems=true
umb=true
keyboardlayout=none
[ipx]
ipx=false
[autoexec]
mount C /media/Iomega HDD/dos
C:
cd bstone
:popcorn::p;):D:o:):P:KS
Re: HOWTO: Auto mount a drive in DOSBOX
can anyone help with this???? How can i compile c programs using dosbox???????