DOSEMU: One autoexec for regular dos and dosemu

DOSEMU: One autoexec for regular dos and dosemu

Post by JEFFREY MIYAR » Sat, 13 May 1995 04:00:00



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:

     set dosemu=YESDOSEM
     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
the following:

     set dosemu=NODOSEM
     FILES=30
     BUFFERS=10,0
     STACKS=0,0
     device=c:\dos\himem.sys
     DEVICE=C:\DOS\EMM386.EXE ram
     dos=UMB
     LASTDRIVE=E
     FCBS=4,0
     dos=HIGH
     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:


     GOTO %DOSEMU%

     :NODOSEM
     PATH C:\DOS;C:\UTIL
     LH /L:1,40352 C:\UTIL\MSCDEX.EXE /D:ASPICD0 /M:12 /L:E /E
     c:\dos\smartdrv.exe
     goto done

     :YESDOSEM
     path c:\dos;c:\util;c:\dosemu
     lredir d: linux\fs/home/anyuser
     lredir e: linux\fs/cdrom
     lredir f: linux\fs
     goto done

     :DONE

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
     anyway...

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

 
 
 

DOSEMU: One autoexec for regular dos and dosemu

Post by JEFFREY MIYAR » Sat, 13 May 1995 04:00:00


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:

     set dosemu=YESDOSEM
     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
the following:

     set dosemu=NODOSEM
     FILES=30
     BUFFERS=10,0
     STACKS=0,0
     device=c:\dos\himem.sys
     DEVICE=C:\DOS\EMM386.EXE ram
     dos=UMB
     LASTDRIVE=E
     FCBS=4,0
     dos=HIGH
     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:


     GOTO %DOSEMU%

     :NODOSEM
     PATH C:\DOS;C:\UTIL
     LH /L:1,40352 C:\UTIL\MSCDEX.EXE /D:ASPICD0 /M:12 /L:E /E
     c:\dos\smartdrv.exe
     goto done

     :YESDOSEM
     path c:\dos;c:\util;c:\dosemu
     lredir d: linux\fs/home/anyuser
     lredir e: linux\fs/cdrom
     lredir f: linux\fs
     goto done

     :DONE

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
     anyway...

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


 
 
 

1. DOSEMU: Newbie question: can't lauch dosemu from dos floppy

: Hello,

: I've tried to run dosemu ( right out off the box) with
: # dos

: with a bootable/system DOS diskette and it gives me the following
:  
: ERROR: can't get floppy parameter of /dev/fd0 (Interrupted system call)
: error exit: (5,0x0005) in_sigsegv: 0 ignore_segv: 0
: Not a good day to die!!!!!

: Version information: from RedHat Picasso release of April 96,
: Linux Kernel  2.0.7

: $Header: /usr/src/dosemu0.60/init/RCS/config.c,v 1.6 1995/05/06 16:26:13
: root Exp root $

dosemu0.60 and Linux 2.0.x are incompatible. Get a newer dosemu from
tsx-11.mit.edu and its mirrors: pub/linux/ALPHA/dosemu/Development

--

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

2. Adding multiple users?

3. DOSEMU: how to make native DOS drive C: appear as DOSEMU drive C: ?

4. Is 3c905B-TX Ethernet Card Support by AIX ?

5. dosemu error: /var/lib/dosemu/hdimage.first doesn't exist

6. ALPHA or Pentium Pro?

7. DOSEMU config, autoexec

8. How to attach a file to the email message?

9. DOSEMU autoexec.bat helpful hint

10. DosEmu: Autoexec.bat and Config.sys not executing

11. autoexec.bat in dosemu

12. DOSEMU: dosemu needs a standard input

13. DOSEMU at bootup question (dosemu newbie?)