home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #3 / MONSTER.ISO / faq / fantom.faq < prev    next >
Text File  |  1993-09-28  |  8KB  |  146 lines

  1.         "I put in a floppy, do DIR, put in another floppy, do DIR, and get 
  2. the directory of the *first* floppy!" 
  3.  
  4.         This is called Phantom Directory, and it is dangerous.  DOS did not 
  5. notice that you changed disks, so it will write the right thing to the 
  6. wrong disk, scrambling both the directory and the files.  DOS dectects that 
  7. you have changed the disk with a switch and wire called ChangeLine.
  8.  
  9.         This is normally a problem only on AT-class machines (286, 386, 
  10. 486, etc), and with 720K, 1.2M and 1.44M drives.  XT-class machines did not 
  11. usually support changeline, and 360K drives did not have the switch. 
  12.  
  13.         CHKDRV.ZIP in IBMHW forum LIB 1 (22K) is a program to test the 
  14. floppy change line.  However it only tests A: and B:.  External drives such 
  15. as D: etc. are not supported the same way, so cannot be tested as simply.
  16.  
  17. "What do I do to avoid trashing my disks?"
  18.         If you are at the DOS prompt, A:> or B:> or C:>, you can press ^C 
  19. (hold down the Ctrl key and tap the C key) right after changing the disk.  
  20. This tells DOS to "flush the buffers", to forget all it knows about the 
  21. current disk.  Next time you ask to read or write the disk DOS will have to 
  22. physically read it, not rely on it's buffers. 
  23.         If you are in an application program, don't switch disks while the 
  24. program is running.  It may do it's own buffering.  Exit completely out of 
  25. the program to DOS, change the disk, and do ^C.  Then you can re-start your 
  26. application. 
  27.  
  28. "Why does this happen?"
  29.         All drives (except 360K drives) have a switch that detects either 
  30. door opened or disk ejected.  On AT-class machines , most versions of DOS 
  31. rely on this switch to tell when the disk has been changed, and DOS needs 
  32. to re-read the disk.  If the disk has not been changed, DOS uses the copy 
  33. of the disk's directory held in memory.  The wire in the drive cable that 
  34. carries this signal is called ChangeLine. 
  35.  
  36. "Can I fix it so I don't have to be doing ^C all the time?"
  37.  
  38. DC JUMPER
  39.         If this happens on a newly installed or seldom used drive, check 
  40. the DC jumper, usually at the rear of the drive.  There should be a jumper 
  41. on the DC pins. Some drives do not support DC on pin 34, but instead carry 
  42. a Standard Ready (SR) signal on the same pin, just the opposite of DC! If 
  43. your drive has pin 34 set to SR, then even if you change your disk, your AT 
  44. think it has the first disk.  If there is a jumper on the drive labeled 
  45. "SR", put it in the other position if available, otherwise remove it.  If 
  46. your drive has always had ChangeLine problems then odds are that one of 
  47. these jumpers is the problem. 
  48.  
  49. "But it USED to work!"
  50.         What if the drive used to work correctly, but has just started this 
  51. Phantom Directory trouble? 
  52.  
  53. STICKY SWITCH
  54.         The most common cause seems to be a sticky switch.  Sometimes it 
  55. gets jammed with dust, and a blast of compressed air in the disk slot frees 
  56. it.  On 3.5" drives, the switch is often a tiny pin at the lower left of 
  57. the drive slot, next to the switch that detects 1.44M or 720K diskettes.  
  58. On other drives it is an infrared photo detector, and a scrap of oxide or 
  59. a clump of dust gets in its eye.  The switch or detector is tiny, and not 
  60. available separately, so if blowing and jiggling doesn't fix it you are in 
  61. trouble. 
  62.  
  63. CABLES AND CONTROLLERS
  64.         Another possibility is that pin 34 in the drive cable is bad.  
  65. Because it is on the edge of the cable, it is slightly more likely to be 
  66. not plugged in all the way, or to have been pinched.  Look at the cable, 
  67. and wiggle both ends to loosen any tarnish on the pins.  If you have a 
  68. continuity tester, check that wire 34 conducts.  Cables are cheap and 
  69. should be considered replaceable. 
  70.         It is possible for a controller to go bad. 
  71.         I tend to doubt that bad cables or bad controllers cause most of 
  72. the phantom directory problems we see.  Why should pin 34 go bad so much 
  73. more often than any other?  We don't see data pin troubles nearly as often 
  74. as pin 34 related troubles.  I think the switch goes bad. 
  75.  
  76. CUSTOM DOS
  77.         Some versions of DOS are customized for certain non-standard 
  78. hardware.  Many laptops are much happier with the DOS supplied with them 
  79. than with any other version.  Try the original DOS if you have phantom 
  80. directory troubles. 
  81.  
  82. OTHER SOFTWARE
  83.         One of the reasons a DISKCHANGE failure can occur is a conflict 
  84. with a memory-resident program that affects access to the disk, such as 
  85. disk cacheing software, network drivers, and computer viruses.  To rule out 
  86. the possibility of a software-related problem, try cold-booting your PC 
  87. from an original DOS boot diskette (i.e., one with no memory resident 
  88. programs or viruses on it) and see if the disk drives work as normal.  If 
  89. so, you may want to look into a software conflict or virus problem. (Thanks 
  90. to A. Goretsky (McAfee) 76702,1714 for this tip!)
  91.  
  92. DRIVPARM
  93.         Here is a trick that worked for me with a $10 720K drive and DOS 
  94. 5.0.  The drive did not reliably detect disk change.  In CONFIG.SYS I put: 
  95.  
  96.    DRIVPARM=/d:1 /h:2 /s:9 /t:80 
  97.  
  98.         and now it is safe to use.  Other suggestions I have seen:
  99.  
  100.    DEVICE=C:\DOS\DRIVER.SYS /D:1 /F:7
  101.  
  102.    DRIVPARM=/D:0 /F:1 
  103.  
  104.         DRIVPARM modifies DOS's drive parameter table for an existing 
  105. drive.  /d:1 means B:, A: would be /d:0.  /h:2 is 2 heads, /s:9 is 9 
  106. sectors per track, /t:80 is 80 tracks.  Note that I did *not* use the /c 
  107. switch, which enables Disk Change detection.  Now DOS thinks B: is some odd 
  108. 2 head, 9 sector 80 track device, and doesn't assume it has a Disk Change 
  109. switch. 
  110.         DRIVPARM was introduced in DOS 3.2.  It is an internal DOS command, 
  111. do not use DEVICE= to load it.  My book says it does not work correctly in 
  112. 3.3.  It worked for me in 5.0, but I have not tried it in 6.0, nor with 
  113. DR-DOS.  It may not work correctly with backup programs that need to know 
  114. the true state of Disk Change. 
  115.         DRIVER.SYS was introduced in DOS 3.2.  It is a device driver so you 
  116. must use DEVICE= to load it. (If it works you can then try DEVICEHIGH= to 
  117. load the driver in high memory.)  It's main purpose is to assign a new 
  118. letter to an existing drive.  It can make your B: also function as D:.  
  119. (this is handy for copying disks in the same drive (COPY B:*.* D:), but 
  120. SUBST will do the same with less fuss.)  You must specify either the 
  121. drive's physical type, or the head, sector and track count.  You may have 
  122. to modify (or add) your LASTDRIVE line in CONFIG.SYS. 
  123.         If you already use DRIVER.SYS to set up an unusual drive, and you 
  124. have changeline problems, be sure you don't have "/C" on the DRIVER.SYS 
  125. command line.
  126.         If you don't use DRIVER.SYS on the troublesome drive already (most 
  127. internal drives should have no need for it), try DRIVPARM first.  Test it.  
  128. If it doesn't work try DRIVER.SYS, but note that it creates a new logical 
  129. drive, and you will have to access the drive through it's new "name" 
  130. (generally D:) to get the benefit. 
  131.  
  132. A NEW DRIVE
  133.         This used to be the last resort, but the way drive prices have 
  134. fallen it makes a lot of sense.  Remember, the data is often worth more 
  135. than the drive. Buy a new drive, and insist on documentation for the DC 
  136. jumper, and test it after you install it. 
  137.  
  138. AUTHOR:
  139.         If any part of this document is unclear, or incomplete, or if you 
  140. know anything I have not mentioned, please tell me.  Leave a message either 
  141. on the IBMHW forum or in my E-Mail box.  If I don't reply in a few days, 
  142. post a message on IBMHW to ALL or Sysop. 
  143.  
  144.                                         Paul Reid 71031,3603
  145.  
  146.