First off, I'd like to say I've very impressed with dosemu.
This is how I've set up dosemu so I can use ONE autoexec.bat file for booting
dosemu or regular dos through LILO (Non-emulated dos? Real dos?). If you're
not comfortable messing with config.sys and autoexec.bat in regular dos, don't
even bother trying this. I warn you now. SPECIAL NOTE: I've been running
dosemu for a total of 10 hours so if something looks rather odd, that's why.
The config.sys file on my hdimage consists of the following:
install=c:\lredir.exe c: LINUX\FS/dosc
The first line sets the variable dosemu to YESDOSEM, but we'll come back to
that later. The second line sets my dos drive (already mounted in /dosc) as
the c: drive. If you need any device drivers, copy them to your hdimage and
put the device= lines BEFORE line #2. THIS IS IMPORTANT.
Now, the config.sys file I use when booting from dos is somewhat similar to
DEVICEHIGH /L:1,28736 =C:\UTIL\ASPI2DOS.SYS /D
DEVICEHIGH /L:1,29248 =C:\UTIL\ASPICD.SYS /D:ASPICD0
SHELL=C:\DOS\COMMAND.COM C:\DOS\ /P
The only important line here is the first one. This sets the variable dosemu
to NODOSEM. If you use the multiple configurations with the [menu] type
declarations (dos 6.x only), this line should go under the [common] section.
I actually do this myself, but to save space in this message I've only
included one configuration. If you're interested in using multiple startup
configurations, make sure you have dos 6 and check out the docs.
NOW, on to the autoexec.bat file that I use for BOTH dosemu and normal dos
bootup. Here it is:
LH /L:1,40352 C:\UTIL\MSCDEX.EXE /D:ASPICD0 /M:12 /L:E /E
lredir d: linux\fs/home/anyuser
lredir e: linux\fs/cdrom
lredir f: linux\fs
You'll notice line #2 uses the dosemu variable I've set in my config.sys to
jump to either NODOSEM or YESDOSEM, depending on how it was set in whichever
config.sys I've run. If you use any lines common to both (like a common path
statement, etc) you can put that in before the GOTO %DOSEMU% line and it will
be called for both. The last line of the NODOSEM section is VERY important.
This will make it jump to the :DONE label when it's done, so it doesn't load
Under the label :YESDOSEM, I set the path, redirect /home/anyuser to d:, put
my cd on e: and put my root filesystem as f:. You can do whatever you like,
and I don't care if you think this is a terrible way to do it. Also, the goto
done line in this section isn't necessary in this case, but it's nice to have
there just in case you ever put anything underneath that...
Also, I've put lredir, exitemu, and other useful executables in the directory
c:\dosemu, and taken them out of my hdimage. I only did this to see how small
I could get my hdimage file (which is 486016 bytes long).
Right now, you might be asking yourself, "Where's the autoexec.bat from his
hdimage?" Well, I DON'T USE ONE!!! It's completely unnecessary if you set
this up right. That WAS the whole point.
So there you go. Use this as a GUIDE ONLY! You can probably*your
system up bigtime doing it this way, so don't mess with what already works for
you unless you know what you're doing. You gotta make sure your hdimage
config.sys file is set up EXACTLY how you want it before you do this, because
you won't be able to edit it after you boot this way. If you DO*up, you
can do two things:
After you type dos (or run xdos or however you start it), when
you see the message Starting DOS, hold down left shift, or F5 to
bypass your config.sys and autoexec.bat files (I think this is
dos 6.x only).
- OR -
Change bootC to bootA in your dosemu.conf file and put a bootable
dos disk in A: to boot a bare dosemu (this leaves hdimage as c:).
It wouldn't hurt to have a text editor on the dos disk so you can
edit your hdimage config.sys, which is what you'd want to do
If you want me to mail you a copy of my full config.sys's and autoexec.bat
so you can check them out (I actually have 5 different configurations in my
config.sys and 6 branches in my autoexec.bat), or if you have any specific
questions (I never had the best skill at explaining things to people) you can