home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / DAVMB.FAX < prev    next >
Text File  |  1994-12-01  |  17KB  |  483 lines

  1. Creating a DOS VMB  (DOS boot image)     7/18/94
  2.  
  3.        FILE:   OSDAVMB.FAX - 05/13/94
  4.  
  5.        TITLE:  940513 INSTRUCTIONS TO CREATE A DOS IMAGE FILE
  6.                       VMB - (Virtual Machine Boot) FOR OS/2 2.x
  7.                           STANDARD VMB BOOT (PART 1) OR
  8.                           MULTI-BOOT VMB (PART 2)
  9.  
  10.        DESCRIPTION OF SYMPTOMS:
  11.                   Some DOS applications and networks that will
  12.                   not run in a VDM session, will run in a VMB.
  13.  
  14.        RESOLUTION:
  15.  
  16.              -- PART 1:  STANDARD VMB BOOT GENERAL GUIDELINES --
  17.  
  18.  
  19.        SECTION I - CREATE A VMB DISKETTE
  20.  
  21.        1.  Instructions for creating a bootable 360k, or a 720k,
  22.            or a 1.44mb high density diskette.  Each Image File
  23.            you create will equal the size of the diskette you
  24.            use.  There are two different ways to do this:
  25.  
  26.            a.  Boot with a DOS bootable diskette that includes
  27.                the FORMAT.COM file from DOS (native DOS).  Type
  28.                "FORMAT A:  /S" --do not hit ENTER, yet.  Insert
  29.                the blank diskette you want to use for the VMB in
  30.                Drive A, and hit ENTER.  COMMAND.COM should be on
  31.                your diskette when you have completed this
  32.                process.
  33.  
  34.            b.  If you have pure DOS installed on your computer,
  35.                boot up from there.  Insert the blank formatted
  36.                diskette you want to use for the VMB in Drive A,
  37.                and from the DOS root directory type "SYS A:".
  38.                COMMAND.COM should be on your diskette when you
  39.                have completed this process.
  40.  
  41.            c.  After you have completed the above steps,
  42.                place your new bootable diskette in Drive A:
  43.                and boot your system.  If it boots properly, continue
  44.                on with the instructions.  If not, try again.
  45.  
  46.        NOTE:   When you have finished creating the VMB bootable
  47.                diskette, you will be able to:
  48.  
  49.                -  Boot from OS/2's Command Prompts Icon View
  50.                     (DOS from Drive A)
  51.                -  Boot from the VMB Image Icon on your Desktop
  52.  
  53.        ****   PLEASE CREATE THE VMB FOLLOWING THE INSTRUCTIONS
  54.               IN THIS DOCUMENT AND GET IT UP AND RUNNING BEFORE
  55.               YOU CUSTOMIZE THE VMB IMAGE.  THEN ADD OTHER DEVICE
  56.               DRIVERS, NATIVE DOS FILES, AND STATEMENTS WITHIN THE
  57.               CONFIG.SYS AND AUTOEXEC.BAT SPECIFIC TO YOUR
  58.               APPLICATION, NETWORK, ETC.  YOU WILL HAVE TO CREATE
  59.               SEVERAL VMBS FOR EACH PROGRAM THAT HAS SPECIAL
  60.               REQUIREMENTS.
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.        2.  Boot up in OS/2 and copy the following files from the
  68.            OS2\MDOS directory to the VMB diskette:
  69.  
  70.                            ANSI.SYS
  71.                            FSFILTER.SYS
  72.                            FSACCESS.EXE
  73.                            EMM386.SYS
  74.                            HIMEM.SYS
  75.                            LPTDD.SYS
  76.                            MOUSE.COM
  77.  
  78.            You may add to this diskette any number of NATIVE DOS
  79.            files you want to use, but do not do this until the
  80.            VMB is up and running.
  81.  
  82.        3.  You will be able to create the VMB image in two
  83.            different ways.
  84.  
  85.            OPTION A:
  86.                     This will allow you to read/write to Drive A,
  87.                     but you will not be able to change the
  88.                     Autoexec.bat, Config.sys or add files after the
  89.                     VMB Image file has been created on the hard
  90.                     drive.  (Instructions below)
  91.  
  92.            OPTION B:
  93.                     This will allow you to read/write to Drive A:
  94.                     using an alternate drive letter.
  95.                     You will be able to change the Autoexec.bat,
  96.                     Config.sys, and add files after the Image
  97.                     file has been created on the hard drive (this
  98.                     will be Drive A). (Instructions below)
  99.  
  100.        4.  Each time you install a new version of OS/2 or a CSD,
  101.            you will need to update the IMAGE with the current
  102.            version of the files from the OS2\MDOS directory
  103.            listed in the above Section I-2.
  104.  
  105.  
  106.  
  107.                          ****** O P T I O N   A ******
  108.  
  109.  
  110.        1A.  On the VMB diskette create the following CONFIG.SYS
  111.             file with a text editor:
  112.  
  113.                            DEVICE=HIMEM.SYS
  114.                            DEVICE=EMM386.SYS
  115.                            DOS=HIGH,UMB
  116.                            DEVICE=FSFILTER.SYS
  117.                            DEVICE=ANSI.SYS
  118.                            DEVICE=LPTDD.SYS
  119.                            FILES=40
  120.                            BUFFERS=30
  121.                            LASTDRIVE=Z
  122.  
  123.  
  124.  
  125.  
  126.  
  127.        2A.  On the VMB diskette create the following
  128.             AUTOEXEC.BAT file with a text editor:
  129.  
  130.                            ECHO OFF
  131.                            PROMPT $P$G
  132.                            SET COMSPEC=C:\VMB\COMMAND.COM
  133.                            MOUSE.COM
  134.                            PATH C:\;C:\VMB
  135.                            C:
  136.                            CD\VMB
  137.                            VMB.BAT
  138.  
  139.        3A.  Make a directory called C:\VMB to house the VMB
  140.             image.  In the C:\VMB directory create the
  141.             following VMB.BAT file with a text editor:
  142.  
  143.                         C:\OS2\MDOS\FSACCESS A:
  144.                         CD\
  145.  
  146.             This file will allow you to read/write to Drive A.
  147.             Otherwise, a 'DIR' on Drive A, will show up as the
  148.             Image files.
  149.  
  150.        4A.  Copy COMMAND.COM from the VMB diskette to the VMB
  151.             directory.  Change to C:\VMB and type:
  152.  
  153.                         VMDISK A:  DOS.IMG <enter>
  154.  
  155.             This will create an image of the diskette you
  156.             created. The Image File will be named
  157.             DOS.IMG and will be located in the C:\VMB
  158.             directory.
  159.  
  160.        5A.  When completed, remove and store the diskette.
  161.             Return to the desktop.
  162.  
  163.  
  164.  
  165.                          ****** O P T I O N   B ******
  166.  
  167.  
  168.        1B.  On the VMB diskette create the following AUTOEXEC.BAT
  169.             file with a text editor:
  170.  
  171.                             ECHO OFF
  172.                             PROMPT $P$G
  173.                             MOUSE.COM
  174.                             PATH C:\;C:\VMB
  175.                             FSACCESS M=A
  176.                             C:
  177.                             CD\VMB
  178.  
  179.             NOTE:  If you start DOS from an Image File, you cannot
  180.                    use physical Drive A until you release the Image
  181.                    File.  FSACCESS M=A releases Drive A and assigns
  182.                    'M'.  You may select another logical drive
  183.                    in its place.  This process allows DOS Applications
  184.  
  185.  
  186.  
  187.  
  188.                    to read/write to physical Drive A - which will be
  189.                    logical Drive M.  When retrieving/saving a file
  190.                    from/to physical Drive A, rename the Application's
  191.                    drive destination to "M" instead of "A".
  192.  
  193.             LAN USERS:  Do not use FSACCESS Z=A if your Lan
  194.                         assigns logical Drive Z as the network
  195.                         drive.
  196.  
  197.        2B.  On the VMB diskette create the following CONFIG.SYS
  198.             file with a text editor:
  199.  
  200.                             DEVICE=HIMEM.SYS
  201.                             DEVICE=EMM386.SYS
  202.                             DOS=HIGH,UMB
  203.                             DEVICE=FSFILTER.SYS
  204.                             DEVICE=ANSI.SYS
  205.                             DEVICE=LPTDD.SYS
  206.                             FILES=40
  207.                             BUFFERS=30
  208.                             LASTDRIVE=Z
  209.  
  210.             NOTE:  Assigning LASTDRIVE = Z (for VMB purposes
  211.                    allows FSACCESS in Step 1B to assign
  212.                    letter "M" to drive A).
  213.  
  214.        3B.  Make a directory called C:\VMB to house the VMB
  215.             image.  Copy the COMMAND.COM from the VMB diskette
  216.             to the VMB directory.  Go to C:\VMB and type:
  217.  
  218.                         VMDISK A:  DOS.IMG <enter>
  219.  
  220.             This will create an image of the diskette you
  221.             created. The Image File will be named DOS.IMG and
  222.             will be located in the C:\VMB directory.
  223.  
  224.        4B.  When completed, remove and store the diskette.
  225.             Return to the desktop.
  226.  
  227.  
  228.        SECTION II - CREATE A VMB DESKTOP ICON
  229.  
  230.        1.  CREATE THE ICON
  231.  
  232.            a. Open the OS/2 SYSTEM folder.
  233.  
  234.            b. Double click on the COMMAND PROMPTS Icon.
  235.  
  236.            c. Copy the DOS FULL SCREEN icon to the Desktop by
  237.               holding down the CTRL key and dragging the icon to
  238.               the Desktop.
  239.  
  240.            d. Close the "COMMAND PROMPTS" and the OS/2 SYSTEM
  241.               Folder.
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.        2.  Change the DOS SETTINGS For the VMB Icon
  249.  
  250.            a. Select the ICON created in Step 1 by clicking
  251.               on it once.
  252.  
  253.            b. Bring up its menu by clicking on it once with
  254.               the right mouse button.
  255.  
  256.            c. Click on the ARROW on the "OPEN" line.
  257.  
  258.            d. Select SETTINGS.
  259.  
  260.            e. Select SESSION.
  261.  
  262.            f. Select DOS SETTINGS.
  263.  
  264.            g. Change the following settings:
  265.  
  266.                  DOS_UMB            to:    ON
  267.                  DOS_HIGH           to:    ON
  268.                  DOS_STARTUP_DRIVE  to:    C:\VMB\DOS.IMG
  269.                  XMS_MEMORY_LIMIT   to:    Default is 2048
  270.                                            OMin. Requirementt
  271.  
  272.            h. Use these settings for applications that use DOS
  273.               PROTECTED MODE INTERFACE (DPMI).
  274.  
  275.                  DPMI_MEMORY_LIMIT to:     4 (Minimum Requirement)
  276.                  DPMI_DOS_API      to:     ENABLE
  277.  
  278.            NOTE:  There may be other settings you wish to
  279.                   change, but do not do it until the VMB is up
  280.                   and running.
  281.  
  282.        3.  SAVE the settings.
  283.  
  284.        4.  Select GENERAL and change the TITLE field to "VMB" or
  285.            whatever name you wish to call your Desktop Icon.
  286.  
  287.        5.  Close out the Icon session by clicking twice with the
  288.            left mouse button in the upper left hand corner of the
  289.            settings window.
  290.  
  291.        6.  Time to test all this stuff out.  Double click on
  292.            your new DOS VMB Desktop Icon, and there you are.
  293.  
  294.        7.  To EXIT the VMB, create a file in the VMB directory -
  295.            "X.BAT"
  296.  
  297.                      @C:\OS2\MDOS\EXIT_VDM
  298.  
  299.            Type "X" at the command prompt.
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.        NOTE:  If you have problems with the above steps, please
  309.               double check all your file and directory names,
  310.               especially the ones in the DOS SETTINGS.  If you
  311.               need more assistance, open the MASTER HELP INDEX
  312.               and choose SEARCH TOPICS, and then enter
  313.               "STARTING FROM AN IMAGE FILE" in the box, scroll
  314.               down to the DOS section and double click on the
  315.               STARTING FROM AN AN IMAGE FILE and read the
  316.               information presented there.  Good Luck!!!!!
  317.  
  318.                              *****************
  319.  
  320.  
  321.               --  PART 2:  MULTI-BOOT VMB GENERAL GUIDELINES --
  322.  
  323.  
  324.        SECTION I - CREATE A MULTI-VMB CONFIG.SYS AND AUTOEXEC.BAT
  325.  
  326.  
  327.        1.  The MULTI-BOOT VMB is to be used for systems that have
  328.            the boot manager setup: Native DOS 6.0 or higher on the
  329.            C: Partition and OS/2 2.X on a different partition.
  330.  
  331.        2.  Create with a text editor the following Autoexec.bat and
  332.            Config.sys files on the root directory of the C: (Native
  333.            DOS) partition.
  334.  
  335.        NOTE:  PLEASE CREATE THE VMB FOLLOWING THE INSTRUCTIONS
  336.               IN THIS DOCUMENT, GET IT UP AND RUNNING, AND THEN
  337.               ADD OTHER FILES, DRIVERS, AND STATEMENTS FOR YOUR
  338.               SPECIFIC APPLICATIONS, NETWORKS, ETC.
  339.  
  340.  
  341.        AUTOEXEC.BAT:
  342.  
  343.               @ECHO OFF
  344.               PROMPT $p$g
  345.               GOTO %CONFIG%
  346.  
  347.               :NORMAL
  348.               C:\DOS\SMARTDRV.EXE
  349.               PATH C:\DOS
  350.               SET TEMP=C:\DOS
  351.               LH C:\DOS\MOUSE.COM
  352.               LH C:\DOS\DOSKEY
  353.               GOTO END
  354.  
  355.               :OS2
  356.               SET COMSPEC=C:\DOS\COMMAND.COM
  357.               PATH C:\;C:\DOS;
  358.               LH DOSKEY
  359.               LH D:\OS2\MDOS\MOUSE.COM
  360.               GOTO END
  361.               :END
  362.  
  363.  
  364.  
  365.  
  366.        CONFIG.SYS:
  367.  
  368.               <MENU>
  369.               MENUITEM=OS2,BOOT FOR OS/2 VMB
  370.               MENUITEM=NORMAL,BOOT FOR NATIVE DOS
  371.  
  372.               <NORMAL>
  373.               DEVICE=C:\DOS\HIMEM.SYS
  374.               DEVICE=C:\DOS\EMM386.EXE NOEMS
  375.               DOS=HIGH,UMB
  376.               FILES=30
  377.               BUFFERS=15
  378.               SHELL=C:\DOS\COMMAND.COM C:\DOS\  /P
  379.               DEVICEHIGH=C:\DOS\ANSI.SYS
  380.               STACKS=9,256
  381.  
  382.               <OS2>
  383.               DEVICE=D:\OS2\MDOS\FSFILTER.SYS
  384.               DEVICE=D:\OS2\MDOS\HIMEM.SYS
  385.               DEVICE=D:\OS2\MDOS\EMM386.SYS
  386.               DEVICEHIGH=D:\OS2\MDOS\ANSI.SYS
  387.               DEVICEHIGH=D:\OS2\MDOS\LPTDD.SYS
  388.               DOS=HIGH,UMB
  389.               FILES=30
  390.               BUFFERS=20
  391.               SHELL=C:\DOS\COMMAND.COM C:\DOS /P
  392.  
  393.        *****  NOTE *****
  394.        Please REPLACE the < > which are located around MENU, NORMAL, and OS2,
  395.        with the left and right bracket symbols (looks like the left and right
  396.        side of a box).  Because of the way files are stored on the IBM LAN,
  397.        some symbol characters are misinterpreted.
  398.  
  399.  
  400.        SECTION II - CREATE A VMB DESKTOP ICON
  401.  
  402.        1.  CREATE THE ICON
  403.  
  404.            a. Open the OS/2 SYSTEM folder.
  405.  
  406.            b. Double click on the COMMAND PROMPTS Icon.
  407.  
  408.            c. Copy the DOS FULL SCREEN icon to the Desktop by
  409.               holding down the CTRL key and dragging the icon to
  410.               the Desktop.
  411.  
  412.            d. Close the "COMMAND PROMPTS" and the OS/2 SYSTEM
  413.               Folder.
  414.  
  415.        2.  Change the DOS SETTINGS For the VMB Icon
  416.  
  417.            a. Select the ICON created in Step 1 by clicking
  418.               on it once.
  419.  
  420.            b. Bring up its menu by clicking on it once with
  421.               the right button.
  422.  
  423.            c. Click on the ARROW on the "OPEN" line.
  424.  
  425.            d. Select SETTINGS.
  426.  
  427.            e. Select SESSION.
  428.  
  429.            f. Select DOS SETTINGS.
  430.  
  431.            g. Change the following settings:
  432.  
  433.                 DOS_UMB            to:    ON
  434.                 DOS_HIGH           to     ON
  435.                 DOS_STARTUP_DRIVE  to:    C:\
  436.                 XMS_MEMORY_LIMIT   to:    Default is 2048
  437.                                           OMin. Requirementt
  438.  
  439.            h. Use these settings for applications that use DOS
  440.               PROTECTED MODE INTERFACE (DPMI).
  441.  
  442.               DPMI_MEMORY_LIMIT to:     4 (Minimum Requirement)
  443.               DPMI_DOS_API      to:     ENABLE
  444.  
  445.            NOTE:  There may be other settings you wish to
  446.                   change, but do not do it until the VMB is up
  447.                   and running.
  448.  
  449.        3.  SAVE the settings.
  450.  
  451.        4.  Select GENERAL and change the TITLE field to "VMB" or
  452.            whatever name you wish to call your Desktop Icon.
  453.  
  454.        5.  Close out the Icon session by clicking twice with the
  455.            left mouse button in the upper left hand corner of the
  456.            settings window.
  457.  
  458.        6.  Time to test all this stuff out.  Double click on
  459.            your new DOS VMB Desktop Icon.  The following will appear:
  460.  
  461.                 MS-DOS 6 Startup Menu
  462.  
  463.                      1.  BOOT FOR OS/2 VMB     (highlighted)
  464.                      2.  BOOT FOR NATIVE DOS
  465.  
  466.                  Enter a choice:  1            (select 1)
  467.  
  468.            If you select "2", you will get error messages.  This
  469.            selection is for booting native DOS from the Boot
  470.            Manager partition.
  471.  
  472.        7.  To EXIT the VMB, create a file in the C:\ directory -
  473.            "X.BAT"
  474.  
  475.                      @ECHO OFF D:\OS2\MDOS\EXIT_VDM
  476.  
  477.            Type "X" at the command prompt.
  478.                     -------------------------
  479.  
  480.        Report by:  OS/2 Dosap Analyst Team - 05/94
  481.                    IBM - Boca Raton, Florida
  482. 12/31/99
  483.