This section of the document by Hans,
What is it? Well, its simply a small DOS program that tells the MFS (Mach File System) code what 'network' drives to redirect. With this you can 'mount' any Linux directory as a virtual drive into DOS. In addition to this, Linux as well as multiple dosemu sessions may simultaneously access the same drives, what you can't when using partition access.
Mount your dos hard disk partition as a Linux subdirectory. For example, you could create a directory in Linux such as /dos (mkdir -m 755 /dos) and add a line like
to your /etc/fstab. (In this example, the hard disk is mounted read- only. You may want to mount it read/write by replacing "022" with "000" and using the -m 777 option with mkdir). Now mount /dos. Now you can add a line like
to the AUTOEXEC.BAT file in your hdimage (but see the comments below). On a multi-user system you may want to use
where "home" is the name of an environmental variable that contains the location of the dos directory (/dos in this example)
You may even redirect to a NFS mounted volume on a remote machine with
a /etc/fstab entry like this
In addition, you may want to have your native DOS partion as C: under dosemu.
To reach this aim you also can use Lredir to turn off the 'virtual'
hdimage and switch on the
Assuming you have a c:\dosemu directory on both drives (the virtual
and the real one)
autoexec.bat:
dosemu\auto2.bat:
To make the reason clear
Command.com, which interpretes the batchfile keeps a position pointer
(byte offset) to find the next line within this file. It opens/closes the
batchfile for
To have a redirected drive available at time of config.sys you may either use emufs.sys such as
or make use of the install instruction of config.sys (but not both) such as
The later has the advantage, that you are on your native C: from the
beginning,
For information on using 'lredired' drives as a 'user' (ie having the right permissions), please look at the section on Running dosemu as a normal user.