home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / HD_TIPS.ZIP / HD-TIPS3.TXT < prev   
Encoding:
Text File  |  1985-04-15  |  6.8 KB  |  193 lines

  1.             Taking Advantage of Your PC's Hard Disk:
  2.             Part III, CONFIG.SYS and the Virtual Disk
  3.  
  4.                           Barry Gordon
  5.                 New York Personal Computer, Inc.
  6.  
  7. There   are  some  simple  things  you  can  do  to  enhance  the 
  8. performance of your hard drive.  Creating a CONFIG.SYS file and a 
  9. virtual  disk  can give you added power and speed in  working  on 
  10. your PC by reconfiguring your operating system and Random  Access 
  11. Memory (RAM).
  12.  
  13. The  CONFIG.SYS File  
  14.  
  15. Another  file  that  is  useful  in the  root  directory  is  the 
  16. CONFIG.SYS file.   It's a collection of miscellany to modify  the 
  17. way  the PC system works.   You may want to try a CONFIG.SYS file 
  18. consisting of three lines:
  19.  
  20. BREAK=ON
  21. FILES=16
  22. BUFFERS=8
  23.  
  24. The BREAK command allows you to interrupt the system more  easily 
  25. should you wish to terminate the execution of a program.
  26.  
  27. The  FILES command allows DOS to juggle more than the default  of 
  28. eight  active files simultaneously.   This is important,  because 
  29. DOS  loads five files of its own,  leaving you with  only  three.  
  30. Sixteen should give you enough to handle most any situation.
  31.  
  32. The   BUFFERS  command  can  speed  up  certain  kinds  of   disk 
  33. operations.  You  may want to try as many as 16 or even 32 for  a 
  34. 20MB hard disk.
  35.  
  36. The Virtual Disk
  37.  
  38. A large internal RAM not only allows manipulation of larger files 
  39. when  necessary,  but  gives  the  user access to  the  speed  of 
  40. internal  memory  for processing data.   Just as  the  hard  disk 
  41. increases  computing speed over the diskette drive,  so  internal 
  42. memory,  if  utilized,  increases  computing speed over the  hard 
  43. drive.  To  tap the speed and power of the internal  memory,  you 
  44. might consider setting up a virtual disk.  However, to attempt to 
  45. set up a virtual disk,  you should have more than 256KB of memory 
  46. in your PC, preferably, 512KB or larger.
  47.  
  48. The  virtual  disk is a portion of RAM set aside  to  simulate  a 
  49. disk.   The  virtual disk is referred to by the drive designation 
  50. letter following that of the system's last hard disk.  Assuming a 
  51. single hard disk C:,  our virtual disk becomes D:.   The  virtual 
  52. disk is created at startup by a program such as the VDISK command 
  53. that  comes  with DOS 3.0.,  working together with a command  you 
  54. save in your CONFIG.SYS file.
  55.  
  56. With 512KB of RAM, a reasonable virtual disk size to try is 64KB.  
  57. If you have a 640KB system, you may want to set up a virtual disk 
  58. of 192KB.  I suggest leaving about 448KB of available, active RAM 
  59. to have ample memory for DOS to do its work.
  60.  
  61. A  virtual  disk of even 64KB can do wonders.   It  can  also  be 
  62. effectively  larger  by specifying the smallest  possible  sector 
  63. size -- e.g., 128 bytes -- for the greatest possible data packing 
  64. density.   Assuming VDISK.COM and 640KB of RAM,  the virtual disk 
  65. specification in your CONFIG.SYS might look like this:
  66.  
  67.            DEVICE=C:\VDISK
  68.  
  69. The entire CONFIG.SYS file would look like this:
  70.  
  71. BREAK=ON
  72. FILES=16
  73. BUFFERS=8
  74. DEVICE=C:\VDISK.SYS 192 128 64
  75.  
  76. The SETPATH.BAT and AUTOEXEC.BAT Files Revised
  77.  
  78. What  do you do with this virtual disk D:  now that it is set up?  
  79. First,  you  can  begin to take full advantage  of  your  virtual 
  80. disk's  speed  by adding a statement to AUTOEXEC.BAT to  transfer 
  81. the sub-directory of your most-used files to the virtual disk D:.
  82.  
  83. Your AUTOEXEC.BAT file now contains the following:
  84.  
  85. DATE
  86. TIME
  87. PROMPT $P$G
  88. COPY \anyname1\*.* D:
  89. D:SETPATH
  90.  
  91. Note  that  the SETPATH command must remain the last one  in  the 
  92. file.   Next,  modify the PATH command (in SETPATH.BAT) to   PATH 
  93. D:\;C:\anyname2;C:\any3;C:\any4   replacing the  c:\anyname1  you 
  94. formerly  had  in  SETPATH.BAT with the root  directory  of  your 
  95. virtual drive D:\.  (Again, note that you specify complete paths, 
  96. including  all  drive designations,  to keep the command  totally 
  97. independent of what the default drive might happen to be.)
  98.  
  99. Finally,  move the SETPATH.BAT file out of the root directory and 
  100. into the \anyname1 directory for automatic transfer to D:.   This 
  101. allows  you  to execute the SETPATH command from  any  directory, 
  102. entering it as simply SETPATH or D:SETPATH if necessary.
  103.  
  104. The root directory on your hard drive now contains the  following 
  105. files:
  106.  
  107. <IBMBIO.COM>
  108. <IBMDOS.COM>
  109. COMMAND.COM
  110. AUTOEXEC.BAT
  111. Sub-directory Names
  112. CONFIG.SYS
  113. VDISK.COM (or equivalent)
  114.  
  115. Tips Concerning The Virtual Drive
  116.  
  117. Now  that your PC has the virtual disk D:,  you will want to keep 
  118. only your most-used files in your C:\anyname1 directory.  I would 
  119. suggest you put in some DOS external command files, plus regulars 
  120. like BASIC.COM, or perhaps a few of your personal favorites, such 
  121. as PE.EXE or your word processing program.  Depending on the size 
  122. of  your  virtual  disk,  you might even wish to  add  some  non-
  123. executable, but nonetheless frequently used, files that you would 
  124. like to have accessible from any sub-directory.
  125.  
  126. All  of  these  would  presumably  reside  permanently  in   your 
  127. C:\anyname1  directory so that they transfer automatically to  D:  
  128. at  system  startup.   The one thing you must not forget is  that 
  129. your  virtual disk D:  actually resides in RAM and not on a  real 
  130. disk drive.   I suggest you do not store anything in your virtual 
  131. drive  that  is not stored in a file on your hard disk  or  on  a 
  132. diskette,  because  whenever you turn your PC off or whenever the 
  133. power fails, everything in your virtual disk is cleared.
  134.  
  135. Summary
  136.  
  137. That's  it.   My  experience shows that a hard  disk  with  large 
  138. internal RAM,  set up more or less as recommended here,  can be a 
  139. real  pleasure to operate.   A brief summary of what the  various 
  140. files might look like is given below:
  141.  
  142. The Root Directory
  143.  
  144.      <IBMBIO.COM>
  145.      <IBMDOS.COM>
  146.      COMMAND.COM
  147.      AUTOEXEC.BAT
  148.      Sub-directory Names
  149.      CONFIG.SYS
  150.      VDISK.COM    (or equivalent)
  151.  
  152. CONFIG.SYS File
  153.  
  154.      BREAK=ON
  155.      FILES=16
  156.      BUFFERS=8
  157.      DEVICE=C:\VDISK.SYS 192 128 64
  158.  
  159. The numercial values in the DEVICE command will vary depending on 
  160. the size you wish your virtual disk to be.
  161.  
  162. AUTOEXEC.BAT File
  163.  
  164.      DATE
  165.      TIME
  166.      COPY  C:\anyname 1\*.* D:
  167.      PROMPT $P$G
  168.      D:SETPATH
  169.  
  170. The  D:  shown  above presumes that you don't have a second  hard 
  171. disk attached to your PC.   With two hard disks, the virtual disk 
  172. would be E:.
  173.  
  174. C:\anyname1 (Directory)
  175.  
  176. SETPATH.BAT
  177. Most Frequently used Executable Files
  178. High Usage Reference/Data Files
  179.  
  180. SETPATH.BAT File
  181.  
  182. PATH D:\;C:\any1;C:\any2\;C:any3;...
  183.  
  184. C:\anyname 2   et al  (Directories)
  185.  
  186. Other Executable Files by Frequency of Use
  187. Other Data Files Grouped by Related Functions
  188.  
  189.  
  190. ame 2   et al  (Directories)
  191.  
  192. Other Executable Files by Frequency of Use
  193. Other Data Files Grouped by