home *** CD-ROM | disk | FTP | other *** search
/ Arawak OS/2 Shareware / PAKLED.ISO / docs / faq / vmbfaq.inf (.txt) < prev    next >
Encoding:
OS/2 Help File  |  1993-05-11  |  8.8 KB  |  229 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. About this FAQ ΓòÉΓòÉΓòÉ
  3.  
  4. One of the questions I've seen often in the BBS from OS/2 newcomers is what is 
  5. a VMB and how do I create one? Based on information gleaned from OS/2 help, 
  6. responses on the BBS and sources on Fidonet (Thanks, John Faughnan) I've 
  7. created this INF file detailing creation of a VMB in six easy steps. 
  8.  
  9. This INF is placed into public domain and may be freely copied. 
  10.  
  11. Jeff Elkins - GEnie OS/2 RT Staff 
  12.  
  13.  
  14. ΓòÉΓòÉΓòÉ 2. GEnie OS/2 RT ΓòÉΓòÉΓòÉ
  15.  
  16. What is GEnie? GEnie is a premier national online information service brought 
  17. to you by General Electric. It contains thousands of files for all types of 
  18. computers as well as hundreds of BBS's which you can access for a flat monthly 
  19. rate. 
  20.  
  21. GEnie is also home of the OS/2 RT (Roundtable). 
  22.  
  23. How to get a GEnie Account 
  24.  
  25. Remember, do not type the quotation marks in the steps below. 
  26.  
  27. 1. Set your communications software to: 
  28.  
  29. 300, 1200, or 2400 baud 
  30.  
  31. local echo (half duplex) 
  32.  
  33. 7 data bits and 1 stop bit 
  34.  
  35. even parity 
  36.  
  37. 2. Tell your communications software or modem to dial: 
  38.  
  39. In the United States:  1-800-638-8369 
  40.  
  41. In Canada:       1-800-387-8330 
  42.  
  43. 3. When your modem connects, type "HHH" 
  44.  
  45. Do not type too quickly, but don't use more than a second to type each one. 
  46. GEnie will respond with the prompt "U#=". 
  47.  
  48. 4. Type "XTX99566, GENIE" 
  49.  
  50. 5. Follow the instructions on the screen to apply for your account. 
  51.  
  52. Before you finish, GEnie will issue you a user ID number and temporary 
  53. password, your GE Mail address, and GEnie access numbers. 
  54.  
  55.  
  56. ΓòÉΓòÉΓòÉ 3. VDM or VMB? ΓòÉΓòÉΓòÉ
  57.  
  58. VDM (Virtual DOS Machine) is OS/2's built-in DOS session. A VDM session 
  59. "emulates" standard DOS 5.0 Virtually <g> all DOS software can run in a 
  60. standard VDM, but the VMB facility can handle most which cannot. 
  61.  
  62. VMB (Virtual Machine Boot) is the ability provided by OS/2 2.X which allows the 
  63. user to boot a specific version of DOS (or CP/M) that runs as a session under 
  64. OS/2. This allows you to run software which cannot run in a standard VDM 
  65. (Virtual DOS Machine) emulated DOS session under OS/2. 
  66.  
  67.  
  68. ΓòÉΓòÉΓòÉ 4. What can't run in a VMB? ΓòÉΓòÉΓòÉ
  69.  
  70. Despite their versatility, VMB's can't run everything. Prohibited are: 
  71.  
  72. 1. Non-DPMI (i.e. VCPI) DOS extenders. 
  73.  
  74. 2. Disk I/O bypassing the file system. This includes low-level formatting, DOS 
  75. undelete programs, and almost all DOS disk utility programs such as CHKDSK or 
  76. FORMAT. 
  77.  
  78.  
  79. ΓòÉΓòÉΓòÉ 5. Creating a VMB ΓòÉΓòÉΓòÉ
  80.  
  81. OS/2 can (almost automatically) boot DOS from a diskette in the A: drive, but 
  82. the best approach is to create an "Image" file which is stored on your hard 
  83. disk. The steps to create and use an DOS image follow. I'm assuming you have 
  84. the following: 
  85.  
  86. 1. A DOS 5.0 Bootable diskette. The smaller the capacity the better. Try to use 
  87. a 360K or 720K. 
  88.  
  89. 2. Any device drivers you wish to use. 
  90.  
  91.  
  92. ΓòÉΓòÉΓòÉ 5.1. Step 1 - Preparing the diskette ΓòÉΓòÉΓòÉ
  93.  
  94. 1. Remove any  file or low-level utilities such as FORMAT.COM, SYS.COM or 
  95. CHKDSK.COM. They waste space and you can't use them anyway. 
  96.  
  97. 2. Remove DOS memory managers (i.e. EMM386, HIMEM) and any mouse drivers 
  98. (MOUSE.COM or MOUSE.SYS). 
  99.  
  100. Copy the following files from the \OS2\MDOS subdirectory to the diskette. 
  101.  
  102.  HIMEM.SYS 
  103.  
  104.  EMM386.SYS 
  105.  
  106.  FSFILTER.SYS 
  107.  
  108.  MOUSE.COM  (if your VMB will require a mouse) 
  109.  
  110.  Copy any other device drivers you need for the VMB to the diskette. 
  111.  
  112.  
  113. ΓòÉΓòÉΓòÉ 5.2. Step 2 - The CONFIG.SYS ΓòÉΓòÉΓòÉ
  114.  
  115. Prepare a CONFIG.SYS file for the diskette. It should contain: 
  116.  
  117. DEVICE=FSFILTER.SYS 
  118.  
  119. DEVICE=EMM386.SYS 
  120.  
  121. DEVICE=HIMEM.SYS 
  122.  
  123. SHELL=COMMAND.COM /P 
  124.  
  125. FILES=20 
  126.  
  127. BUFFERS=20 
  128.  
  129. Plus any device drivers specific to this DOS VMB session. 
  130.  
  131.  
  132. ΓòÉΓòÉΓòÉ 5.3. Step 3 - Batch processing ΓòÉΓòÉΓòÉ
  133.  
  134. Create an AUTOEXEC.BAT with the following: 
  135.  
  136. @ECHO OFF 
  137.  
  138. LOADHIGH MOUSE.COM (if you copied MOUSE.COM to the diskette) 
  139.  
  140. PROMPT=$p$g 
  141.  
  142. Further batch processing should be run from a batch file on your hard drive. 
  143. This saves you from having to rebuild the image file if you make changes. 
  144.  
  145.  So, assuming your hard drive is C: the last three lines in your AUTOEXEC.BAT 
  146. would read: 
  147.  
  148. C: 
  149.  
  150. CD\BATFLS   (subdirectory location where you keep .BAT files) 
  151.  
  152. MYBAT.BAT 
  153.  
  154. NOTE:  MYBAT.BAT will contain steps for further processing  required by your 
  155. VMB (We'll create MYBAT.BAT in the next step) 
  156.  
  157.  
  158. ΓòÉΓòÉΓòÉ 5.4. Step 4 - Creating MYBAT.BAT ΓòÉΓòÉΓòÉ
  159.  
  160. You now need to create a BAT file on your hard drive that will re-map your A: 
  161. drive, contain your path, and other startup processing your VMB might require. 
  162. For the purposes of this INF we'll call it MYBAT.BAT, but you can name it 
  163. whatever you wish. 
  164.  
  165. Line one MYBAT.BAT  => C: 
  166.  
  167.  Line one above logs off the A: drive 
  168.  
  169. (You can't re-map a drive while you're logged on to it) 
  170.  
  171. Line two MYBAT.BAT  => C:\OS2\MDOS\FSACCESS Z:=A: 
  172.  
  173. Line two above re-maps drive A: to drive Z: (where Z is an unused drive 
  174. letter). 
  175.  
  176. In other words, when you want to access data on a floppy in drive A: you would 
  177. substitute the letter Z: instead. 
  178.  
  179. Line three MYBAT.BAT => C:\YOURPATH;C:\YOURPATH; 
  180.  
  181. End this BAT file with any other startup processing you require. 
  182.  
  183.  
  184. ΓòÉΓòÉΓòÉ 5.5. Step 5 - Creating an image file ΓòÉΓòÉΓòÉ
  185.  
  186. You now need to create a image file OS/2 can use to boot from. 
  187.  
  188. The syntax required is: 
  189.  
  190. VMDISK D: DOS5.IMG 
  191.  
  192. Substitute your floppy drive letter for the D: You may use a filename of your 
  193. choice for DOS5.IMG also. 
  194.  
  195. Completion of this step results in an image file which will be the size of the 
  196. diskette used. 
  197.  
  198.  
  199. ΓòÉΓòÉΓòÉ 5.6. Step 6 - Using the VMB ΓòÉΓòÉΓòÉ
  200.  
  201. Return to WPS and copy a DOS command prompt object from the Command Prompts 
  202. folder to the desktop 
  203.  
  204. Open the settings notebook and click the SESSIONS tab, then click the 
  205. DOS_SETTINGS pushbutton. 
  206.  
  207. Locate the DOS_STARTUP_DRIVE entry and change it to reflect the location where 
  208. you placed your image file. 
  209.  
  210. i.e. C:\MYIMAGE\DOS5.IMG 
  211.  
  212. Save the settings. 
  213.  
  214. Close the settings notebook. 
  215.  
  216. Double-click on the VMB icon to start the VMB session. 
  217.  
  218.  
  219. ΓòÉΓòÉΓòÉ 5.7. Step 7 - Exiting the VMB ΓòÉΓòÉΓòÉ
  220.  
  221. The normal "exit" command will not close a VMB. You can close a VMB in two 
  222. ways: 
  223.  
  224. 1. Alt-Esc to the desktop and close the session using the task list. 
  225.  
  226. 2. Type EXIT_VDM (OS/2 2.1). EXIT_VDM.COM is a small (7 byte) program supplied 
  227. with OS/2 2.1. It is also available in the RT software libraries. 
  228.  
  229. That's it! You should now have a functional VMB.