OSDICVMB - CD-ROM IN A VIRTUAL MACHINE BOOT (VMB) ENVIRONMENT 01/22/96 ======================================================================= CD-ROM in a Virtual Machine Boot (VMB) Environment ======================================================================= Please Read Entire Document for Full Explanation of Procedures -------------------------------------------------------------- DESCRIPTION This document contains instructions for setting up a CD-ROM in a VMB environment RESOLUTION Before You Begin ---------------- 1. Check with the vendor if your CD-ROM device has an OS/2 supported device driver. Use the device driver that corresponds to the OS/2 version you are running on your system. 2. If the CD-ROM device is not currently compatible with OS/2, set up a single-session VMB to run your CD-ROM: * If you use DOS 5.0 to create a CD-ROM VMB, you need the file, MSCDEX.EXE V2.21. This should have been shipped with your CD-ROM. If not, you can obtain it through your vendor, or download it from IBM PCC BBS (919-517-0001). * If you use MSDOS 6.0 to create a VMB, you need the file, MSCDEX.EXE V2.22. That file comes with MSDOS 6.0 and is located in the \DOS directory. Follow the instructions below to create a CD-ROM VMB. Creating a CD-ROM VMB Diskette ------------------------------ 1. Each image file you create equals the size of the diskette you use; for example 360 KB, 720 KB, or 1.44 MB high-density diskette. There are two ways to create a CD-ROM VMB. a. Start the system with a DOS 5.0 or 6.0 diskette that has FORMAT.COM in the PATH statement of the AUTOEXEC.BAT file. Replace the diskette in drive A with the diskette you are using for the CD-ROM VMB. At the C:> prompt, type FORMAT A: /S and press Enter. b. If you have pure DOS 5.0 or 6.0 installed, start from there. Insert a blank formatted diskette in drive A; then from the DOS root directory, type SYS A:\ and press Enter. This places COMMAND.COM on the diskette. Note: After creating a VMB diskette, you can: - Start from DOS from Drive A: in the Command Prompts folder. - Start from the CD-ROM VMB Image icon that you created on the Desktop. 2. Start in OS/2 and copy the following files from the OS2\MDOS directory to the CD-ROM VMB diskette: ANSI.SYS FSFILTER.SYS FSACCESS.EXE EMM386.SYS HIMEM.SYS LPTDD.SYS MOUSE.COM (CD-ROM driver; for example, TSLCDR.SYS) MSCDEX.EXE You can add any DOS 5.0 or 6.0 files to this diskette after the CD-ROM VMB is running. 3. You can create the CD-ROM VMB image in two ways: a. You can read or write to drive A, but you cannot change the AUTOEXEC.BAT or CONFIG.SYS files, or add files directly to the CD-ROM VMB image file on the hard disk. Use a text editor to create files. 1) On the VMB diskette, create the following CONFIG.SYS file: DEVICE = FSFILTER.SYS DEVICE = HIMEM.SYS DEVICE = EMM386.SYS DOS = HIGH,UMB DEVICE = ANSI.SYS DEVICE = LPTDD.SYS DEVICE = (CD-ROM driver; for example, DEVICE=TSLCDR.SYS) FILES = 40 BUFFERS = 30 LASTDRIVE = Z 2) On the CD-ROM VMB diskette, create the following AUTOEXEC.BAT file: ECHO OFF PROMPT $P$G MSCDEX /D:driver_name /E (for example, /D:TSLCDR.SYS /E) SET COMSPEC=C:\CDROM\COMMAND.COM MOUSE.COM PATH C:\;C:\VMB C: CD\CDROM CDROM.BAT 3) Make a directory called C:\CDROM; then create the following CDROM.BAT file for the new directory: C:\OS2\MDOS\FSACCESS A: CD\ This file lets you to read and write to drive A; otherwise, a DIR of drive A shows up as the image files. 4) Copy COMMAND.COM from the CD-ROM VMB diskette to the \CDROM directory. Go to C:\CDROM and type VMDISK A: CDROM.IMG and press Enter. This creates an image of the diskette you created. The image file is CDROM.IMG and is in the C:\CDROM directory. 5) Remove the diskette from drive A. b. You can read or write to an drive other than drive A; for example, M. You can change the AUTOEXEC.BAT or CONFIG.SYS files, and add files directly to the CD-ROM VMB Image file on the hard disk; this is drive A. Use a text editor to create the files. 1) On the CD-ROM VMB diskette, create the following AUTOEXEC.BAT file: ECHO OFF PROMPT $P$G MSCDEX /D:driver_name /E (for example, /D:TSLCDR.SYS /E MOUSE.COM PATH C:\;C:\CDROM FSACCESS M=A C: CD\CDROM Note: If you start DOS from an image file, you cannot use physical drive A until you release the image file. FSACCESS M=A releases drive A and assigns M, or whatever unused logical drive you select to name in its place. LAN USERS: Do not use FSACCESS Z=A if the LAN assigns logical drive Z as the network drive. 2) On the CD-ROM VMB diskette, create the following CONFIG.SYS file: DEVICE = FSFILTER.SYS DEVICE = HIMEM.SYS DEVICE = EMM386.SYS DOS = HIGH,UMB DEVICE = ANSI.SYS DEVICE = LPTDD.SYS DEVICE = (CD-ROM driver; for example, DEVICE=TSLCDR.SYS) FILES = 40 BUFFERS = 30 LASTDRIVE = Z Note: Assigning LASTDRIVE = Z (for VMB purposes only) allows DOS applications to read or write to physical drive A, which is logical drive M. When retrieving or saving a file from or to physical drive A, rename the application's drive designation to M instead of A. 3) Make a directory called C:\CDROM; then copy COMMAND.COM from the CD-ROM VMB diskette to the \CDROM directory. Go to C:\CDROM; then type VMDISK A: CDROM.IMG and press Enter. This creates an image of the diskette you created. The image file name is CDROM.IMG and is in the C:\CDROM directory. 4) Remove the diskette from drive A. 5) When completed, return to the Desktop. Creating a CD-ROM VMB Desktop Icon ---------------------------------- 1. Open OS/2 System. 2. Open Command Prompts. 3. Copy DOS Full Screen to the Desktop by holding down the Ctrl key and dragging the icon to the Desktop. 4. Close Command Prompts and OS/2 System. 5. Point at DOS Full Screen and click mouse button 2 once to display the menu. 6. Select Open; then select Settings. 7. Select the Session tab. 8. DOS Settings...; then change the following settings: DOS_UMB to ON DOS_HIGH to ON DOS_STARTUP_DRIVE to C:\CDROM\CDROM.IMG XMS_MEMORY_LIMIT to Default is 2048, the minimum requirement; increase as needed) 9. Select Save. 10. Select General and change the Title field to CDROM, or whatever name you wish to call your Desktop icon. 11. Click twice in the upper-left corner to close the window. 12. Double-click on your new DOS CD-ROM VMB Desktop icon. 13. To exit the CD-ROM VMB, press Ctrl+Esc for the Window List. Double-click on the CD-ROM VMB session; then click the mouse button 2 and select Close. Note: If you have problems with the above steps, check all your files and directory names, especially the ones in DOS SETTINGS. If you need assistance, open Master Help Index and select Search Topics. Type Starting from an image file in the entry field, scroll down to the DOS section, and double-click on the Starting from an image file to read the information. ______________________________________________________________________ IBM disclaims all warranties, whether express or implied, including without limitation, warranties of fitness and merchantability with respect to the information in this document. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.