home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / DOS_HELP / DOS33C.ZIP / DOS33C.PAT
Encoding:
Text File  |  1990-12-27  |  5.2 KB  |  111 lines

  1.  
  2.  
  3.    FIXED DISK CLUSTER SIZE  - PC DOS 3.30
  4.  
  5.    The following information is based on an earlier CompuServe file
  6.    titled `DOS31A.PAT' prepared by the IBMPC SIG Users Group (collated
  7.    by Bill Higgins).  The information has been modified for DOS 3.30.
  8.  
  9.    The problem is similar to DOS 3.1 and 10 Meg hard drives, in that
  10.    FDISK now permits partitioning a drive into logical units.  If the
  11.    logical unit is under 20 Meg, DOS 3.30 sets 4 k (4096 byte) clusters.
  12.    A cluster is the smallest unit of disk space accessible by DOS.  For
  13.    some unknown reason, DOS uses 4k clusters when one might want 512 byte
  14.    1024 byte, or 2048 byte clusters on smaller partitions.  Imagine the
  15.    amount of wasted space if your average file is only 500 bytes.
  16.  
  17.  
  18.          2K (or 1K) Cluster Size for 10MB Partitions under DOS 3.30
  19.  
  20.    (1) IBM PC-DOS version 3.30 (also known as 3.3).  Do not attempt this
  21.        with COMPAQ 3.31!
  22.  
  23.    (2) A disk utility such as PCTOOLS or DEBUG to edit the boot area of a
  24.        partition.  You'll need to repeat the steps 2 - 6 for each partition
  25.        that you modify.
  26.  
  27.    Most critical to the process is the sequence in which this procedure is
  28.    attempted.  Here is the 4k to 2k cluster procedure:
  29.  
  30.    (1)  Do a complete backup of the entire drive, using your favorite backup
  31.         utility.
  32.  
  33.    (2)  Cold boot DOS 3.30, run FDISK to create or be sure that a DOS
  34.         and extended partition(s) exist on the Drive.
  35.  
  36.    (3)  Format each of the partitions using the DOS 3.30 FORMAT program.  Do
  37.         NOT use any parameters (no /s or /v).
  38.  
  39.    (4)  Using your disk utility, select the boot sector and view it.
  40.         See below for an explanation of the pertinent info in this sector.
  41.         At location AA below, you should see a value of 08 which is the
  42.         number of sectors per cluster.  Change this to 04 (or 02 for 1k
  43.         clusters).
  44.  
  45.         At location BB below, you should see a value of 0800 which is the
  46.         number of sectors per fat (in hex Word format).  Change this to 1500
  47.         (or 2800 for 1k clusters).  This value will differ for larger or
  48.         smaller partitions.  The key is to maintain a direct PROPORTION
  49.         for the sample values shown.  YOU MUST BE FAMILIAR WITH HEXADECIMAL
  50.         MATH TO DO THIS!  The results should appear as in CC and DD below.
  51.  
  52.         Example of first few bytes in the Boot Sector of the partition,
  53.         displayed in hex format, after formatting with DOS 3.30, and prior
  54.         to 2k (or 1k) cluster size changes:
  55.  
  56.              EB349049 424D2020 332E3300 02080100 020002FB 4FF80800
  57.                                           ^^                  ^^^^
  58.                                           AA                   BB
  59.  
  60.           After the 2k cluster size changes:
  61.  
  62.              EB349049 424D2020 332E3300 02040100 020002FB 4FF81500
  63.                                           ^^                  ^^^^
  64.                                           CC                   DD
  65.  
  66.           After the 1k cluster size changes:
  67.  
  68.              EB349049 424D2020 332E3300 02020100 020002FB 4FF82800
  69.                                           ^^                  ^^^^
  70.                                           CC                   DD
  71.  
  72.  
  73.       A more detailed explanation of these two changes:
  74.  
  75.       The number of sectors per cluster would change from 08 to 04, since
  76.       that's what this is all about.  The sectors per FAT will change, in
  77.       order to accommodate (1) the increased number of possible FAT
  78.       entries, and (2) the increased size of each fat entry which will be
  79.       in 16-bit format instead of the former 12-bits.  The value to use for
  80.       a 10 meg & 2k clusters would be 21 sectors, or 1500 in hex word
  81.       format. (In this case the 15 is all that counts. 15 hex = 21 decimal.)
  82.  
  83.  
  84.    (5)  Exit the disk utility and do a cold boot with DOS 3.30.
  85.  
  86.    (6)  Reformat the drive using the DOS 3.30 FORMAT command.
  87.  
  88.              FORMAT C: /S for Drive C (or the boot unit)
  89.              FORMAT D: (where D is the extended logical unit you've altered)
  90.         (You may also include  /V, if you wish to include a volume label.
  91.         You'll need to do this for each unit you've altered.)
  92.  
  93.    (7)  Restore your files, using you favorite BACKUP / RESTORE utility.
  94.  
  95.         YOU MUST NOT ALLOW THE TWO SYSTEM FILES, IBMBIO.COM AND IBMDOS.COM
  96.         TO BE RESTORED, EVEN IF THEY ARE DOS 3.30 !!!  IF YOU DO, THEY WILL
  97.         NOT BE PUT IN THE PROPER LOCATIONS AND YOUR FIXED DISK WILL NOT BE
  98.         BOOTABLE AND YOU WILL HAVE TO REFORMAT !!!
  99.  
  100.         Avoid restoring an earlier version of COMMAND.COM, but if you do
  101.         restore an earlier version, nothing is lost, just be sure to copy
  102.         a 3.30 version over it afterwards.  You should now be operational
  103.         again, with 2k (or 1K) clusters.
  104.  
  105.    A word of warning!  Always backup before fooling with hard drives.  Even
  106.    if this procedure doesn't work on YOUR machine, you can always repartition
  107.    with FDISK, and FORMAT each partition again.  Your backup can restore your
  108.    original data.  This is important since the FORMAT process destroys data.
  109.  
  110.    If you have any questions, contact Fred Niemczenia at CI$ 76606,2060 or
  111.    FidoNet address 1:371/7.