home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / ADJUST.ZIP / MANUAL < prev    next >
Encoding:
Text File  |  1988-02-10  |  31.1 KB  |  432 lines

  1. «LM10»«RM70»«FD60»«PL56»«RHA«FR»Hard disk adjustment tools Page «PN»
  2. «FL»»«RFA«FC»- «PN» -
  3. «FL» »
  4. «FC»Hard Disk Adjustment Utilities
  5. Copyright (C) 1987 Richard. B. Johnson
  6. All rights reserved.
  7. DOCUMENTATION
  8. «FL»
  9. «MDBO»WARNING NOTICE«MDNM»
  10. The use of some of these utilies can result in the un-recoverable loss of all data on your hard disk drives! The "EXPAND" function attempts to FORMAT as many tracks as pos~sible above those normally in use. Some disk drives will seek to track zero if an attempt is made to read, write, or format above some undefined track. This will cause track zero to be formatted with the incorrect track and sector information making access impossible without a complete re-format. In this case, it will be impossible to recover any data from the drive. In any case, the maximum usable track is saved in the parameter table so that a new ROM can be burned. Do NOT use the EXPAND utility or the FORMAT utility on any hard disk that has good data or programs on it unless the data on the drive has been completely backed up to disk or tape. NOTICE: Some tape backup systems do not allow you to restore a disk IMAGE if the size of the disk has been changed! This means that you must do a file-by-file backup in order to recover the data if you increase the amount of data space by adding new tracks to the drive.
  11.  
  12. «MDBO»NOTE«MDNM»:
  13.  
  14. IBM is a registered trademark of International Business Machines, Inc. IBM/XT/PC/AT are registered trademarks of IBM. MS-DOS is a registered trademark of Microsoft Corporation.
  15.  
  16. These utilities are very powerful. Therefore they require the utmost of caution with use. If you are unfamiliar with hard disk installation and the function of the hard disk parameters in the BIOS tables, do not attempt to use the program ADJUST.COM. Rename it to ADJUST.SAV so it can't accidentally be run by an experienced person. None of the other utilities included in this package can cause any harm to your system or data.
  17.  
  18. «MDBO»Introduction«MDNM».
  19.  
  20. The hard disk adjustment tool allows the user to modify the drive parameters contained within the hard disk BIOS ROM provided by various hard disk controller manufacturers. The system can be tested with the new parameters in place and an output file written that contains the modified code neces~sary to program a new BIOS ROM for the controller.
  21.  
  22. The disk parameters are stored within the ROM in four tables corresponding to four disk drive "types". These disk drive types are indexed by the shorting pins and jumpers on the hard disk controller card. In many cases the types available in these four tables do not cover all the possibilities for optimum use of hard disk drives that may be available. For instance, a 306 cylinder drive may, in fact, have over 306 usable cylinders. A common 612 cylinder drive has 650 usable cylinders which means that the data storage space of the drive can be increased by over 6 percent just by modifying the BIOS ROM to "tell" DOS about all the extra cylinders available. Even if there are no more usable cylinders above the maximum listed in the tables, setting the table values to one cylinder higher than the maximum usable, will free up the spare cylinder that is thrown away by DOS. DOS throws away the last cylinder because  in version one DOS expected the last cylinder to be used for a "bad sector table". DOS versions after 2.0 write any bad sector information to the FAT and therefore never use this cylinder at all. If you have a drive with six heads, freeing up the last cylinder will provide 52,224 bytes more of disk space!
  23.  
  24. The adjustment tool allows the modification of any of the disk drive parameters, the system can then be run with the new parameters in place so the user can optimize things like the step rate and error-correcting bits in addition to the number of cylinders. When the optimum parameters are found, the user can write the BIOS with the new embedded parameters to a file. The contents of this file can be "burned" into a ROM to make the changes permanent.
  25.  
  26. The following procedures are supported:
  27.  
  28. «MDBO»«MDBO»o«MDNM»    Review the four sets of operating parameters for the four drive types supported by the hard disk BIOS.
  29.  
  30. «MDBO»o«MDNM»    Change any/all of the disk parameters for any of the drive types.
  31.  
  32. «MDBO»o«MDNM»    Try out the drive with the new BIOS parameters. Any DOS functions and any utilities may be run with the new BIOS parameters in place.
  33.  
  34. «MDBO»o«MDNM»    Write the contents of the BIOS ROM and the new parameters to a file so that a new BIOS ROM can be programmed.
  35.  
  36. «MDBO»«MDBO»o«MDNM»    Checksum the new BIOS ROM file so it will be recognized by the operating system upon boot up.
  37.  
  38. «MDBO»«MDBO»o«MDNM»    Format (initialize) a drive using parameters selected by the user.
  39.  
  40. «MDBO»«MDBO»o«MDNM»    Attempt to format more cylinders than normally provided. Expand the size of the drive to the maximum possible. This will occur automatically with minimum operator intervention.
  41.  
  42. «MDBO»«MDBO»o«MDNM»    Completely check out the drive with the new parameters.
  43.  
  44. «MDBO»«MDBO»o«MDNM»    Set the heads of all drives to the innermost track for protection during handling or shipping.
  45.  
  46. «MDBO»«MDBO»o«MDNM»    Write protect all hard disks in the system and, optionally, write enable them.
  47.  
  48. It is assumed that the user of these utilities knows quite a lot about hard disk drives and that he is either installing a new one in a customer's computer or he is trying to im~prove his own system. The utilities presented here are very POWERFUL, but also very DANGEROUS. NEVER run ADJUST.COM if you do not intend to erase all the data on ALL hard disks on your system! One simple mistake can cause ALL the data and programs on drive C to be destroyed when you were intending to FORMAT a new drive D! It is advised that you make a copy of your distribution disk onto a bootable floppy disk and run the program from the floppy disk with any "good" hard disks disconnected. Do not attempt to boot from a hard disk and then disconnect it. You have one chance in ten of des~troying track zero when you disconnect the drive!
  49.  
  50.     The following utilities are provided:
  51.  
  52.     ADJUST     COM     4865    3-22-87     12:25a
  53. This program is the "main menu" which creates an environment in which the user can change the disk parameters at will. As the parameters are modified, the user can test the various drive functions. When the best parameters are selected the contents of the Hard disk BIOS ROM are written to a file with the new disk parameters contained in that file. The user can then program a PROM with the file contents and in~stall it in his disk controller in place of the default ROM. The size of the ROM file is automatically determined by the program. You may find that the file is somewhat smaller than the size of the ROM in the hard disk controller. This is perfectly correct. Most controllers use an 8k PROM but have 1024, 2048, 4096 or 8192 bytes of code in them. All Western Digital, Xebec, and Omti controllers (to date) have BIOS ROMs that are compatible with this program. As a matter of fact, if the controller has a removable PROM, this program can correctly copy and modify it. This is because the char~acteristics of the ROM are required to be available through interrupts and calls so that the ROM will be compatible with IBM protocols.
  54.  
  55.     The commands supported within the ADJUST shell are:
  56.  
  57. «MDBO»«MDBO»o«MDNM»    Change:    This command allows you to modify any of the parameters listed in the four tables corresponding to the four drive types. The default parameters are not modified.
  58.  
  59. «MDBO»«MDBO»o«MDNM»    Checksum: This command invokes the program CHECKSUM.COM which modifies the file HDISK.ROM so it check~sums in the proper manner to be recognized by the IBM BIOS during the power-on-self-test (POST) routines.
  60.  
  61. «MDBO»«MDBO»o«MDNM»    Exit: This command ends the program and returns to DOS
  62.  
  63. «MDBO»«MDBO»o«MDNM»    Expand:    This command attempts to increase the number of usable cylinders on a drive by formatting cylinders num~bered greater than those listed in the default tables. The tables are modified as each good new cylinder is added. After the formatting operation, the cylinder must be read fifty times without error for it to be considered good. The previous cylinder is also checked to make certain that the new cylinder had not just been written over the previous one.
  64.  
  65. «MDBO»«MDBO»o«MDNM»    Format: This command formats the entire drive using the new parameters. This is important to do since the expand routines do not bother with selecting an optimum interleave factor. The interleave factor can be changed to whatever the user desires to optimize the data transfer time of the drive.
  66.  
  67. «MDBO»«MDBO»o«MDNM»    New: This command restores all the drive parameters to the default conditions at bootup.
  68.  
  69. «MDBO»«MDBO»o«MDNM»    Ship: This command executes SHIP.COM which puts the heads of all the drives at the innermost cylinder for a safe shutdown.
  70.  
  71. «MDBO»«MDBO»o«MDNM»    Speed: This command executes HDSPEED.COM which checks the track-to-track access times of the drives. Many different combinations are provided including reading actual data from randomly selected tracks.
  72.  
  73. «MDBO»«MDBO»o«MDNM»    Test: This command executes HDTEST.COM which thoroughly tests the selected drive. Every sector on every track are read and any errors are reported.
  74.  
  75. «MDBO»«MDBO»o«MDNM»    Try: This command executes COMMAND.COM which lets the user operate in the DOS environment with the new drive parameters. In this manner, it is possible to "try out" the new drive with other utilities.
  76.  
  77. «MDBO»«MDBO»o«MDNM»    Write: This command writes the contents of the disk controller BIOS ROM to a file (HDISK.ROM) with the new drive parameters installed. This allows the user to "burn" a new ROM to be installed in the controller with the new para~meters being permanent.
  78.  
  79. «MDBO»The programs supplied in this package:«MDNM»
  80.  
  81.     AUTOTEST COM      798    5-1-87     10:03p
  82. This program can be loaded into memory during bootup by placing the command: AUTOTEST in your AUTOEXEC.BAT file. It uses very little of the computer's memory since it has been designed to use the absolute minimum amount of code. This program causes the hard disk drives to make random seeks during periods of hard disk in-activity. Should the seek fail, an error message is printed at the upper left-hand corner of the screen. Any programs in operation at the time continue without interruption. The main purpose of this pro~gram is not to report errors. It is to make it unlikely that the disk heads remain over the directory tracks should the computer power fail or a crash occur! In this manner, the heads are moved to different places on the drives at about ten-second intervals. Normally, any disk crash is most like~ly to destroy the directory and FAT tracks, making it impos~sible to recover ANY data (or programs) from the drives since DOS leaves the heads over these tracks after every file access. With this utility, the heads could be anywhere should the disk crash. The chances of the directory tracks being destroyed by such a crash is reduced from almost a sure thing to 1 in 360 for a 360 cylinder drive. There's even a lesser chance of damage with a larger drive. In the event of a crash, only a file or two will be unusable rather than everything. This utility starts to make random seeks only after the drive has been idle for about 30 or more seconds. This is so that normal disk activity is not slowed down at all.
  83.  
  84. Note:
  85. If you are doing intensive work close to your computer, you might find the noise from the drives making random seeks an~noying at first. After a few hours you probably won't find it bothersome and after a few days, you will probably not even notice the noise anymore.
  86.  
  87.  
  88.     CHECKSUM COM      640    1-26-87     10:03p
  89. This program is called by ADJUST.COM to modify the contents of the BIOS ROM file (HDISK.ROM) so that it checksums cor~rectly. This program can also be run interactively by typ~ing:
  90.     CHECKSUM <filename> [Return]
  91. In this case, any file can be modified. The LAST byte in the file is changed so that the sum of all the bytes in the file (modulo 255) results in zero. This is required so that the power-on-self-test (POST) routines in the computer will find the ROM and connect it into the system before boot-up.
  92. [WARNING! This program changes the last byte in the file. If you "CHECKSUM" a program you will probably destroy it!]
  93.  
  94.     DITHER     COM      252    3-09-87     12:18a
  95. This program will cause a hard disk to make random seeks to all tracks until aborted by the operator. This will exercise the drive and help remove any dust particles that may have gotten on the drive platters during shipping. It is recom~mended that this routine be run overnight on old surplus drives before a final low level format is done. Most all hard disk drives contain an internal air filter through which the internal air is re-circulated over and over again. The air within the drive will thus get cleaner and cleaner. If any particles on the platters are dislodged, they will get trapped in the air filter and do no harm. If they are allowed to remain on the platters, the result may be quite a few bad sectors.
  96. [The drive is NEVER written to so the program is safe to use with a drive that contains good data.]
  97.  
  98.     You run it by typing:
  99.  
  100.     DITHER 0 [Return]    {For drive C}
  101.     DITHER 1 [Return]    {For drive D}
  102.  
  103.     HDSPEED     COM      941    3-20-87     11:36a
  104. This program checks the track-to-track access times of the drive. It produces a complete listing of various track access times. Tested are:
  105.     Track-to-track seeks on the outer cylinders.
  106.     Track-to-track seeks on the middle cylinders.
  107.     Track-to-track seeks on the inner cylinders.
  108.     Random seeks over the entire data area.
  109.     Track-to-track reads on the outer cylinders.
  110.     Track-to-track reads on the middle cylinders.
  111.     Track-to-track reads on the inner cylinders.
  112.     Random reads over the entire data area.
  113. [The drive is NEVER written to so the program is safe to use with a drive that contains good data.]
  114.  
  115.     HDTEST     COM     2296    3-19-87      8:55p
  116. This program completely checks the selected hard disk drive. It starts by making overlapping seeks between the highest and lowest tracks. After the seeks are complete it reads every head/sector/track on the drive (backwards, which is the hardest way). Any errors are reported on the screen. If you run this program interactively, you can type anything in the command line after the program name and then ONLY the errors will apear on the screen. If you toggle control P (The printer toggle), the errors will be listed on the prin~ter. Along with the errors is the time and date at which they occurred. This is helpful if you are running the pro~gram from a batch file and want to test the drive over night. The track number are reported in HEX in order to speed up the testing as much as possible. Conversion of binary to decimal takes about twenty times longer than conversion to hexidecimal. Since every track, head, and sector are reported, this added overhead would slow the testing excessively.
  117. [The drive is NEVER written to so the program is safe to use with a drive that contains good data.]
  118.  
  119.     SHIP     COM      351    3-22-87     12:17a
  120. This program sets the heads on all drives to their innermost tracks. Use of this program before the computer is shut down or before the drives are removed is recommended to prevent the heads for landing (actually crashing) on the directory tracks which is where the heads will most likely by when the computer is being shut down.
  121. [The drive is NEVER written to so the program is safe to use with a drive that contains good data.]
  122.  
  123.     SPACE     COM      541    1-26-87     10:05p
  124. This program tells the user the amount of data space available on any disk. You use it like this:
  125.  
  126. C>space d:
  127.  
  128. Drive D: has 33,435,648 bytes with 1,327,104 free and 32,108,544 used.
  129.  
  130. Unlike CHKDSK which takes a lot of time because it checks the FAT against every directory entry, this program ONLY gets information about the space available so it works much faster. You probably have noticed that the " Bytes free" information after a "DIR" under MS-DOS is not very accurate.
  131. [The drive is NEVER written to so the program is safe to use with a drive that contains good data.]
  132.  
  133.     TRACE     COM     1202    3-26-87     10:10p
  134. This program allows a programmer to determine the exact nature of every call being made to the hard disk BIOS routines. Displayed on the screen is information about the sectors being written or read, the amount of sectors to be transferred, the DMA address, the heads being used as well as the track, and whether or not the call was successful. This program is very useful for programmers who are creating device drivers. It allows them to check that their block~ing/deblocking routines are working correctly and if the calls being handled by the BIOS are efficient. It's much more efficient to read 17 sectors starting at sector one than it is to read each sector one at a time. Any errors returned are translated to text. You must re-boot to "get out" of the trace routine.
  135. [The drive is NEVER written to so the program is safe to use with a drive that contains good data.]
  136.  
  137.     WPROT     COM      314    3-22-87     11:34p
  138. This program WRITE protects the hard disk drives in your machine. The program functions as a toggle so the first time it is run you will see a sign-on message and a notice that the drives are write PROTECTED. The next time you run this program it will write ENABLE the drives. The next time it will write PROTECT then again, etc. The program can be run forever without using any additional memory.
  139. [The drive is NEVER written to so the program is safe to use with a drive that contains good data.]
  140.  
  141. «MDBO»Running the ADJUSTMENT tool environment:«MDNM»
  142.  
  143. The following is a complete interactive session using ADJUST.COM:
  144. «LM10»«RM80»
  145.           Hard Disk Adjustment Tool  Version 3.0
  146.           Copyright (C) 1987 Richard B. Johnson
  147.  
  148. Number of drives present.   2
  149. Hard disk drive    type.....   1           2      3         4
  150. 1: Number of tracks...... 306 [0132] 480 [01E0] 612 [0264] 306 [0132]
  151. 2: Number of heads.......   6 [0006]   4 [0004]   2 [0002]   4 [0004]
  152. 3: Cyl.    reduced    current.. 306 [0132] 480 [01E0] 612 [0264] 306 [0132]
  153. 4: Cyl.    write precomp.... 128 [0080] 128 [0080] 128 [0080] 128 [0080]
  154. 5: Bits    to error correct.  11 [000B]  11 [000B]  11 [000B]  11 [000B]
  155. 6: Control option byte...   0 [0000]   5 [0005]   5 [0005]   5 [0005]
  156. 7: Time-out for    R/W......  13 [000D]  14 [000E]  16 [0010]  13 [000D]
  157. 8: Time-out for    format... 224 [00E0] 224 [00E0] 208 [00D0] 208 [00D0]
  158. 9: Time-out for    diag.....  37 [0025]  37 [0025]  37 [0025]  37 [0025]
  159.           - Current drive parameters -
  160. Drive    0    Heads = 6   Cylinders =  305  Sectors =  17   Type    =   1
  161. Drive    1    Heads = 4   Cylinders =  305  Sectors =  17   Type    =   4
  162.  
  163. Change, Checksum, Exit, Expand, Format, New, Speed, Test, Try, Write
  164. ADJUST> _
  165. «LM10»«RM70»
  166.     This is the sign-on message showing all of the drive parameters possible to use with the present parameters stored in the hard disk BIOS ROM. This configuration is using the parameters in Table 4 (the right hand column). This fact is shown under the "Current drive parameters" listing which defines the current drives as being "Type" 1 and 4. Notice that only 305 of the possible 306 cylinders are actually available for use.
  167.  
  168. Now let's test the drive:
  169. «RM80»
  170. ADJUST> test
  171. TEST>
  172. Copyright(C) 1986 Richard B. Johnson. All rights reserved.
  173. Saturday March 21, 1987     Time 17:51:03.43 (05:51:03 PM)
  174.  
  175. The hard disk BIOS reports the following configuration:
  176. Number of drives supported: 02
  177.  
  178. Drive 00 configuration:        < The first drive, drive C: >
  179. 306  cylinders
  180. 06   heads
  181. 17   sectors per track
  182. 15384  Kb total space
  183.  
  184. Drive 01 configuration:        < The drive we are working on. >
  185. 306  cylinders
  186. 04   heads
  187. 17   sectors per track
  188. 10404 Kb total space
  189.  
  190. Is this    correct? (Y/N) Y    < Our answer >
  191. Which drive to test (0-9) 1    < Answer "1" >
  192. - testing -
  193. Seeking    305 ^C            < We abort with ^C since we have
  194.                   already tested this drive. >
  195.  
  196. ADJUST> expand             < Back to the main menu, type EXPAND>
  197. EXPAND> Do you really want to do this? Y/N Y
  198. EXPAND> Attempting to write cyl.  306 Verify OK
  199. EXPAND> Attempting to write cyl.  307 Verify OK
  200. EXPAND> Attempting to write cyl.  308 Verify OK
  201. EXPAND> Attempting to write cyl.  309 Verify OK
  202. EXPAND> Attempting to write cyl.  310 Verify OK
  203. EXPAND> Attempting to write cyl.  311 Verify OK
  204. EXPAND> Attempting to write cyl.  312 Verify OK
  205. EXPAND> Attempting to write cyl.  313 Verify OK
  206. EXPAND> Attempting to write cyl.  314 Verify OK
  207. EXPAND> Attempting to write cyl.  315 Verify OK
  208. EXPAND> Attempting to write cyl.  316 Verify OK
  209. EXPAND> Attempting to write cyl.  317 Verify OK
  210. EXPAND> Attempting to write cyl.  318 Verify OK
  211. EXPAND> Attempting to write cyl.  319 Verify OK
  212.     "
  213.     "
  214. EXPAND> Attempting to write cyl.  356 Verify OK
  215. EXPAND> Attempting to write cyl.  357          < Does not verify!>
  216. FORMAT> Want to reformat the entire drive? Y/N Y  < Answer yes >
  217. FORMAT> Interleave factor? (1 - 10) 5    < Enter the IBM default >
  218. FORMAT> Formatting drive    1
  219.  
  220. We return to the main menu when FORMAT is through.
  221.  
  222.           Hard Disk Adjustment Tool  Version 3.0
  223.           Copyright (C) 1987 Richard B. Johnson
  224.  
  225. Number of drives present.   2
  226. Hard disk drive    type.....   1           2      3         4
  227. 1: Number of tracks...... 306 [0132] 480 [01E0] 612 [0264] 356 [0132]
  228. 2: Number of heads.......   6 [0006]   4 [0004]   2 [0002]   4 [0004]
  229. 3: Cyl.    reduced    current.. 306 [0132] 480 [01E0] X12 [0264] 306 [0132]
  230. 4: Cyl.    write precomp.... 128 [0080] 128 [0080] 128 [0080] 128 [0080]
  231. 5: Bits    to error correct.  11 [000B]  11 [000B]  11 [000B]  11 [000B]
  232. 6: Control option byte...   0 [0000]   5 [0005]   5 [0005]   5 [0005]
  233. 7: Time-out for    R/W......  13 [000D]  14 [000E]  16 [0010]  13 [000D]
  234. 8: Time-out for    format... 224 [00E0] 224 [00E0] 208 [00D0] 208 [00D0]
  235. 9: Time-out for    diag.....  37 [0025]  37 [0025]  37 [0025]  37 [0025]
  236.           - Current drive parameters -
  237. Drive    0    Heads = 6   Cylinders =  305  Sectors =  17   Type    =   1
  238. Drive    1    Heads = 4   Cylinders =  305  Sectors =  17   Type    =   4
  239.  
  240. Change, Checksum, Exit, Expand, Format, New, Speed, Test, Try, Write
  241. ADJUST> _
  242.  
  243. «LM10»«RM70»
  244.     Notice that the number of usable tracks has automatically been set under drive type 4 to 356.  You will probably want to use CHANGE to set the cylinders for reduced write current and write pre-compensation to the same number also, at least until you find out if you need any precom~pensation or reduced write current. Most drives do not use reduced write current so that parameter is set to be the same as the highest track number. Other drives usually use write pre-compensation starting at the middle tracks (one half of the usable tracks). Miniscribe (R) uses write pre-compensation for the entire drive with most of their drives. In this case you set that track to zero.
  245.  
  246. ADJUST> write        < We'll now write a new ROM >
  247. WRITE> Writing HDISK.ROM
  248.  
  249. ADJUST> checksum    < We must now checksum the file >
  250. CHECKSUM> HDISK.ROM
  251. The file has been modified.
  252.   [Return]        < Hit return to get back to the main menu.>
  253.  
  254.     Now we are going to check the access time of the drive to determine if the controller option byte should be modified.
  255. «RM80»
  256. ADJUST> speed
  257. SPEED>
  258.  
  259. Hard disk access time diagnostic utility.  Version 3.0
  260. Copyright (C) 1987 Richard B. Johnson
  261.  
  262. Which drive? (0    - 1) 1
  263. Code execution time of .32ms is    applied    to access times.
  264. Random seeks 89.08ms
  265. -- Track to track --
  266. Outside    cylinders 16.09ms
  267. Center    cylinders 15.98ms
  268. Inside    cylinders 15.98ms
  269. Random reads 100.72ms
  270. -- Track to track --
  271. Outside    cylinders 33.26ms
  272. Center    cylinders 33.15ms
  273. Inside    cylinders 33.21ms
  274. «LM10»«RM70»
  275.     As you can see, the access times for this inexpen~sive drive are quite good. In this case, we'll not experi~ment with the option byte. When we return to the main menu, we type exit to return to DOS
  276. «RM80»
  277. ADJUST> exit
  278.  
  279. C>dir        < If we check the directory, we find a new file!>
  280.  
  281.  
  282.  Volume    in drive C is MAIN!!!!
  283.  Directory of  C:\WORK
  284.  
  285. .         <DIR>    1-26-87     10:07p
  286. ..         <DIR>    1-26-87     10:07p
  287. HDSPEED     COM      941    3-20-87     11:36a
  288. HDISK     ROM     8192    3-21-87      5:39p < This should be "burned" 
  289. ADJUST     COM     4679    3-20-87     10:19a      into a new
  290. HDTEST     COM     2296    3-19-87      8:55p      ROM to replace the one on
  291. DITHER     COM      252    3-09-87     12:18a      the controller board.>
  292. MANUAL         9076    3-20-87      3:52p
  293.         6 File(s)   7831552 bytes free
  294. «LM10»«RM70»
  295.     In this case, we have taken a drive that was supposed to be a 10 megabyte drive and have expanded it to over 12 megabytes!
  296.  
  297. «MDBO»Interleave:«MDNM»
  298. Sector interleave is the mechanism used to improve the throughput of most disk drives. Ideally, one would like to be able to read or write a whole track in one revolution of the disk. In the real world applications of disk drives, there is seldom any requirement to read the entire contents of a track at one time. Usually, the operating system re~quests a read or write to one or more logical records. The system effectively says "I want to read 5 records starting at the 300th record". The disk drive BIOS converts these record requests to physical tracks, sectors, and heads. It's very likely that the first record requested may be on the last physical sector on a track, the next record may be the first sector on the other side of the disk platter (another head), but at the very same track (the same cylinder). Furthermore, the operating system may process the data from these sectors before it asks for any more. The data proces~sing takes a fair amount of time. If we were to use one-to-one sector interleave where the sectors are numbered sequen~tially one right after another, it is very likely that the next sector requested would have already passed the read head by the time the operating system "asked" for it. This would mean that the disk platters would have to make a new revolution to read the next physical sector. If you want to read five sectors, you'd have to wait for the disk to go around five times. This is not very efficient. If we could arrange for the next physical sector to be available just at the time the operating system asked for it, one could not have to wait very long to read it. This is what sector interleaving does. The IBM default for sector interleaving skips five physical sectors (5:1 interleave) for each incremental sector on the disk. It is very possible that this may not be the optimum interleave for your drive, BIOS, and software.
  299.  
  300. The way to determine the optimum sector interleave takes a bit of time, but can really pay for itself in time saved later on. What you do is obtain a copy of a timing program like Peter Norton's "Stopwatch" TM.COM . This program will record the amount of time necessary copy a group of files between directories on your hard disk. First you create a batch file that's something like this:
  301.  
  302. TM /START/N
  303. COPY *.* \JUNK
  304. TM /STOP/N
  305.  
  306. Save this BATCH file on a floppy. Then initialize the hard disk using a 1:1 interleave factor. You must then FDISK it and FORMAT it. The format operation takes a long time, but it will be worth it. After the drive is formatted, copy the files you saved on drive A: to the fixed disk. Copy enough files to that it takes at least one minute to copy them all. Then make \JUNK directory on the hard disk and copy the files to that directory using your BATCH procedure.
  307.  
  308. The procedure looks like this:
  309.  
  310. C>XXX            < This is the name of my BATCH file>
  311. C>TM /START/N        < This is Norton's Stop watch >
  312. C>COPY *.* \JUNK
  313. ADJUST.COM
  314. ADJUST.ASM
  315. CHECKSUM.COM
  316. DITHER.COM
  317. HDBIOS.ROM
  318. HDISK.ROM
  319. HDSPEED.COM
  320. HDSPEED.ASM
  321. HDTEST.COM
  322. HDTEST.ASM
  323. MANUAL
  324. SHIP.COM
  325. SHIP.ASM
  326. WPROT.ASM
  327. WPROT.COM
  328. INTER
  329. XXX.BAT
  330.        17 File(s) copied
  331.  
  332. C>TM STOP/N
  333.                            4:18 seconds < This is the time.>
  334. In this case the file transfer took four minutes and eighteen seconds.
  335.  
  336. Now we'll initialize the drive using an interleave of 2:1. We then FDISK it and FORMAT it. Using the same procedure as before, we use our batch procedure to time the copying of files.
  337.  
  338. C>XXX            < This is the name of my BATCH file>
  339. C>TM /START/N        < This is Norton's Stop watch>
  340. C>COPY *.* \JUNK
  341. ADJUST.COM
  342. ADJUST.ASM
  343. CHECKSUM.COM
  344. DITHER.COM
  345. HDBIOS.ROM
  346. HDISK.ROM
  347. HDSPEED.COM
  348. HDSPEED.ASM
  349. HDTEST.COM
  350. HDTEST.ASM
  351. MANUAL
  352. SHIP.COM
  353. SHIP.ASM
  354. WPROT.ASM
  355. WPROT.COM
  356. INTER
  357. XXX.BAT
  358.        17 File(s) copied
  359.  
  360. C>TM STOP/N
  361.                            3:58 seconds < This is the time.>
  362. In this case the file transfer took three minutes and fifty-eight seconds which is still not very much better. Undaunt~ed, we continue, this time setting the interleave factor to 3:1. After FDISK and FORMAT, the results are like this:
  363.  
  364. C>XXX            < This is the name of my BATCH file>
  365. C>TM /START/N        < This is Norton's Stop watch>
  366. C>COPY *.* \JUNK
  367. ADJUST.COM
  368. ADJUST.ASM
  369. CHECKSUM.COM
  370. DITHER.COM
  371. HDBIOS.ROM
  372. HDISK.ROM
  373. HDSPEED.COM
  374. HDSPEED.ASM
  375. HDTEST.COM
  376. HDTEST.ASM
  377. MANUAL
  378. SHIP.COM
  379. SHIP.ASM
  380. WPROT.ASM
  381. WPROT.COM
  382. INTER
  383. XXX.BAT
  384.        17 File(s) copied
  385.  
  386. C>TM STOP/N
  387.                            3:44 seconds < This is the time.>
  388. In this case the file transfer took three minutes and fourty-four seconds which is still not very much better. Undaunted, we continue, this time setting the interleave factor to 4:1. After FDISK and FORMAT, the results are like this:
  389.  
  390. C>XXX            < This is the name of my BATCH file>
  391. C>TM /START/N        < This is Norton's Stop watch>
  392. C>COPY *.* \JUNK
  393. ADJUST.COM
  394. ADJUST.ASM
  395. CHECKSUM.COM
  396. DITHER.COM
  397. HDBIOS.ROM
  398. HDISK.ROM
  399. HDSPEED.COM
  400. HDSPEED.ASM
  401. HDTEST.COM
  402. HDTEST.ASM
  403. MANUAL
  404. SHIP.COM
  405. SHIP.ASM
  406. WPROT.ASM
  407. WPROT.COM
  408. INTER
  409. XXX.BAT
  410.        17 File(s) copied
  411.  
  412. C>TM STOP/N
  413.                            34 seconds < This is the time>
  414. This is NOT a typo!! It only took thirty-four seconds to transfer all those files once the optimum interleave factor was found! Do NOT increase the interleave factor beyond this point, it will only increase the disk access time again. Generally, if you start with too small an interleave factor, you will find a point where the transfer rate will abruptly increase. This is a lot better than starting with too great an interleave factor and then finding that at some point it abruptly got very poor. You would have to re-initialize the drive again to the previously determined interleave factor.
  415. - END -
  416. «PG»
  417.  
  418. «FC»WARRANTY
  419. «FL»
  420. THIS SOFTWARE IS LICENSED (NOT SOLD). IT IS LICENSED TO SUBLICENSEES, INCLUDING END-USERS, WITHOUT EITHER EXPRESS OR IMPLIED WARRANTIES OF ANY KIND ON AN "AS-IS" BASIS.
  421.  
  422. It is possible to completely destroy data and programs using the Winchester Drive low-level FORMAT and EXPAND routines. This data can «MDBO»never be recovered«MDNM» since it will be completely overwritten.
  423.  
  424. If you discover any "bugs" or encounter any problems with this software that you think might be caused by problems within the programs supplied, please contact the designer.
  425.  
  426.         Richard B. Johnson
  427.         2006 Broughton Drive
  428.         Beverly, Massachusetts
  429.         01915-1802
  430.  
  431. If you get a "Program file is corrupt!" notice when you attempt to run any of these utilities it means that the program contents has changed since the distribution copy was made. This is usually caused by "hackers" changing things like serial numbers and copyright notices. It is possible to patch such a program and make it work, but it is not advised since damage might occur to your data on your disk drives. The purpose of the program verification routine is to make certain that you have a correct copy of the programs. These programs are not copy-protected. Unlike copy-protection schemes, the program verification routines are designed to protect you, not the vendor.
  432. «PG»