home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / DOS_HELP / XT2K.ZIP / 2KCLUSTR.TXT
Encoding:
Text File  |  1985-10-09  |  4.5 KB  |  91 lines

  1. #: 139244 S4/Programming
  2.     16-Jul-85  13:12:29
  3. Sb: #Cluster Size
  4. Fm: Bill Higgins 70575,307
  5. To: ALL
  6.  
  7. Standard 10mb fixed disks formatted under DOS 3.0 & 3.1 utilize 4k
  8. clusters (i.e., the minimum space allocated to any file is 4096 bytes),
  9. while drives 20mb and larger utilize 2k clusters.  At work, I use a PC
  10. with twin 10mb drives under DOS 3.1.  Since I have a multitude of small
  11. files on these disks, the smaller allocation unit's space saving
  12. advantage far outweighs any theoretical disadvantage of additional
  13. overhead for DOS to handle the added allocation units.  With the help of
  14. Bob Morse, Jim Gainsley, and the DOS Technical Reference, I was able to
  15. make the changes necessary to use 2k clusters on both of my 10mb drives.
  16. The following text was previously sent to Connie privately, on how to
  17. make the switch on his drives.  He indicated that it may be of enough
  18. general interest to post publicly, so here it is:
  19.  
  20. Here are the first few bytes out of your boot sector, which are used
  21. to develp the BIOS Parameter Block.  The two values which must be
  22. changed are set apart and described:
  23.  
  24. EB2C9049424D2020322E300002   08   01000200020351F8   0800   110004000100
  25.                            sectors                  sectors
  26.                              per                      per
  27.                            cluster                 single FAT
  28.  
  29. The number of sectors per cluster would change from 08 to 04, since
  30. that's what this is all about.  The sectors per FAT will change, in
  31. order to accomodate (1) the increased number of possible FAT entries,
  32. and (2) the increased size of each fat entry (new 16 vs.  old 12 bits
  33. each).  The value to use for a 10 meg & 2y+W.]Y9s would be 21 sectors,
  34. or 1500 in hex word format.  Since your values are for 2.0, some of the
  35. other boot sector entries will change when you format under 3.1, but not
  36. these two entries, until you change them yourself, if you so decide.
  37.  
  38. As to your first FAT sector:  It should look in part like this after you
  39. reformat under 3.1:
  40.  
  41. F8FFFF00 00000000 00000000 00000000 00000000 00000000
  42. 00000000 00000000 00000000 00000000 00000000 00000000
  43.  
  44. you need to make the first line look like:
  45.  
  46. F8FFFFFF 00000000 00000000 00000000 00000000 00000000
  47. to account for the 2 byte entries.
  48.  
  49. Most critical to the process is the sequence in which this procedure is
  50. attempted.  I will list the steps that I took to go from 4k to 2k
  51. clusters.  It is quite possible that some of these steps are not
  52. necessary, but I don't have the expertise to determine which, if any,
  53. can be eliminated.  I applied a little 'artificial' intellegence (still
  54. looking for the real thing) and some dead reckoning to the somewhat long
  55. procedure I went thru last week, and gave it a shot on my ten meg d:
  56. drive at work today:  It worked fine, and simplifies the task.
  57.  
  58. (1)  Do a complete backup of the drive.
  59. (2)  Do a low-level format.  This will wipe the FAT's and root directory
  60.      clean.
  61. (3)  Cold boot DOS 3.1, and FDISK the drive to create a DOS partition.
  62. (4)  Format the drive using the DOS format program.  Don't use any
  63.      parameters (no /s or /v).
  64. (5)  Using your norton (or whatever), select the boot sector and view
  65.      it.  You should see a value of 08 for sectors per cluster.  Change
  66.      this to 04.  You should see a value of 0800 for sectors per FAT.
  67.      Change this to 1500.  Moving along to the first FAT sector, change
  68.      the first four bytes from F8FFFF00 to F8FFFFFF, and verify that all
  69.      the other entries are 0000 in this sector.  I have verified that the
  70.      subsequent format (7,below) will take care of setting up FAT2.
  71.      There seems to be no need to zero out any of the following FAT or
  72.      directory sectors.
  73. (6)  Exit Norton and do a cold boot.*
  74. (7)  Reformat the drive using the DOS program, using whatever switches
  75.      that you desire (/s or /v).  Format will not affect your changes to
  76.      the boot sector.
  77. (8)  Restore your files (I remember that you are aware of the new switch
  78.      in restore which will cause a prompt before restoring sys files).
  79.  
  80.      * This is critical, since the boot sector is read by DOS only once,
  81.      at boot time, in order to build the BIOS Parameter Block.  Having
  82.      different info in the boot sector than what's in the memory-resident
  83.      BPB will cause exceedingly flaky things to happen, as you can
  84.      imagine.
  85.  
  86. ******
  87.  
  88. Of course, I cannot warrant this procedure to work for everyone,
  89. particularly for controllers and drives which are not 'XT clones'.
  90. Comments solicited.
  91.