home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 16 / 16.iso / t / t200 / 1.img / CLUSTER.TXT < prev    next >
Encoding:
Text File  |  1993-11-17  |  4.3 KB  |  82 lines

  1.                       Clusters, Sectors and Hard Drives
  2.                                           
  3.                               13 November, 1993
  4.        
  5.                                    6:07 PM
  6.        
  7.        Are you  planning to  buy a  new hard  drive  with  a  capacity
  8.        greater than  127 MEGABYTES?  Do you  understand the  "straight
  9.        skinny" about Sectors, Clusters, Kilobytes, and Megabytes? Well
  10.        this little  program will  help you  decide how  to  FDISK  and
  11.        FORMAT that  new MONSTER hard drive into Partitions that permit
  12.        the smallest  Cluster size  thus saving MEGABYTES of disk space
  13.        with small files.
  14.        
  15.        CLUSTER.COM is  a little  executable QuickBASIC  program  which
  16.        just gives  you the  results of  some mathematical  formulas to
  17.        calculate "bytes," "kilobytes," and "megabytes." Then let's you
  18.        know what the maximum size hard drive you can make with:
  19.        
  20.        1. 2 kilobyte Clusters (2048 bytes/Cluster)
  21.        2. 4 kilobyte Clusters (4096 bytes/Cluster)
  22.        3. 8 kilobyte Clusters (8196 bytes/Cluster)
  23.        
  24.        You see...  a "kilobyte"  is NOT one-thousand (1,000) bytes but
  25.        one-thousand and  twenty-four (1,024) bytes. This kind of stuff
  26.        makes me  CRAZY as  the prefix  "kilo" means thousand so that a
  27.        "kilogram" is a thousand grams and all other "kilos" are a nice
  28.        round thousand... except in computer terms.
  29.        
  30.        I have  asked some  of the "computer experts" I know to explain
  31.        how come  a "kilobyte" (K) is 1,024 bytes and a "megabyte" (MB)
  32.        is 1,048,576  bytes. They  tell me  it makes  perfect sense  to
  33.        them... but they CAN'T explain it to me.  Hence, I have written
  34.        this small  QuickBASIC program  to "hard-wire" my thinking into
  35.        "kilobytes."
  36.        
  37.        You see,  a byte  is a  computer unit  of data. By some strange
  38.        thinking it  was decided  that a  kilobyte is  "2 to  the  10th
  39.        power" or  as QuickBASIC  likes to see that formula as: "2^10."
  40.        And... a megabyte is: "2^20."
  41.        
  42.        Now you  are asking  "So What?" and "Who Cares...?" Well you do
  43.        even though you don't know it, yet.... You see even the laptops
  44.        are over  100 megabytes  now with  some at  200 megabytes as we
  45.        speak. In  the old  days (starting  with MS-DOS 5.0) with small
  46.        hard drives;  when you "FDISKed" the hard drive and "FORMATted"
  47.        it; you  usually  ended  up  with  two  kilobyte  (2048  bytes)
  48.        Clusters.
  49.        
  50.        But now with the new version of WORD FOR WINDOWS 6.0 commanding
  51.        24 megabytes  of disk  space and  Windows 3.1  needing about 15
  52.        megabytes... you  need a  100 megabyte  laptop just to do fancy
  53.        word processing.  Pop EXCEL 4.0, a game or twenty, a few fonts,
  54.        and you are pushing the 100 MB envelope with just applications.
  55.        
  56.        What is  a Cluster? Well a Cluster is a place on the hard drive
  57.        that MS-DOS writes one file. If you make a 100 byte batch file,
  58.        it takes  up one Cluster and no other file enters that Cluster.
  59.        So now..  the little  light bulb  probably has  gone on in your
  60.        head as  you realize  that if  you have eight kilobyte Clusters
  61.        and a  lot of  little files... you are LOSING MEGABYTES OF DISK
  62.        SPACE.
  63.        
  64.        That is  a fact... and the reason I have spent the time writing
  65.        this  text   file,  after   writing  the   QuickBASIC   program
  66.        CLUSTER.BAS in this file set and then spending another hour (or
  67.        more...) making  a PDQ  executable file  called CLUSTER.COM  to
  68.        demonstrate these relationships.
  69.        
  70.        What's that?  Why didn't I ALSO make a program that allowed you
  71.        to enter  the size of your hard drive with the output being the
  72.        number of  two kilobyte  Clusters you could make from that hard
  73.        drive? Well...  I thought about it but decided it was TOO DUMB.
  74.        As, all  you need  to do  is divide your hard drive size by the
  75.        numbers for the various Cluster sizes seen at the bottom of the
  76.        screen.
  77.        
  78.        But, give  me an eloquent reason for making such a program, and
  79.        I will probably do so... just for the code of it.
  80.        
  81.        John De Palma on CompuServe 76076,571
  82.