Re: Dosemu

Bart Oldeman <[email protected]> Fri, 08 Nov 2002 22:34:51 -0500 (EST)
Newsgroups gmane.os.freedos.devel
Message-ID <[email protected]>
On Fri, 8 Nov 2002, George Bell wrote:

> Speaking of DPMI,  then running DOS boxes in Linux is what dosemu is all
> about.  Fair to say that Dosemu is an implementation of DPMI for Linux?

Exactly. Better said, "DOSEMU (a program that runs in Linux) includes an
implementation of DPMI". Linux itself does not provide DPMI or EMS or XMS.
DOSEMU "simply" provides these as a glue between Linux system calls/glibc
and DOS applications.

>  ( Although unlike in  Windows the DOS has to "pretend" its on VFAT and
> it's not supposed to recognize a Linux filesystem, anyway... )

The DOS can see the Linux filesystem as a "network drive".

> Sorry I know I could look this up, but I'm lazy so I'll ask right here
> since I'm thinking about this at the moment.   When I got dosemu as you
> all know it copied a FD directory tree and all - all the same
> directories and files that I got from the install CD for FD from
> ibiblio.  Instead of referring to this copy on my Linux partition, can I
> make it refer instead to the partition on which I have already installed
> Freedos(which is on my computer hda1 type fat16)?   This would also make
> the filesystem a little more sensible for DOS.

Probably easiest to just use (at the DOS prompt in DOSEMU).
lredir c: linux\fs/mnt/dosc
(to overwrite where c: points to)
or
lredir e: linux\fs/mnt/dosc
(to point e: to your mounted DOS partition)
if your DOS directory is at /mnt/dosc.

Or you could rename ~/dosemu/freedos to something else and create a
symlink from ~/dosemu/freedos to your mount point, but you'd have to deal
with an incompatible config.sys file written for real mode DOS. To get
around that, set $_emusys in ~/dosemu/conf/dosemu.conf to an extension,
say, "emu" and you can use config.emu instead of config.sys.

Bart