home *** CD-ROM | disk | FTP | other *** search
- Taking Advantage of Your PC's Hard Disk:
- Part III, CONFIG.SYS and the Virtual Disk
-
- Barry Gordon
- New York Personal Computer, Inc.
-
- There are some simple things you can do to enhance the
- performance of your hard drive. Creating a CONFIG.SYS file and a
- virtual disk can give you added power and speed in working on
- your PC by reconfiguring your operating system and Random Access
- Memory (RAM).
-
- The CONFIG.SYS File
-
- Another file that is useful in the root directory is the
- CONFIG.SYS file. It's a collection of miscellany to modify the
- way the PC system works. You may want to try a CONFIG.SYS file
- consisting of three lines:
-
- BREAK=ON
- FILES=16
- BUFFERS=8
-
- The BREAK command allows you to interrupt the system more easily
- should you wish to terminate the execution of a program.
-
- The FILES command allows DOS to juggle more than the default of
- eight active files simultaneously. This is important, because
- DOS loads five files of its own, leaving you with only three.
- Sixteen should give you enough to handle most any situation.
-
- The BUFFERS command can speed up certain kinds of disk
- operations. You may want to try as many as 16 or even 32 for a
- 20MB hard disk.
-
- The Virtual Disk
-
- A large internal RAM not only allows manipulation of larger files
- when necessary, but gives the user access to the speed of
- internal memory for processing data. Just as the hard disk
- increases computing speed over the diskette drive, so internal
- memory, if utilized, increases computing speed over the hard
- drive. To tap the speed and power of the internal memory, you
- might consider setting up a virtual disk. However, to attempt to
- set up a virtual disk, you should have more than 256KB of memory
- in your PC, preferably, 512KB or larger.
-
- The virtual disk is a portion of RAM set aside to simulate a
- disk. The virtual disk is referred to by the drive designation
- letter following that of the system's last hard disk. Assuming a
- single hard disk C:, our virtual disk becomes D:. The virtual
- disk is created at startup by a program such as the VDISK command
- that comes with DOS 3.0., working together with a command you
- save in your CONFIG.SYS file.
-
- With 512KB of RAM, a reasonable virtual disk size to try is 64KB.
- If you have a 640KB system, you may want to set up a virtual disk
- of 192KB. I suggest leaving about 448KB of available, active RAM
- to have ample memory for DOS to do its work.
-
- A virtual disk of even 64KB can do wonders. It can also be
- effectively larger by specifying the smallest possible sector
- size -- e.g., 128 bytes -- for the greatest possible data packing
- density. Assuming VDISK.COM and 640KB of RAM, the virtual disk
- specification in your CONFIG.SYS might look like this:
-
- DEVICE=C:\VDISK
-
- The entire CONFIG.SYS file would look like this:
-
- BREAK=ON
- FILES=16
- BUFFERS=8
- DEVICE=C:\VDISK.SYS 192 128 64
-
- The SETPATH.BAT and AUTOEXEC.BAT Files Revised
-
- What do you do with this virtual disk D: now that it is set up?
- First, you can begin to take full advantage of your virtual
- disk's speed by adding a statement to AUTOEXEC.BAT to transfer
- the sub-directory of your most-used files to the virtual disk D:.
-
- Your AUTOEXEC.BAT file now contains the following:
-
- DATE
- TIME
- PROMPT $P$G
- COPY \anyname1\*.* D:
- D:SETPATH
-
- Note that the SETPATH command must remain the last one in the
- file. Next, modify the PATH command (in SETPATH.BAT) to PATH
- D:\;C:\anyname2;C:\any3;C:\any4 replacing the c:\anyname1 you
- formerly had in SETPATH.BAT with the root directory of your
- virtual drive D:\. (Again, note that you specify complete paths,
- including all drive designations, to keep the command totally
- independent of what the default drive might happen to be.)
-
- Finally, move the SETPATH.BAT file out of the root directory and
- into the \anyname1 directory for automatic transfer to D:. This
- allows you to execute the SETPATH command from any directory,
- entering it as simply SETPATH or D:SETPATH if necessary.
-
- The root directory on your hard drive now contains the following
- files:
-
- <IBMBIO.COM>
- <IBMDOS.COM>
- COMMAND.COM
- AUTOEXEC.BAT
- Sub-directory Names
- CONFIG.SYS
- VDISK.COM (or equivalent)
-
- Tips Concerning The Virtual Drive
-
- Now that your PC has the virtual disk D:, you will want to keep
- only your most-used files in your C:\anyname1 directory. I would
- suggest you put in some DOS external command files, plus regulars
- like BASIC.COM, or perhaps a few of your personal favorites, such
- as PE.EXE or your word processing program. Depending on the size
- of your virtual disk, you might even wish to add some non-
- executable, but nonetheless frequently used, files that you would
- like to have accessible from any sub-directory.
-
- All of these would presumably reside permanently in your
- C:\anyname1 directory so that they transfer automatically to D:
- at system startup. The one thing you must not forget is that
- your virtual disk D: actually resides in RAM and not on a real
- disk drive. I suggest you do not store anything in your virtual
- drive that is not stored in a file on your hard disk or on a
- diskette, because whenever you turn your PC off or whenever the
- power fails, everything in your virtual disk is cleared.
-
- Summary
-
- That's it. My experience shows that a hard disk with large
- internal RAM, set up more or less as recommended here, can be a
- real pleasure to operate. A brief summary of what the various
- files might look like is given below:
-
- The Root Directory
-
- <IBMBIO.COM>
- <IBMDOS.COM>
- COMMAND.COM
- AUTOEXEC.BAT
- Sub-directory Names
- CONFIG.SYS
- VDISK.COM (or equivalent)
-
- CONFIG.SYS File
-
- BREAK=ON
- FILES=16
- BUFFERS=8
- DEVICE=C:\VDISK.SYS 192 128 64
-
- The numercial values in the DEVICE command will vary depending on
- the size you wish your virtual disk to be.
-
- AUTOEXEC.BAT File
-
- DATE
- TIME
- COPY C:\anyname 1\*.* D:
- PROMPT $P$G
- D:SETPATH
-
- The D: shown above presumes that you don't have a second hard
- disk attached to your PC. With two hard disks, the virtual disk
- would be E:.
-
- C:\anyname1 (Directory)
-
- SETPATH.BAT
- Most Frequently used Executable Files
- High Usage Reference/Data Files
-
- SETPATH.BAT File
-
- PATH D:\;C:\any1;C:\any2\;C:any3;...
-
- C:\anyname 2 et al (Directories)
-
- Other Executable Files by Frequency of Use
- Other Data Files Grouped by Related Functions
-
-
- ame 2 et al (Directories)
-
- Other Executable Files by Frequency of Use
- Other Data Files Grouped by