home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / 2K.ZIP / 2KMOD.DOC
Encoding:
Text File  |  1987-07-26  |  6.3 KB  |  179 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                 2k Clusters on a 10 meg Hard Disk drive - DOS 3.1-3.3
  8.  
  9.                                 Written ( 07/26/87 )
  10.  
  11.                            Author: Joe Moor ( 74365,757 )
  12.  
  13.                This article  is based on an article written by Bill Higgins
  14.           that allowed  you to  have a  10 meg  hard disk  with 2k clusters
  15.           under dos 3.1.
  16.  
  17.           Why re-invent the wheel?
  18.  
  19.                I found  that there  have been  some changes in DOS 3.3, and
  20.           the patches  that circulate  the BBS's  unfortunately don't cover
  21.           these changes,  and since  I run  under DOS 3.3 it was time to do
  22.           some investigating.
  23.  
  24.           Background - Why the need for any changes?
  25.  
  26.                The  standard  10  meg  hard  drive  allocates  space  in 4k
  27.           clusters, that  is each  file you create needs a minimum of 4,096
  28.           bytes of disk space.  This does not present a  problem if  all of
  29.           your files are large or are on average bigger than 4k.
  30.                My problem was that my hard disk is populated with BAT files
  31.           and many script files, not to mention all  those useful Shareware
  32.           utilities that float around.  Financial constraints hold to me to
  33.           10 meg at the moment so  I need  to stretch  my resources  to the
  34.           limit.   So here is the way I was able to regain about 800k worth
  35.           of disk space (plus more as future additions are made to it).
  36.  
  37.           What will you need to perform this patch?
  38.  
  39.                1    -    A sector  editing  program  such  as  NU (Norton's
  40.                          Utilities) or PCTOOLS (Central Point Software).  I
  41.                          prefer PCTOOLS because of it's speed and features,
  42.                          however any sector editor will work.
  43.  
  44.                2    -    PC-DOS versions 3.1-3.3.
  45.  
  46.  
  47.           What do I do now that I'm ready?
  48.  
  49.                1    -    THIS STEP IS THE MOST CRITICAL!!!
  50.  
  51.                          *** BACKUP YOU ENTIRE HARD DISK TO FLOPPY ***
  52.                          *** YOU WILL BE VERY SORRY YOU DIDN'T IF  ***
  53.                          *** THIS PATCH DOES NOT WORK ON YOU HD    ***
  54.                          *** OR IF A MISTAKE IS MADE               ***
  55.  
  56.                2    -    Cold boot the version of DOS you are running.
  57.  
  58.  
  59.  
  60.                          2k Cluster modifications -  Page 1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.                3    -    FDISK the hard disk you wish to modify to create a
  67.                          DOS partition.
  68.  
  69.                4    -    FORMAT the hard disk using the  DOS FORMAT program
  70.                          (do not specify any switches IE: /s /v).
  71.  
  72.                5    -    Using the sector editor you must modify 2 bytes in
  73.                          the boot sector.
  74.  
  75.                          a)   Search for the following sequence of bytes in
  76.                               the Boot Sector (Sector 0).
  77.  
  78.                               02 08 01 00 02 00 02 F3 50 F8 08 00
  79.  
  80.                               (They  are  located  in  the beginning of the
  81.                               Boot sector under DOS 3.3)
  82.  
  83.                          b)   First we must change  the  number  of sectors
  84.                               per  cluster  from  8  to  4 ( 1 sector = 512
  85.                               bytes : 8 x 512 =  4096 cluster  : 4  x 512 =
  86.                               2048  cluster).    In  the  above sequence of
  87.                               bytes change the 08 to 04 as described below.
  88.  
  89.                     Before    02 08 01 00 02 00 02 F3 50 F8 08 00
  90.                                  ^^
  91.                     After     02 04 01 00 02 00 02 F3 50 F8 08 00
  92.                                  ^^
  93.  
  94.                          c)   Next we must change  the  number  of possible
  95.                               FAT entries  ( twice as many now ) and change
  96.                               the FAT coding from 12 bits to 16 bit coding.
  97.                               In the  above sequence of bytes change the 08
  98.                               to 15 as described below.
  99.  
  100.                     Before    02 04 01 00 02 00 02 F3 50 F8 08 00
  101.                                                             ^^
  102.                     After     02 04 01 00 02 00 02 F3 50 F8 15 00
  103.                                                             ^^
  104.  
  105.                               *    This line also reflects the changes made
  106.                                    in step 5b.
  107.  
  108.                          d)   Write the sector back to disk.
  109.  
  110.                          e)   Exit sector editor.
  111.  
  112.  
  113.                6    -    Do a  cold boot of DOS from the A: drive.  This is
  114.                          necessary so the boot sector will  be read  and so
  115.                          that BIOS  can find  the changes  made to the boot
  116.                          sector. ( The boot sector is only read once during
  117.  
  118.  
  119.                          2k Cluster modifications -  Page 2
  120.  
  121.  
  122.  
  123.  
  124.  
  125.                          a  cold  boot  by  BIOS  to  build  the  BPB  BIOS
  126.                          Parameter Block )
  127.  
  128.                7    -    FORMAT the hard drive using DOS  FORMAT specifying
  129.                          any options you like /s/v etc...
  130.  
  131.                8    -    RESTORE all  the files  to your hard disk.  DO NOT
  132.                          RESTORE THE SYSTEM FILES  IBMBIO.COM IBMDOS.COM or
  133.                          COMMAND.COM ( this is in case you are changing DOS
  134.                          versions or upgrading  to  DOS  3.1,  it  does not
  135.                          effect the cluster size modification ).
  136.  
  137.                9    -    That's it..Take a break.
  138.  
  139.  
  140.                I  cannot  guarantee  this  change  will  work  on  all Hard
  141.           Disk/Controller combinations.  I  use a  AT&T 6300  with a Tandon
  142.           hard disk  and Western  Digital controller.   If  the change does
  143.           work for you I'm sure you'll be please to see the amount  of disk
  144.           space available  decrease much slower than before (especially for
  145.           those with many small COM, BAT or script files).
  146.  
  147.                Please  send  any  comments/suggestions  to  Joe  Moor  CIS:
  148.           74365,757 or at 'THE BOSS BBS' (201) 568-7293.
  149.  
  150.           Good Luck!
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.                          2k Cluster modifications -  Page 3
  179.