home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MAGAZINE / MISC / COMPV3N2.ZIP / HDTEST.EXE / HDTEST.DOC next >
Encoding:
Text File  |  1988-11-02  |  42.0 KB  |  1,367 lines

  1.  
  2.  
  3.                       H D T E S T
  4.                       Version 1.21
  5.  
  6.             R E F E R E N C E    M A N U A L
  7.  
  8.                       Jim Bracking
  9.                    967 Pinewood Drive
  10.                    San Jose, CA 95129
  11.  
  12.                Copyright (c) Jim Bracking
  13.                   All Rights Reserved
  14.  
  15. HDtest software copyright (C) 1988 Jim Bracking, All rights
  16. reserved.
  17.  
  18. This document copyright (C) 1988 Jim Bracking, All rights
  19. reserved.
  20.  
  21.  
  22.                  IMPORTANT WARNING
  23.  
  24. HDtest is a powerful tool that provides the user with a
  25. great deal of flexibility in testing hard disks on a wide
  26. variety of computer systems. In order to accomplish this,
  27. HDtest is dependent on some environment variables within the
  28. computer system.
  29.  
  30. HDtest should always be run in a stand-alone environment. That
  31. means all TSR's and disk cache programs should be removed
  32. first.
  33.  
  34. The safest way to accomplish this is to format a DOS system
  35. floppy, copy HDtest.exe to that floppy, re-boot the system
  36. and run HDtest from the floppy.
  37.  
  38. HDtest will work with RLL and ST506 drives ONLY. It has not
  39. been tested with ESDI drives on the XT or AT and WILL NOT
  40. work with PS/2 ESDI drives.
  41.  
  42. The BIOS must be 100 percent compatible with IBM's BIOS.
  43.  
  44. HDtest is dependent on the drive parameters to be correct.
  45. If the drive parameters displayed at the bottom of the
  46. screen are NOT correct the program will not function
  47. correctly. You need to correct the drive parameters before
  48. proceeding.
  49.  
  50. Since introduction of the original XT there have been many
  51. new hard disk controllers. For that reason HDtest will
  52. support the XT only through the BIOS. This means that you
  53. will not be able to modify the drive parameters on the
  54. XT.
  55.  
  56. The diagnostic cylinder is defined as the last cylinder on
  57. the drive for the XT and AT and the next to last cylinder
  58. for the PS/2. This cylinder is used to perform all writes.
  59. If the drive parameters are incorrect you could destroy live
  60. data on the drive.
  61.  
  62. You should read the entire documentation before executing HDtest.
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. I. LICENSE
  72.  
  73. No version of HDtest, including version 1.21, is
  74. public domain software, or free software. HDtest
  75. is a work copyright (C) 1988 by Jim Bracking. Non-registered
  76. users are granted a limited license to use HDtest on a trial
  77. basis for the purpose of determining whether HDtest is
  78. suitable for their needs.  Use of HDtest, except for this
  79. limited purpose, requires registration.  Use of non-
  80. registered copies of HDtest by any person, business,
  81. corporation, governmental agency or other institution
  82. is strictly forbidden.
  83.  
  84. Registration permits a user a license to use HDtest only
  85. on a single computer. A registered user may use the program
  86. on a different computer, but may not use the program on more
  87. than one computer at the same time.
  88.  
  89. No user may modify HDtest in any way, including but not
  90. limited to reverse compile, disassembling or otherwise
  91. reverse engineering the program.
  92.  
  93. All users are granted a limited license to copy HDtest only
  94. for the trial use of others subject to the above
  95. limitations, and the following conditions:
  96.  
  97. 1.  HDtest must be copied in unmodified form, complete
  98.     with the file containing this license information.
  99.  
  100. 2.  The full HDtest documentation must be included with
  101.     the program. No fee, charge or other compensation
  102.     may be collected for distribution by any licensee.
  103.  
  104. 3.  HDtest may not be distributed in conjunction with
  105.     any other product without prior written permission.
  106.  
  107. Operators of electronic bulletin board systems (Sysops) may
  108. post HDtest for downloading by their users only as long as
  109. the above conditions are met.
  110.  
  111. Distributors of public domain or user supported software may
  112. distribute copies of HDtest subject to the above conditions
  113. only after obtaining written permission from Jim Bracking.
  114. Such permission is usually granted; please write for
  115. details.
  116.  
  117. See the Ordering section for more information on
  118. registration, corporate licensing and similar topics.
  119.  
  120.  
  121. II. WARRANTY
  122.  
  123. Jim Bracking makes no warranty of any kind, express or
  124. implied, including, without limitation, any warranties of
  125. merchantability and/or fitness for a particular purpose.
  126. Jim Bracking shall not be liable for any damages, whether
  127. direct, indirect, special or consequential arising from a
  128. failure of this program to operate in the manner desired by
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. the user. Jim Bracking shall not be liable for any damage to
  136. data or property which may be caused directly or indirectly
  137. by use of the program.
  138.  
  139. IN NO EVENT WILL Jim Bracking BE LIABLE TO YOU FOR ANY
  140. DAMAGES, INCLUDING ANY LOST PROFITS, LOST SAVINGS, LOST DATA
  141. OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF
  142. YOUR USE OR INABILITY TO USE THE PROGRAM, OR FOR ANY CLAIM
  143. BY ANY OTHER PARTY.
  144.  
  145.  
  146.  
  147.         III. TABLE OF CONTENTS
  148.  
  149. I. LICENSE
  150.  
  151. II. WARRANTY
  152.  
  153. III. TABLE OF CONTENTS
  154.  
  155. IV. PREFACE
  156.  
  157. 1.0 INTRODUCTION
  158.     1.1  FEATURES
  159.         1.1.0  MESSAGE BUFFER
  160.         1.1.1  LOG DEVICE
  161.      1.2  HARDWARE REQUIREMENTS
  162.  
  163.  2.0 ABOUT THE HARD DISK
  164.      2.1 UNSUPPORTED HARD DISKS
  165.      2.2 SECTOR
  166.      2.3 TRACK
  167.      2.4 CYLINDER
  168.      2.5 WRITE PRECOMPENSATION
  169.      2.6 CONTROL BYTE
  170.      2.7 INTERLEAVE
  171.      2.8 LANDING ZONE
  172.      2.9 DIAGNOSTIC CYLINDER
  173.      2.10 HARD DISK DEFECTS
  174.  
  175.  3.0 GETTING STARTED
  176.      3.1  COMMAND LINE SWITCHES
  177.      3.2  THE MAIN MENU
  178.      3.3  NAVIGATING HDtest
  179.  
  180.  4.0 HELP MENU
  181.  
  182.  5.0 OPTIONS MENU
  183.      5.1  select drive 0
  184.      5.2  select drive 1
  185.      5.3  select all drives
  186.      5.4  view message buffer
  187.      5.5  change interleave
  188.      5.6  change d0 parameters
  189.      5.7  change d1 parameters
  190.      5.8  color/bw
  191.      5.9  enable/disable logging
  192.      5.10 Loop tests Yes/No
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  6.0 DISK TESTS MENU
  202.      6.1  read/write/verify
  203.      6.2  seek test
  204.      6.3  head select test
  205.      6.4  ecc test
  206.      6.5  run all tests
  207.      6.6  defect scan
  208.      6.7  park the heads
  209.      6.8  interleave test
  210.      6.9  performance test
  211.  
  212.  7.0 FORMAT MENU
  213.      7.1  format drive
  214.      7.2  format track
  215.      7.3  flag defective track
  216.      7.4  format diag cylinder
  217.      7.5  surface analysis
  218.  
  219.  8.0 BIOS CMDS MENU
  220.      8.1  run single command
  221.      8.2  run all commands
  222.  
  223. 9.0 APPENDIX A - MESSAGES
  224.      A1.0  STARTUP MESSAGES
  225.      A1.1  RUNTIME MESSAGES - INFORMATIONAL
  226.      A1.2  RUNTIME MESSAGES - ERRORS
  227.      A1.3  ERRORS and POSSIBLE CAUSES
  228.  
  229. 10.0 APPENDIX B - LICENSING INFORMATION
  230.      B1.0  SOURCE LICENSING
  231.      B1.1  OEM and VAR LICENSING
  232.  
  233.  11.0 APPENDIX C - ORDERING INFORMATION
  234.      C1.0  ORDERING INFORMATION
  235.      C1.1  CORPORATE and QUANTITY PURCHASES
  236.      C1.3  ORDER FORM
  237.  
  238.  
  239. V. PREFACE
  240.  
  241. This manual is intended as a reference manual describing the
  242. operation of HDtest. Additionally, there are chapters that
  243. cover various aspects of hard disk operation, plus DOS and
  244. the DOS format command. It is not intended as a tutorial on
  245. hard disks in general. The reference material provided with
  246. your hard disk or system should be consulted for the proper
  247. setup and operation of your hard disk and/or computer
  248. system..
  249.  
  250.  
  251. 1.0 INTRODUCTION
  252.  
  253. HDtest is a Hard Disk Diagnostic program designed to provide
  254. the user with a easy to use yet comprehensive Hard Disk
  255. Diagnostic and performance test that will:
  256.  
  257.       1.  Accurately isolate and diagnose Hard Disk errors.
  258.       2.  Provide a means for correcting most Hard Disk
  259.           errors.
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.       3.  Provide a consistent and reliable test of the system
  268.           Hard Disk BIOS commands.
  269.       4.  Provide the user with a snapshot of the Hard Disk
  270.           performance.
  271.  
  272. HDtest operations fall into two categories, NON-DESTRUCTIVE
  273. and DESTRUCTIVE. The NON-DESTRUCTIVE tests will use the
  274. Diagnostic Cylinder for reads, writes and formatting while the
  275. DESTRUCTIVE tests will use the data portion of the hard disk.
  276. The only DESTRUCTIVE tests are in the Format section and you
  277. will be given an opportunity to cancel the test before any
  278. data is overwritten.
  279.  
  280. 1.1  FEATURES
  281.  
  282. 1.1.0  MESSAGE BUFFER
  283.  
  284. While HDtest is running a Diagnostic or Performance test, the
  285. test status and all error messages are displayed on the screen.
  286. These messages are also recorded in an internal circular
  287. buffer that holds the last 100 messages. This internal buffer
  288. can be reviewed at any time by selecting "view message buffer"
  289. from the Options menu or by pressing F2 key from the main
  290. menu.
  291.  
  292. 1.1.1  LOG DEVICE
  293.  
  294. The log device provides the user with a option for recording
  295. all of the message log activity. It can be enabled or disabled
  296. by selecting the "enable/disable logging" option or by
  297. pressing the F8 key from the main menu. The default Log Device
  298. is the printer. The user can specify a different logging
  299. device such as a floppy disk when HDtest begins execution by
  300. using the command line parameter "/logd=". (See "COMMAND LINE
  301. PARAMETERS" for more information).
  302.  
  303. 1.2  HARDWARE REQUIREMENTS
  304.  
  305. HDtest requires a minimum of 180K of available RAM to execute
  306. properly--that is, 180K in addition to the operating system
  307. and any resident programs, including such memory resident
  308. programs as SideKick, SuperKey, etc. If you are operating with
  309. less than 192K total RAM, HDtest might not be able to load.
  310. HDtest operates under MS-DOS on the IBM PC/XT, PC/AT, PS/2
  311. models 50,60 and 80 and any close compatible, and may be used
  312. with color, composite or monochrome displays and hard disks
  313. using the ST506 or RLL interface.
  314.  
  315.  2.0 ABOUT THE HARD DISK
  316.  
  317. The Hard Disk is a external storage device that magnetically
  318. reads or writes blocks of data called sectors. A Hard Disk
  319. consists of one or more circular platters stacked one on top
  320. of the other. A platter is like a floppy disk except the
  321. platter is rigid instead of flexible. Thus the name of hard or
  322. rigid disk. Each platter generally has a pair of heads used to
  323. read or write data on that platter. The platter is organized
  324. into cylinders and tracks.
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333. Unlike a floppy where the motor is turned on only when
  334. accessing data, the hard disk runs continually.
  335.  
  336. The read/write heads do not ride on the surface of the hard
  337. disk when the hard disk is running, but ride on a cushion of
  338. air between the platter and the read/write heads. This is why
  339. the hard disk platters and read write heads are sealed in a
  340. container. If the system is moved or bumped to hard while the
  341. hard disk is running, the read/write heads can touch the
  342. platter surface. This is generally called a "head slap" or
  343. "head crash" and can cause damage to the platter resulting in
  344. lost data.
  345.  
  346.  2.1 UNSUPPORTED HARD DISKS
  347.  
  348. This release of HDtest DOES NOT include support ESDI hard
  349. disks.
  350.  
  351.  2.2 SECTOR
  352.  
  353. Most Hard Disks are "soft sectored" devices, meaning that the
  354. sector size can be 256, 512 or 1024 bytes long. The sector
  355. size used by IBM is 512 bytes. If the hard disk uses a
  356. different sector size either a device driver or the BIOS must
  357. present the data to the operating system as a 512 byte sector.
  358.  
  359.  2.3 TRACK
  360.  
  361. As discussed earlier, each platter has a pair of read/write
  362. heads. Each read/write head corresponds to a track. For
  363. example, if your hard disk has two platters it will have four
  364. read/write heads.«MDRV»«MDNM» The top side of platter 1 is
  365. head 0 or track 0 and the bottom side of platter 1 is head 1
  366. or track 1. The top side of platter 2 is head 2 or track 2 and
  367. the bottom side of platter 2 is head 3 or track 3. A track
  368. consists of a group of sectors numbered 1 to 17 on a standard
  369. ST506 hard disk.
  370.  
  371.  2.4 CYLINDER
  372.  
  373. Cylinders are a collection of tracks. Using the above example,
  374. a cylinder would consists of tracks 0 to 3. Cylinders are
  375. numbered starting at the outermost edge of the platter with
  376. cylinder 0 and working to the inside of the platter.«MDRV»«MDNM»
  377.  
  378. Some drives have more than 1024 cylinders but they require
  379. special code to support this feature. Because there is no
  380. established standard for supporting this feature, this program
  381. will not support more than 1024 cylinders.
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  2.5 WRITE PRECOMPENSATION
  394.  
  395. To understand write precompensation you must learn a little
  396. about how data is recorded. Data is recorded as 0's and 1's by
  397. applying current to the read/write heads as the disk platters
  398. passes under the heads. Because the disk platter rotates
  399. slower on the outer cylinders than the inner cylinders, the
  400. data bits tend to be spaced closer together. This can cause
  401. problems by sometimes confusing a 0 as a 1 or a 1 as a 0. This
  402. is sometimes referred to as "bit crowding". Write
  403. precompensation specifies the starting cylinder that the
  404. controller should be concerned about this and reduce the write
  405. current applied to writes thus giving greater spacing between
  406. the data bits.
  407.  
  408. Some hard disks do not require the controller to do this and
  409. write precompensation is then disabled by specifying a -1.
  410.  
  411.  2.6 CONTROL BYTE
  412.  
  413. The control byte is generally controller dependent and is a
  414. means for specifying certain options for the controller to
  415. use. HDtest uses the control byte to disable retries.
  416.  
  417.  2.7 INTERLEAVE
  418.  
  419. In order to achieve the maximum performance from your hard
  420. disk, it is VERY IMPORTANT to format your hard disk using the
  421. correct interleave.
  422.  
  423. The interleave simply specifies the order in which the sectors
  424. are organized on the track. The following examples demonstrate
  425. how interleaves of 1:1 and 2:1 would look:
  426.  
  427.     1:1   1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17
  428.     2:1   1,10,2,11,3,12,4,13,5,14,6,15,7,16,8,17,9.
  429.  
  430. In order to better understand how interleave affects your disk
  431. performance you need to know a little bit about how a
  432. read/write operation occurs. First, remember that the sectors
  433. are numbered from 1 to 17 on a standard hard disk. Let's assume
  434. your disk was formatted with a interleave of 1:1 and you want
  435. to read 10 sectors of data starting with sector 1 from
  436. cylinder 1, head 0. First, the controller must tell the drive
  437. to go to cylinder 1 and then select head 0. At this point the
  438. read/write heads are positioned at the correct cylinder and
  439. head for the read. Next, the controller begins looking for the
  440. sector to be read. When the ID for sector 1 is detected, the
  441. controller begins reading the data as it passes under the
  442. read/write head. After the sector has been read, the controller
  443. begins looking for sector 2. Remember that the disk is
  444. spinning at 3600 RPM. For most controllers, the amount of time
  445. it takes to complete the read for sector 1 and begin looking
  446. for sector 2 would have allowed the ID for sector 2 to have
  447. passed the read/write head. This means it will take another
  448. revolution of the disk before sector 2 can be read. This is
  449. why interleave is so important to disk performance.
  450.  
  451. In my testing, I have found that most controllers will support
  452. an interleave of 2:1. However there are a few controllers
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459. available that will support an interleave of 1:1 such as
  460. Adaptec.
  461.  
  462. It is worth paying a little more for a hard disk controller
  463. that will support an interleave of 1:1 than for a faster hard
  464. disk. For example, a hard disk with an average seek time of
  465. 40ms that is formatted at 1:1 will give you a better data
  466. transfer rate than a 28ms hard disk formatted with 2:1.
  467.  
  468. It is important to note that the interleave only affects the
  469. data transfer rate for multi-sector read/write operations. You
  470. can use the "interleave test" to determine the proper
  471. interleave for your hard disk.
  472.  
  473.  2.8 LANDING ZONE
  474.  
  475. The landing zone is an area on the hard disk that is not used
  476. for data and thus is safe for the read/write heads to rest on.
  477.  
  478. When the hard disk is powered off, the read/write heads come to
  479. a rest on the surface of the platter. Some hard disks have
  480. "self-retracting heads" meaning that when the power is turned
  481. off or interrupted the heads automatically move to the landing
  482. zone. Other hard disks like the Seagate ST225 do not have this feature
  483. and the heads come to a rest whereever the last disk access
  484. was made. Over an EXTENDED period of time this will weaken the
  485. spot where the read/write heads rest.
  486.  
  487. If your hard disk does not have self-retracting heads, you can
  488. use the "park heads" feature of HDtest to move the heads to
  489. the landing zone before turning off your computer.
  490.  
  491.  2.9 DIAGNOSTIC CYLINDER
  492.  
  493. The diagnostic cylinder is the last cylinder on an AT or the
  494. next to last cylinder on a PS/2. This cylinder is used only
  495. for testing and NO USER DATA is stored on this cylinder.
  496.  
  497.  2.10 HARD DISK DEFECTS
  498.  
  499. Almost every hard disk comes from the manufacturer with one or
  500. more defects. The defects are usually noted on the top or side,
  501. or a on a separate piece of paper with the hard disk. These areas
  502. were determined to be either "bad" or "weak" spots on the hard
  503. disk and should be flagged as a defective track.
  504.  
  505. On a PS/2 system the last cylinder is used to store a defect
  506. map that identifies the location of all defects on the hard
  507. disk. The AT does not support this feature. In any case, when
  508. you use HDtest to format your hard disk you MUST enter the
  509. defects or let HDtest find them for you to insure that no data
  510. will be stored in these areas.
  511.  
  512.  3.0 GETTING STARTED
  513.  
  514. Start HDtest by typing HDtest, then press <Enter> at the
  515. DOS command prompt. When HDtest starts, it will determine the
  516. number and characteristics of the hard disks in your system.
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  3.1  COMMAND LINE SWITCHES
  526.  
  527. When HDtest is started, there are some command line switches
  528. that can be specified to override some HDtest options. The
  529. following demonstrates the format of those switches:
  530.  
  531.       hdtest [/logd=devname] [/log=yes] [/bw] [/nft]
  532.  
  533. The default log device is the printer. By using the "logd="
  534. switch you can specify a different device for logging. For
  535. example "logd=a:hdlog" would cause HDtest to open a file
  536. called "hdlog" on the a: drive.
  537.  
  538. The /bw switch should be used if you have a monochrome monitor
  539. attached to a color card.
  540.  
  541. The /nft switch is used to disable the display of the "first
  542. time user" screen.
  543.  
  544. Example:  hdtest /logd=a:hdlog /log=yes
  545.  
  546. The above example will start HDtest with a log file on the a:
  547. drive with a file name of hdlog.
  548.  
  549. NOTE:  THE LOG FILE SHOULD NOT BE OPENED ON THE HARD DISK YOU
  550. WILL BE TESTING OR UNPREDICTABLE RESULTS CAN OCCUR.
  551.  
  552.  
  553.  3.2  THE MAIN MENU
  554.  
  555. The following is a sample of the HDtest screen for a system
  556. that has one 70meg hard disk. (The pull-down menus are not
  557. shown)
  558.  
  559.   ╔══════════════════════════════════════════════════════════╗
  560. 1 ║   Hard Disk Test - version 1.00                          ║
  561.   ║ Copyright (c) Jim Bracking, 1988                         ║
  562.   ╟──────────────────────────────────────────────────────────╢
  563. 2 ║  Help   Options   Disk tests   Format   Bios cmds   Quit ║
  564.   ╟──────────────────────────────────────────────────────────╢
  565.   ║                                                          ║
  566.   ║                                                          ║
  567.   ║                                                          ║
  568.   ║                                                          ║
  569.   ║                                                          ║
  570.   ║                                                          ║
  571.   ║                                                          ║
  572.   ║                                                          ║
  573.   ║                                                          ║
  574.   ║                                                          ║
  575.   ║                                                          ║
  576. 3 ║** Start of message buffer **                             ║
  577.   ║Drive 0 is ready                                          ║
  578.   ╟──────────────────────────────────────────────────────────╢
  579. 4 ║Model: AT Selected drive: 0 Loop tests: No Interleave: 2:1║
  580. 5 ║ Type  Drive  Cyl  Head  Precomp  Ctlbyte  Lzone  Sectors ║
  581.   ║  45     0   1024    8       -1    192      1024    17    ║
  582.   ║   0     1   Drive not installed                          ║
  583.   ╚══════════════════════════════════════════════════════════╝
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591. 1.   Copyright and version number.
  592. 2.   Main test menus.
  593. 3.   message buffer.
  594. 4.   Status line that shows the type of system you are using,
  595.      the drive that has been selected for testing, whether or
  596.      not the tests are to loop until stopped and the
  597.      interleave used for format.
  598. 5.   The drive parameters for the installed drives.
  599.  
  600.  3.3  NAVIGATING HDtest
  601.  
  602. Every attempt has been made to standardize the use of keys
  603. throughout this program. Exceptions for the following key
  604. definitions will be indicated by a pop-up window with the new
  605. key definitions. The following key definitions are valid from
  606. the main menu.
  607.  
  608.       F1............This key will invoke the help function.
  609.       F2............View the message buffer.
  610.       F3............Select drive 0 for testing.
  611.       F4............Select drive 1 for testing.
  612.       F5............Change drive 0 parms.
  613.       F6............Change drive 1 parms.
  614.       F7............Change interleave.
  615.       F8............Enable/disable logging.
  616.       F9............Loop tests yes/no.
  617.       Up arrow......Move the cursor up.
  618.       Down arrow....Move the cursor down.
  619.       Left arrow....Move the cursor left.
  620.       Right arrow...Move the cursor right.
  621.       Enter.........Select the highlighted test from the menu.
  622.       Esc...........Exit the sub-menu.
  623.  
  624. Additionally, you can go directly to a main menu or sub-menu
  625. item by pressing the highlighted key. Note that the main menu
  626. keys must be upper case and the sub-menu keys must be lower
  627. case.
  628.  
  629.  
  630.  4.0 HELP MENU
  631.  
  632. The "help" menu provides you with on-line access to
  633. information either about HDtest or the specific test. You can
  634. access help for the specific test by positioning the cursor
  635. anywhere in the test menu and pressing "F1" or by going to the
  636. "help" menu and selecting the test you would like help on.
  637. Help is available for the following items:
  638.  
  639. overview
  640. options
  641. disk tests
  642. format
  643. bios cmds
  644. first time user
  645.  
  646.  
  647.  5.0 OPTIONS MENU
  648.  
  649. The "options" menu is used to either change or set options
  650. within HDtest. Listed below is the sub-menu selections and
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657. their definitions:
  658.  
  659.  5.1  select drive 0
  660.  
  661. Select drive 0 as the target drive for testing.
  662.  
  663.  5.2  select drive 1
  664.  
  665. Select drive 1 as the target drive for testing.
  666.  
  667.  5.3  select all drives
  668.  
  669. Select all drives for testing.
  670.  
  671. NOTE: When HDtest is started, the default is all drives if you
  672. have more than one drive.
  673.  
  674.  5.4  view message buffer
  675.  
  676. This will allow you to review the message buffer.
  677.  
  678.  5.5  change interleave
  679.  
  680. Specify a new interleave value.
  681.  
  682.  5.6  change d0 parameters
  683.  
  684. Allows you to change the drive parameters for drive 0. This
  685. will not work on the XT.
  686.  
  687.  5.7  change d1 parameters
  688.  
  689. Allows you to change the drive parameters for drive 1. This
  690. will not work on the XT.
  691.  
  692. NOTE: If the drive you want to test was not installed when you
  693. started HDtest you can use "change drive parms" to install the
  694. drive for HDtest -- except on the XT.
  695.  
  696.  5.8  color/bw
  697.  
  698. Turn color on or off.
  699.  
  700.  5.9  enable/disable logging
  701.  
  702. Turn logging on or off. logging can be enabled at start-up
  703. time. See "COMMAND LINE SWITCHES".
  704.  
  705.  5.10 Loop tests Yes/No
  706.  
  707. If you want to loop the "disk tests" or "surface analysis"
  708. until you stop them you would use this option to loop the
  709. tests.
  710.  
  711.  
  712.  6.0 DISK TESTS MENU
  713.  
  714. The disk tests menu provides you with a series of tests
  715. designed to test the different functions of the hard disk and
  716. report any errors. All writes are done on the diagnostic
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723. cylinder. You should make sure that the diagnostic cylinder
  724. has been formatted before running these tests.
  725.  
  726.  6.1  read/write/verify
  727.  
  728. This test will write a data pattern of xb66d, read it back and
  729. verify the contents for xb66d.
  730.  
  731.  6.2  seek test
  732.  
  733. This test will execute a seek to head 0 of every cylinder,
  734. then execute a seek to the first and last cylinders and
  735. execute 1000 random seeks. If you have a very slow hard disk
  736. it is possible to get a "Seek error" while executing a seek
  737. greater than 400 cylinders. This does not always indicate the
  738. hard disk is defective but can be caused by the BIOS not
  739. allowing enough time for the seek to complete. If the error
  740. occurs during the track-to-track seek test then the drive is
  741. suspect.
  742.  
  743.  6.3  head select test
  744.  
  745. This will execute a verify command each head on the disk.
  746.  
  747.  6.4  ecc test
  748.  
  749. The ecc logic allows the controller to correct temporary read
  750. errors where one or more data bits were invalid. This is
  751. accomplished by the controller writing a 4-byte ecc (6 bytes
  752. on PS/2) with every 512 byte sector. When the data is read, the
  753. controller uses an algorithm to determine if the data is
  754. correct and attempts to correct it if it is incorrect. The
  755. implementation of this feature varies depending on the
  756. controller you have.
  757.  
  758. This test will first write a data pattern, then read the data
  759. and ecc, modify one bit, write the data and ecc, read the data
  760. and verify the data. This test WILL NOT work on systems that
  761. do NOT support the "read long" and "write long" commands.
  762.  
  763.  6.5  run all tests
  764.  
  765. This will execute all of the above tests.
  766.  
  767.  6.6  defect scan
  768.  
  769. This test will verify every sector on the hard disk, reporting
  770. any errors.
  771.  
  772.  6.7  park the heads
  773.  
  774. Move the heads to the landing zone.
  775.  
  776.  6.8  interleave test
  777.  
  778. This test will format the diagnostic cylinder with interleave
  779. values from 1:1 to 7:1, execute 50 multi-sector reads and
  780. report the average time the read took. This test can be used
  781. to determine the best interleave for the hard disk.
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  6.9  performance test
  790.  
  791. This test will execute a series of reads, track-to-track seeks
  792. and random seeks to determine the drive performance.
  793.  
  794.  
  795.  7.0 FORMAT MENU
  796.  
  797. This menu provides the user with the capability of executing a
  798. low-level format of the entire hard disk or specific tracks,
  799. flagging defective tracks, formatting the diagnostic cylinder,
  800. or to perform a surface analysis of the entire disk. With the
  801. exception of formatting the diagnostic cylinder, these tests
  802. WILL overwrite the data portion of the hard disk.
  803.  
  804. The hard disk format should not be confused with the DOS
  805. format command. This format executes a physical or what is
  806. sometimes called a low-level format of the hard disk. In order
  807. to make the disk usable for DOS, you must run the FDISK command to
  808. partition the hard disk and the DOS format command to format
  809. the DOS partition.
  810.  
  811. The interleave used for the format command is the displayed at
  812. the bottom of the screen as "interleave: n:1"
  813.  
  814. The format command WILL OVERWRITE user data so care should be
  815. used with this command.
  816.  
  817.  7.1  format drive
  818.  
  819. This option will provide you with a secondary menu allowing
  820. you to enter defects or to scan the disk for defects. If the
  821. hard disk has never been formatted with a low level format
  822. program you must enter the defect list manually using the
  823. defects listed on the drive. If the drive has been formatted
  824. before you can use the "scan for defects" to automatically
  825. build the defect list.
  826.  
  827.  7.2  format track
  828.  
  829. This option will provide you with a secondary menu allowing
  830. you to specify up to 100 tracks to be formatted.
  831.  
  832.  7.3  flag defective track
  833.  
  834. This option will provide you with a secondary menu allowing
  835. you to specify up to 100 tracks to be flagged as defective.
  836.  
  837.  7.4  format diag cylinder
  838.  
  839. This will format the diagnostic cylinder. Since this does not
  840. destroy user data, no prompt will be given.
  841.  
  842.  7.5  surface analysis
  843.  
  844. This option will write a data pattern of xb66d to every sector
  845. on the hard disk then read it back 3 times. If any errors are
  846. found, the track will be flagged as defective. If you have
  847. specified "loop: yes" then the second to n passes will perform
  848. only the read.
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  7.6  re-format drive
  857.  
  858. This function will format the selected drive WITHOUT any loss
  859. of user data. This is accomplished by first reading the data,
  860. formatting the track and then restoring the data. This can be
  861. used for correcting temporary errors, preventive maintenance
  862. through formatting and to change the interleave. It is
  863. STRONGLY recommended that the disk first be backed up.
  864.  
  865. Tracks that have any hard errors will NOT be processed.
  866.  
  867.  
  868.  8.0 BIOS CMDS MENU
  869.  
  870. This test is designed to exercise the hard disk BIOS and
  871. attempt to determine if the disk command worked correctly. All
  872. writes are done on the diagnostic cylinder. You should make
  873. sure that the diagnostic cylinder has been formatted.
  874.  
  875.  8.1  run single command
  876.  
  877. This will provide the user with a secondary menu for every
  878. BIOS command.
  879.  
  880.  8.2  run all commands
  881.  
  882. This will execute every BIOS command and report the results.
  883.  
  884.  
  885. 9.0 APPENDIX A - MESSAGES
  886.  
  887.  A1.0  STARTUP MESSAGES
  888.  
  889. When HDtest is started there are some conditions that can
  890. occur to prevent successful execution. These messages are
  891. listed below:
  892.  
  893. message:  "Unknown or Unsupported Model ID - Model m Sub-Model
  894.         s - Program terminated"
  895.  
  896.           This will occur if you execute HDtest on a system
  897.           other than a XT, AT or PS/2 model 50, 60 or 80.
  898.  
  899. Message:  "Insufficient memory for program execution"
  900.  
  901.           There is not sufficient memory for HDtest to
  902.           execute.
  903.  
  904. Message:  "Invalid parameters specified"
  905.  
  906.           HDtest detected one or more invalid parameters on
  907.           the command line.
  908.  
  909.  A1.1  RUNTIME MESSAGES - INFORMATIONAL
  910.  
  911. Every attempt has been made to keep the user informed of the
  912. status of each test as it is executed. For example, every test
  913. informs you when it starts, what phase it is executing, when
  914. the test has ended, and whether or not the test passed or
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921. failed. The start, phase, and end messages are not documented
  922. here.
  923.  
  924. Message:  "No drives installed"
  925.  
  926.           On the bottom portion of the screen HDtest shows the
  927.           drive type, drive number and drive parameters. If
  928.           there is no drive installed then this message will
  929.           be displayed instead of the drive parameters.
  930.  
  931. Message:  "Drive not present"
  932.  
  933.           This message will be displayed when the "modify
  934.           drive parms" function is used to install a drive
  935.           that does not exist.
  936.  
  937. Message:  "Unknown type"
  938.  
  939.           This will be displayed on the lower portion of the
  940.           screen when the drive type is not known.
  941.  
  942. Message:  "You must select a specific drive for format"
  943.  
  944.           When using format you can not select all drives.
  945.  
  946. Message:  "Function canceled by user request"
  947.  
  948.           This indicates that the user canceled the test that
  949.           was executing.
  950.  
  951. Message:  "Press any key to cancel the function"
  952.  
  953.           When this message is displayed on the lower left
  954.           corner of the screen you may cancel the test in
  955.           progress by pressing any key.
  956.  
  957. Message:  "Pass n completed"
  958.  
  959.           When "Loop: yes" is specified this message will
  960.           appear at the end of each test cycle with n
  961.           representing the number of test cycles that have
  962.           completed.
  963.  
  964. Message:  "Average read time for two tracks is r ms"
  965.           "Data transfer rate is kb kbytes per second"
  966.           "Average seek time is s ms"
  967.           "Average track to track seek time is ts ms"
  968.  
  969.           These messages appear after the performance test.
  970.  
  971. Message:  "Enter new interleave value (1-7):"
  972.  
  973.           This prompt occurs when you select the "change
  974.           interleave" option.
  975.  
  976. Message:  "Drive n is responding not ready"
  977.           "Drive n is ready"
  978.  
  979.           When HDtest is started or when "change drive parms"
  980.           is used to add a drive HDtest will test drive n to
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.           determine if the drive is ready for testing and
  988.           report the results. If the drive is not ready then
  989.           no test can be perform on the drive.
  990.  
  991. Message:  "Drive n de-installed"
  992.           "Drive n installed"
  993.  
  994.           This message is displayed when "change drive parms"
  995.           is used to install or de-install drive n.
  996.  
  997. Message:  "Drive not installed"
  998.  
  999.           This message is displayed when "change drive parms"
  1000.           is used to install a drive with more than 1024
  1001.           cylinders, 15 heads or the number of sectors per
  1002.           track is not equal to 17.
  1003.  
  1004. Message:  "Message buffer scrolling"
  1005.  
  1006.           When the message buffer has wrapped, this message is
  1007.           displayed in the lower right corner.
  1008.  
  1009. Message:  "Average read time per track for interleave i:1 is
  1010.           t ms"
  1011.  
  1012.           After the interleave test, the average time it took
  1013.           to perform a read on a track formatted with
  1014.           interleave i is displayed as t ms. This test is done
  1015.           for interleaves of 1:1 to 7:1.
  1016.  
  1017. message:  " ** WARNING **"
  1018.           "This option will destroy data on drive n"
  1019.           "Reply "y" to continue or "n" to cancel:"
  1020.  
  1021.           Before any test is executed that will destroy user
  1022.           data this prompt will be displayed and the user
  1023.           given the option to continue or stop the test.
  1024.  
  1025. Message:  "Drive parameters for drive - n"
  1026.           "Max cyl n, Max head n, Max sectors n"
  1027.           "Number of installed drives - n"
  1028.  
  1029.           When the BIOS command "read drive parms" is executed
  1030.           this message is displayed showing the number of
  1031.           cylinders, heads, sectors and the number of
  1032.           installed drives.
  1033.  
  1034. Message:  "Drive n reporting - Fixed disk"
  1035.           "Total disk blocks - b"
  1036.  
  1037.           This message is displayed after the BIOS command
  1038.           "read dasd" is executed. It provides information for
  1039.           drive n on how many disk blocks are on this drive.
  1040.  
  1041.  A1.2  RUNTIME MESSAGES - ERRORS
  1042.  
  1043. During the course of HDtest, execution errors can occur either
  1044. with the hard disk being tested or with the log device. Listed
  1045. below are the error messages and descriptions:
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053. Message:  "(test name) completed with errors - (error)"
  1054.           "Drive n, Cmd n, Status n"
  1055.           "Cyl n, Head n, Sector n, Num sectors n"
  1056.  
  1057.           If any error occurs during the execution of a test
  1058.           this message will be displayed.
  1059.  
  1060. test name - the name of the test that was
  1061. executing.
  1062.  
  1063. error  - the text of the error that occurred.
  1064.  
  1065. drive  - the drive on which the error occurred.
  1066.  
  1067. cmd    - the disk command that caused the error.
  1068.  
  1069. status - the error status returned by the BIOS.
  1070.  
  1071. cyl    - the cylinder on which the error occurred.
  1072.  
  1073. head   - the head on which the error occurred.
  1074.  
  1075. sector - the sector on which the error occurred.
  1076.  
  1077. # sec  - the number of sectors passed to the BIOS.
  1078.  
  1079. Message:  "Error opening log file "name" - log disabled"
  1080.  
  1081.           When HDtest attempted to open the log device an
  1082.           error occurred. The log function was disabled.
  1083.  
  1084. Message:  "Error writing to log device - log disabled"
  1085.  
  1086.           When HDtest attempted to write a message to the log
  1087.           device, an error occurred. The log function was
  1088.           disabled.
  1089.  
  1090.  A1.3  ERRORS and POSSIBLE CAUSES
  1091.  
  1092. Many types of errors, both permanent and temporary, will occur
  1093. which CAN be fixed. In some cases it is simply a matter of
  1094. formatting the drive for the first time; others could be
  1095. jumpers, connections, or power. The safest approach to ANY
  1096. MEDIA ERROR that occurs after the drive has been formatted
  1097. with the proper write precompensation is to flag that track as
  1098. defective. If the media is marginal and you just reformat the
  1099. track, the error will probably occur again.
  1100.  
  1101. Other things to always check are the drive select jumper, power
  1102. to the drive, terminating resistor on the drive, and that the
  1103. cables are connected properly.
  1104.  
  1105. Error:  "Bad command"
  1106.  
  1107.         The BIOS does not support this disk command.
  1108.  
  1109. Error:  "Address mark not found"
  1110.  
  1111.         Caused by media defect, drive not formatted, drive
  1112.         formatted with the incorrect write precomp.
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120. Error:  "Write protect",  (PS/2  only)
  1121.  
  1122.         The drive has been write protected.
  1123.  
  1124. Error:  "Sector not found"
  1125.  
  1126.         Caused by media defect, drive not formatted, drive
  1127.         formatted with the incorrect write precomp.
  1128.  
  1129.         Media defect, drive not formatted or drive formatted
  1130.         with the incorrect write precomp.
  1131.  
  1132. Error:  "Reset failed"
  1133.  
  1134.      :  Bad controller, cable connection, terminating resistor
  1135. «MDRV»«MDNM»
  1136. Error:  "Init drive parm failed"
  1137.  
  1138.         Bad controller, cable connection, terminating resistor
  1139. «MDRV»«MDNM»
  1140. Error:  "Crossed DMA boundary"
  1141.  
  1142.         The program passed a buffer address to the BIOS that
  1143.         crossed a 64k boundary. This is a program error.
  1144.  
  1145. Error:  "Bad sector flag detected"
  1146.  
  1147.         The sector has been flagged as defective.
  1148.  
  1149. Error:  "Bad cylinder flag detected"    (PS/2 only)
  1150.  
  1151.         The cylinder has been flagged as defective.
  1152.  
  1153. Error:  "Invalid number of sectors"     (PS/2 only)
  1154.  
  1155.         The program specified too many sectors for a read or
  1156.         write operation. This is a program error.
  1157.  
  1158. Error:  "Data address mark not found"   (PS/2 only)
  1159.  
  1160.         Caused by media defect, drive not formatted, drive
  1161.         formatted with the incorrect write precomp.
  1162.  
  1163. Error:  "DMA arb. level out of range"   (PS/2 only)
  1164.  
  1165.         The DMA arbitration level specified by the setup
  1166.  
  1167.         program is invalid. This is a program error.
  1168.  
  1169. Error:  "Uncorrectable data error"
  1170.  
  1171.         Caused by media defect, drive not formatted, drive
  1172.         formatted with the incorrect write precomp.
  1173.  
  1174. Error:  "ECC corrected data"
  1175.  
  1176.         The sector read had a data error but the controller
  1177.         was able to correct the data using the ECC. Assuming
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.         the drive was formatted properly this track should be
  1186.         flagged as defective.
  1187.  
  1188. Error:  "Controller error"
  1189.  
  1190.         Possible bad controller.
  1191.  
  1192. Error:  "Seek failed"
  1193.  
  1194.         Caused by a bad or slow drive that the BIOS did not
  1195.         allow enough time for the seek to complete.
  1196.  
  1197. Error:  "Time out"
  1198.  
  1199.         Caused by the drive, controller, drive select jumper
  1200.         or cable.
  1201.  
  1202. Error:  "Drive not ready"
  1203.  
  1204.         Caused by the drive, drive select jumper or cable.
  1205.  
  1206. Error:  "Write fault"
  1207.  
  1208.         Caused by the drive, controller or cable.
  1209.  
  1210. Error:  "Sense failed"      /* ps2 only */
  1211.  
  1212.         Caused by the Controller or cable.
  1213.  
  1214. Error:  "Data pattern has changed"
  1215.  
  1216.         During the ecc test, the controller indicated the data
  1217.         was corrected but the data did not reflect the
  1218.         correction.
  1219.  
  1220.  
  1221. 10.0 APPENDIX B - LICENSING INFORMATION
  1222.  
  1223.  B1.0  SOURCE LICENSING
  1224.  
  1225. A source code license for HDtest IS AVAILABLE. Call or write
  1226. for details.
  1227.  
  1228.  B1.1  OEM and VAR LICENSING
  1229.  
  1230. OEM and VAR licensing IS AVAILABLE. Please call or write for
  1231. details.
  1232.  
  1233.  
  1234.  
  1235.  11.0 APPENDIX C - ORDERING INFORMATION
  1236.  
  1237.  C1.0  ORDERING INFORMATION
  1238.  
  1239. HDtest registration provides you with a license to use the
  1240. product on a regular basis. Users need register only one
  1241. version of HDtest. Individual registrations for HDtest come in
  1242. two forms.
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.       1. Registration only of the copy you have in your
  1252.          possession. The registration fee covers only the use
  1253.          of the program.
  1254.  
  1255.          Fee  $35.
  1256.  
  1257.       2. This option covers the registration fee, and a
  1258.          diskette containing the latest version of the
  1259.          program, documentation and any supporting programs
  1260.          that may be available.
  1261.  
  1262.          Fee  $50.
  1263.  
  1264. In addition, evaluation disks are available for $10.  These
  1265. disks do not include registration. The fee covers diskette,
  1266. postage and handling. Please use the enclosed order form when
  1267. placing an order.
  1268.  
  1269. ORDERS OUTSIDE THE US: Please send international money orders
  1270. in US dollars and include an additional $5 to cover postage.
  1271.  
  1272.  C1.1  CORPORATE and QUANTITY PURCHASES
  1273.  
  1274. All corporate, business, government or other commercial users
  1275. of HDtest must be registered.  Quantity discounts are offered
  1276. at the eleventh copy.  Corporate or site licensing is also
  1277. available.
  1278.  
  1279. For single unit orders, use the enclosed order form.  We
  1280. accept purchase orders in amounts over $100 only.  All other
  1281. orders should be prepaid. Purchases of over 100 units may be
  1282. handled as quantity purchases or as corporate licensing
  1283. agreements.  Licensing agreements allow duplication and
  1284. distribution of specific numbers of copies within the licensed
  1285. institution.  Duplication of multiple copies is not allowed
  1286. except through execution of a licensing agreement.  Please
  1287. write or call for details.
  1288.  
  1289.     The quantity purchase discounts are as follows:
  1290.  
  1291.          0- 99 copies:      no discount
  1292.        100-150 copies:     15% discount
  1293.        151-300 copies:     20% discount
  1294.        301-500 copies:     25% discount
  1295.        500+    copies:     30% discount
  1296.  
  1297.  
  1298.  
  1299. ALL PRICES AND DISCOUNTS ARE SUBJECT TO CHANGE WITHOUT NOTICE.
  1300. Discounts are not cumulative; they apply to single
  1301. orders of like products only. Unit prices are the
  1302. same as for individual users.
  1303.  
  1304. WARNING: YOU MAY NOT USE HDTEST WITHIN YOUR ORGANIZATION
  1305. WITHOUT A PRIOR PURCHASE OR LICENSE ARRANGEMENT.
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  C1.3  ORDER FORM
  1318.  
  1319. Remit to: Jim Bracking - Order Form
  1320.           967 Pinewood Drive
  1321.           Dept. CPC
  1322.           San Jose, CA 95129
  1323.  
  1324. Please send:
  1325.  
  1326. ____ HDtest Disk (evaluation copy) . @ $ 10.00 ea $  ______
  1327.      (includes program and manual on disk,
  1328.      no registration)
  1329.  
  1330. ____ HDtest Registration ........... @ $ 35.00 ea $  ______
  1331.          (does not include disk)
  1332.  
  1333. ____ HDtest Registration/Disk ...... @ $ 50.00 ea $  ______
  1334.          (includes registration, current program
  1335.           version, documentation file and supporting
  1336.           programs)
  1337.  
  1338.           Subtotal ............................... $  ______
  1339.  
  1340.           Less Discount........................... $ <______>
  1341.  
  1342.           7.00% sales tax ........................ $  ______
  1343.  
  1344.          Total ................................... $  ______
  1345.  
  1346.     Payment by:   ( ) Check  ( ) Cash  ( ) PO #
  1347.  
  1348. ____________________________________________________________
  1349. Name:
  1350. ____________________________________________________________
  1351. Company:
  1352. ____________________________________________________________
  1353. Address:
  1354. ____________________________________________________________
  1355.  
  1356. ____________________________________________________________
  1357.  
  1358. ____________________________________________________________
  1359.  
  1360. Day Phone: __________________  Eve Phone: __________________
  1361.  
  1362. System type: _____  Disk Size: _____  RLL/ST506:  _____
  1363.  
  1364. ORDERS OUTSIDE THE US: Please send international money orders
  1365. in US dollars and include an additional $5 to cover postage.
  1366. Sorry, no C.O.D. orders will be accepted.
  1367.