home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 1 / 001.d81 / t.discan < prev    next >
Text File  |  2022-08-26  |  2KB  |  106 lines

  1.                DISCAN
  2.                ======
  3.  
  4. Written by:  Joel Ellis Rea
  5.  
  6.  
  7.    DISCAN is short for DISC SCANner,
  8.  
  9. and it does just that.  It will scan
  10.  
  11. through every block of all 35 tracks
  12.  
  13. on a disk, and report any errors.  By
  14.  
  15. measuring the time it takes to get a
  16.  
  17. correct read, DISCAN also reports mar-
  18.  
  19. ginal sectors.  As it runs, DISCAN
  20.  
  21. displays the current track and sector
  22.  
  23. numbers of the block it is currently
  24.  
  25. scanning.  If it finds an error, it
  26.  
  27. tells the type of error, then checks
  28.  
  29. to see if the block is allocated.
  30.  
  31.  
  32.    A block is considered "allocated"
  33.  
  34. if it is marked as used in the Block
  35.  
  36. Availability Map, or BAM (located on
  37.  
  38. Track 18 Sector 0).  The Disk Opera-
  39.  
  40. ting System within the 1541 Disk Drive
  41.  
  42. (or DOS for short) will not use an al-
  43.  
  44. located block for saving new files on.
  45.  
  46.  
  47.    Anyway, if the block is allocated,
  48.  
  49. that usually means that that block is
  50.  
  51. currently part of a file.
  52.  
  53. Therefore, DISCAN says "WARNING - THIS
  54.  
  55. BLOCK IS PART OF A FILE" and keeps go-
  56.  
  57. ing.  READ ERROR #23 is a special case
  58.  
  59. (see below).
  60.  
  61.  
  62.    If the block is NOT allocated, DIS-
  63.  
  64. CAN will give you an oportunity to al-
  65.  
  66. locate it so that DOS won't use it.
  67.  
  68.  
  69.    READ ERROR #23's can usually be
  70.  
  71. corrected by simply writing the block
  72.  
  73. back out.  This will usually fix the
  74.  
  75. block itself so that it can be used,
  76.  
  77. but the contents of the block are vir-
  78.  
  79. tually always corrupted.  DISCAN will
  80.  
  81. give you the opportunity to "ATTEMPT
  82.  
  83. FIX?" if it finds a READ ERROR #23.
  84.  
  85. Don't attempt fix if the block is part
  86.  
  87. of a file unless you know what you are
  88.  
  89. doing!
  90.  
  91.  
  92.    Unlike CHECK DISK on the 1541 TEST/
  93.  
  94. DEMO disk, DISCAN will not write gar-
  95.  
  96. bage all over the disk.  Therefore,
  97.  
  98. you can use DISCAN on a disk that has
  99.  
  100. files already on it.  Also, DISCAN is
  101.  
  102. MUCH faster than CHECK DISK!
  103.  
  104. --------------------------------------
  105.  
  106.