The installation of OS/2 Version 2.0 provides the user with a chance to tailor the OS/2 and DOS system parameters from the OS/2 Setup and Installation panel. During normal operation of OS/2 V2.0 there is little need to directly edit system files such as CONFIG.SYS. The installation of OS/2 generates a CONFIG.SYS file in the root directory of the installation drive, similar to that shown in Figure "A Typical OS/2 Version 2.0 CONFIG.SYS". Note that in this example the user has installed OS/2 V2.0 on the "D:" logical drive.
The CONFIG.SYS files for OS/2 V2.0 are similar to those in previous versions of OS/2 with a few exceptions. Here is a brief explanation of the function performed by each line in the CONFIG.SYS used as an example above. A full description of each of the statements used can be found in the Online Command Reference.
01 IFS=D:\OS2\HPFS.IFS /CACHE:384 /CRECL:4 /AUTOCHECK:CDEFG
The /CACHE parameter specifies the amount of memory (KB) that the HPFS file system driver will use for file system disk caching. The cache for the FAT file system is handled by the DISKCACHE= statement, line 22 in this example. The amount of cache specified in the CONFIG.SYS can have a significant impact on performance. The OS/2 V2.0 installation process will select an amount of cache for the system based on the amount of installed memory, the disk size and the file system being used. The optimum amount of cache to use will depend on the factors just mentioned, and the mix of operations performed by the system. For example, an I/O intensive system, such as a server, may perform better with a larger cache.
The /CRECL parameter specifies the maximum record size (in multiples of 2KB) for caching. This value is also important for performance as it represents the maximum size an I/O can be, and still be read into the HPFS cache.
For more information on the parameters associated with the HPFS driver, refer to the Online Command Reference.
02 PROTSHELL=D:\OS2\PMSHELL.EXE
03 SET USER_INI=D:\OS2\OS2.INI 04 SET SYSTEM_INI=D:\OS2\OS2SYS.INI 05 SET OS2_SHELL=D:\OS2\CMD.EXE 06 SET AUTOSTART=PROGRAMS,TASKLIST,FOLDERS 07 SET RUNWORKPLACE=D:\OS2\PMSHELL.EXE 08 SET COMSPEC=D:\OS2\CMD.EXE 10 SET PATH=D:\OS2;D:\OS2\SYSTEM;D:\OS2\MDOS\WINOS2; D:\OS2\INSTALL;D:\;D:\OS2\MDOS;D:\OS2\APPS; 11 SET DPATH=D:\OS2;D:\OS2\SYSTEM;D:\OS2\MDOS\WINOS2; D:\OS2\INSTALL;D:\;D:\OS2\BITMAP;D:\OS2\MDOS;D:\OS2\APPS; 12 SET PROMPT=$i[$p] 13 SET HELP=D:\OS2\HELP;D:\OS2\HELP\TUTORIAL; 14 SET GLOSSARY=D:\OS2\HELP\GLOSS;
The main change from OS/2 V1.3 is the inclusion of some variables used by the Workplace Shell, namely lines 3 though 7.
09 LIBPATH=.;D:\OS2\DLL;D:\OS2\MDOS;D:\;D:\OS2\APPS\DLL;
15 PRIORITY_DISK_IO=YES
16 FILES=20
17 DEVICE=D:\OS2\TESTCFG.SYS 18 DEVICE=D:\OS2\DOS.SYS 19 DEVICE=D:\OS2\PMDD.SYS
TESTCFG.SYS is a new device driver in OS/2 V2.0 which is used during the install process to test the system configuration. This DEVICE statement should not be removed from the CONFIG.SYS as it is also used by the selective install process and during device driver installation.
20 BUFFERS=30
21 IOPL=YES
22 DISKCACHE=64,LW
23 MAXWAIT=3
24 MEMMAN=SWAP,PROTECT
25 SWAPPATH=D:\OS2\SYSTEM 2048 4096
26 BREAK=OFF
27 THREADS=256
28 PRINTMONBUFSIZE=134,134,134
29 COUNTRY=001,D:\OS2\SYSTEM\COUNTRY.SYS
30 SET KEYS=ON
31 REM SET DELDIR=C:\DELETE,512;D:\DELETE,512;E:\DELETE,512; F:\DELETE,512;G:\DELETE,512;
32 BASEDEV=PRINT02.SYS 33 BASEDEV=IBM2FLPY.ADD 34 BASEDEV=IBM2SCSI.ADD /LED 35 BASEDEV=OS2SCSI.DMD 36 BASEDEV=OS2DASD.DMD
In addition, OS/2 V2.0 includes the following base device drivers:
PRINT01.SYS; Device support for locally attached printers on non-Micro Channel
workstations.
IBM1FLPY.ADD; Device support for diskette drives on non-Micro Channel workstations.
IBM1S506.ADD; Device support for non-SCSI disk drives on non-Micro Channel
workstations.
IBM2ADSK.ADD; Device support for non-SCSI disk drives on Micro Channel workstations.
IBMINT13.I13; General-purpose device support for non-Micro Channel SCSI
adapters.
A device driver is a file that contains the code that the OS/2 operating system needs to recognize a device and correctly process information received from or sent to that device. A base device driver is one that is needed when the OS/2 operating system is first started.
The BASEDEV statement is used to load base device drivers. Device support for disks, diskettes, printers connected to the workstation, and other devices, is loaded with the BASEDEV statement.
Unlike the DEVICE statement, the BASEDEV statement cannot contain either drive or path information because the OS/2 operating system cannot process such information at the stage of the startup sequence when the BASEDEV statements are processed. The root directory of the startup partition is first searched for the specified file name, then the \OS2 directory of the startup partition. If drive or path information is included in a BASEDEV statement, an error is generated.
In addition, BASEDEV statements are not necessarily processed in the order in which they appear in your CONFIG.SYS file. The extensions of the file names specified in the BASEDEV statements are examined; the statements are then processed in the following order of file name extensions: .SYS .BID .VSD .TSD .ADD .I13 .FLT then .DMD
37 REM IFS=D:\OS2\CDFS.IFS /Q 38 REM DEVICE=D:\OS2\CDROM.SYS /Q /I /N:4
39 SET BOOKSHELF=D:\OS2\BOOK 40 SET EPATH=D:\OS2\APPS
41 DEVICE=D:\OS2\APPS\SASYNCDB.SYS
42 PROTECTONLY=NO
43 SHELL=D:\OS2\MDOS\COMMAND.COM D:\OS2\MDOS /P
44 FCBS=16,8 45 RMSIZE=640 46 DEVICE=D:\OS2\MDOS\VEMM.SYS 47 DEVICE=D:\OS2\MDOS\VMOUSE.SYS 48 DOS=LOW,NOUMB 49 DEVICE=D:\OS2\MDOS\VDPX.SYS 50 DEVICE=D:\OS2\MDOS\VXMS.SYS /UMB 51 DEVICE=D:\OS2\MDOS\VDPMI.SYS 52 DEVICE=D:\OS2\MDOS\VWIN.SYS 53 DEVICE=D:\OS2\MDOS\VCDROM.SYS
The first line sets the file control block (FCB) management information for DOS sessions. A FCB is a record that contains all of the information about a file (for example, its structure, length, and name). If a program tries to open more than the number of files specified in the FCBS statement, the system closes the least recently used file control block and opens the new file. This parameter should not need to be changed and has no effect on OS/2 sessions.
The RMSIZE= statement specifies the highest storage address allowed for the DOS operating environment. In certain circumstances this can be used to limit the size of the DOS environment.
In line 48, the DOS= parameter specifies whether the DOS kernel will reside in the high memory area (HMA) and whether the operating system or DOS applications will control upper memory blocks (UMBs). The HMA refers to space between 1MB and 1MB+64KB and UMBs reside between 640KB and 1MB.
If DOS=HIGH/LOW,UMB is specified in CONFIG.SYS, then the operating system controls the UMBs. This means that DOS applications can be loaded into upper memory but cannot allocate UMBs.
On the other hand, if DOS=HIGH/LOW,NOUMB is specified in CONFIG.SYS, then the operating system will not control any UMBs and DOS applications can allocate UMBs but cannot be loaded there.
Lines 46 and 47, and 49 through 53 contain the device drivers for the virtual DOS/Windows environment. More information on these specific drivers and a complete discussion of tailoring the DOS environment under OS/2 V2.0 may be found in OS/2 Version 2.0 - Volume 2: DOS and Windows Environment.
54 DEVINFO=SCR,VGA,D:\OS2\VIOTBL.DCP 55 SET VIDEO_DEVICES=VIO_VGA 56 SET VIO_VGA=DEVICE(BVHVGA) 57 DEVICE=D:\OS2\MDOS\VVGA.SYS 58 DEVICE=D:\OS2\MDOS\V8514A.SYS
The DEVINFO= statement in line 54 is used to prepare a device (such as a keyboard (KBD), display terminal (SCR), or printer (LPT#)) for codepage switching. Separate DEVINFO statements are required for each device to be used for codepage switching.
This line prepares the display screen for codepage switching. The display statement specifies your display name and a file named VIOTBL.DCP that contains a video font table for displaying characters in each of the codepages supported by the system.
Lines 55 and 56 set environment variables related to the display driver being used.
Lines 57 and 58 load virtual device drivers for the VGA and 8514/A devices, for use by the DOS/Windows environment. In this example, the user specified VGA resolution with an 8514/A adapter installed.
If OS/2 V2.0 were installed on a system with an XGA adapter, and high resolution was specified for the Windows environment (that is, Windows was to be run full-screen only), then the appropriate lines in the CONFIG.SYS would be:
DEVINFO=SCR,VGA,D:\OS2\VIOTBL.DCP SET VIDEO_DEVICES=VIO_XGA SET VIO_XGA=DEVICE(BVHVGA,BVHXGA) DEVICE=D:\OS2\MDOS\VVGA.SYS DEVICE=D:\OS2\MDOS\VXGA.SYS
Adding or changing your display adapter support after installation can be performed automatically using the OS/2 V2.0 selective install process. A complete description of how this is done can be found in the Master Help Index under adding display adapter support.
59 DEVICE=D:\OS2\POINTDD.SYS 60 DEVICE=D:\OS2\MOUSE.SYS
If the pointing device used was a Microsoft mouse attached to the COM1 port, line 60 would change to:
60 DEVICE=D:\OS2\MOUSE.SYS SERIAL=COM1
Some pointing devices such as the Logitech** mouse need a device-dependent device driver as well as the MOUSE.SYS device-independent device driver.
Refer to Pointing Device Support and the Online Command Reference, if installing support for a pointing device not directly supported by the OS/2 installation procedure.
61 DEVICE=D:\OS2\COM.SYS 62 DEVICE=D:\OS2\MDOS\VCOM.SYS
Note: The COM.SYS device driver is used for all IBM PS/2 models. There is no COMDMA.SYS device driver for the IBM PS/2 Models 90 and 95 as described in the Online Command Reference.
Some devices which attach to the COM ports provide their own device drivers. COM.SYS allows other drivers which support COM ports to be installed, provided they are listed in the CONFIG.SYS before COM.SYS. When COM.SYS is loaded, it will claim all COM ports not already allocated to other device drivers.
In the following example DEVCOM1.SYS uses COM1 and PRINTER4.SYS uses COM4. COM2 and COM3 are available for use by COM.SYS.
DEVICE=C:\OS2\DEVCOM1.SYS DEVICE=C:\OS2\PRINTER4.SYS DEVICE=C:\OS2\COM.SYS
63 CODEPAGE=437,850 64 DEVINFO=KBD,US,D:\OS2\KEYBOARD.DCP