VOGONS

Common searches


Changing Back to Root Directory

Topic actions

First post, by JamesJoey123

User metadata
Rank Newbie
Rank
Newbie

DosBox 0.73
Aftewr mountying my c: drive to a particular directory I am unable to change directories back to my root directory.
I've tried:
cd ..
cd c:\
No error messages. Neither works, I seem to get stuick in the cuirrent folder unless I change to another folder under c:\.
Any suggestions?

James

Reply 5 of 20, by JamesJoey123

User metadata
Rank Newbie
Rank
Newbie

I really didn't see anythinbg there as to why I'm, unable to change to c:\.
Currently in the configuration file's autoexec section I have:
mount c c:\games.
The only way I have found that I'm able to get to c:\ is to change the line to:
mount c c:\
And then if I change directories I can't get back to c:\.
While in dosxbox I tried remounting by using:
mount c c:\ but it told me 'mounting c:\ is NOT recomended and I remain in the same directory.

Reply 10 of 20, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Put stuff that matters in a directory, for example c:\games.
NEVER mount your root directory, if you need something that for whatever
fucked up reason resides in your root directory, COPY it into the games
directory and it's accessible in dosbox.

And please read again the guides until you understand them.

Reply 12 of 20, by JamesJoey123

User metadata
Rank Newbie
Rank
Newbie

I understand. But I've notinced somthing else and wondered if it is by design.
If I have in the autoexec section mount c c:\games I am UNABLE to change to ANY other directory.
But, if I have in the autoexec section mount c c:\ I AM able to change to ANY and ALL directories.
Is this by design?
Let me tell you something else.
I got my first computer in 1988. I know what to and what not to fuck with.

Reply 13 of 20, by leileilol

User metadata
Rank l33t++
Rank
l33t++
JamesJoey123 wrote:

Is this by design?

Yes.

JamesJoey123 wrote:

I got my first computer in 1988. I know what to and what not to fuck with.

I got my first computer in 1984, but I still mount my C: using a dedicated subfolder. I guess that makes me a total idiot, then.

apsosig.png
long live PCem

Reply 14 of 20, by robertmo

User metadata
Rank l33t++
Rank
l33t++
JamesJoey123 wrote:

I got my first computer in 1988. I know what to and what not to fuck with.

so i guess you know how subst worked in dos? cause mount works same way.

also check dosbox's manual why it is not recommended (there are at least 2 reasons)

Reply 17 of 20, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

If you mount c:\games to c: then you can "cd" to any subdirectory of the c:\games directory.

You CANNOT cd to any directory above the c:\games directory because you only mounted c:\games.

How To Ask Questions The Smart Way
Make your games work offline

Reply 19 of 20, by TeaRex

User metadata
Rank Member
Rank
Member

In other words, as far as the software running inside DOSBox is concerned, the directory you mounted to C:\ IS your root directory.

The whole point of this is to set up a "cage" of sorts that the software cannot leave. Remember DOS is an unprotected operating system: Any program running in it is allowed to do anything at all with your system. So to prevent DOS programs from running amok with your whole (real) disk, DOSBox keeps them under lock, so to speak.

If you know about computers, you'll have heard of a "chroot jail". It's the same concept.

tearex