home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / FLOPPIES / NOFLP100.ZIP / NOFLOP.DOC < prev    next >
Encoding:
Text File  |  1990-01-01  |  13.8 KB  |  318 lines

  1.  
  2.  
  3.  
  4.  
  5.                                  NoFlop Version 1.00
  6.  
  7.                        Fixed Disk Boot Utility for floppy disks
  8.  
  9.                       Shareware (C)Copyright 1990 by Jerry Locke
  10.  
  11.  
  12.  
  13.          INTRODUCTION
  14.  
  15.          When you use DOS's Format command to  initialize a new disk, it is
  16.          created with  a boot sector  containing a  routine which reads the
  17.          rest of DOS into  memory if  the disk is  booted in drive A.  This
  18.          is obviously useless if you did not use the /S parameter to format
  19.          the disk as a system  disk, and produces  the following message if
  20.          it is booted in drive A:
  21.  
  22.               Non-system disk or disk error
  23.               Replace and strike any key when ready
  24.  
  25.          NoFlop will make your floppies more friendly by "zapping" the boot
  26.          sector with a replacement routine which reads  the first sector of
  27.          your hard disk and then executes it. The practical use for this is
  28.          that you can leave  the disk in the  drive and still boot from the
  29.          hard disk.
  30.  
  31.          The reasons  you might  need your  floppies to  be in  drive A and
  32.          still boot  from the  hard disk  are varied.   For  example, I use
  33.          pcANYWHERE (product of  Dynamic Microprocessor Associates Inc.) to
  34.          access my computer at  the office  from home.  If I need something
  35.          from a floppy I just leave it in the drive. Imagine my frustration
  36.          if the power glitched and the machine sat at the "Non-system disk"
  37.          prompt all weekend  while I was  trying  to call!  After executing
  38.          NoFlop on all my non-bootable floppies, there is no problem if the
  39.          machine reboots for some reason.
  40.  
  41.  
  42.  
  43.          SYSTEM REQUIREMENTS
  44.  
  45.          NoFlop requires a PC-compatible computer running DOS 2.00 or later
  46.          with a hard disk drive.
  47.  
  48.  
  49.  
  50.          COMMAND SYNTAX
  51.  
  52.          The syntax for NoFlop is as follows:
  53.  
  54.               NOFLOP [Enter]
  55.  
  56.          No parameters  are required  or accepted.  The diskette in drive A
  57.          will be patched with the NoFlop boot code.  If the drive is empty,
  58.          disk write protected, etc., appropriate messages will be provided.
  59.          NoFlop Version 1.00                                           Page 2
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.                                WARNING!  WARNING!  WARNING!
  79.  
  80.  
  81.  
  82.          DO NOT use NoFlop with copy protected diskettes!  Whatever  was in
  83.          the boot sector  (which is probably vital  to the operation of the
  84.          diskette) will be  gone, FOREVER.  For the same reason, do not use
  85.          NoFlop on bootable system diskettes.
  86.          NoFlop Version 1.00                                           Page 3
  87.  
  88.  
  89.  
  90.          REGISTRATION AND LEGAL JARGON
  91.  
  92.          If you think  NoFlop is of value, you  should register  your copy.
  93.          Registration is MANDATORY for  commercial or corporate  use.  When
  94.          you have registered, you will be entitled to the following:
  95.  
  96.               1) The next version (1.10), when available.
  97.               2) Complete commented source code on diskette.
  98.               3) Phone support.
  99.               4) Peace of mind for having done the right thing.
  100.  
  101.          To register, please send twenty dollars ($20) to the author at the
  102.          address on the next page, and specify what size diskette you need.
  103.          The source code is NOT shareware; you may NOT distribute it.
  104.  
  105.          For the protection of the author's rights, certain safeguards have
  106.          been built into NoFlop  to protect  against unauthorized  changes.
  107.          Such modifications may  result in "License violated" errors, which
  108.          can be corrected by  using an unaltered copy of the program.  Note
  109.          that there  is no protection  against  changes  made to a diskette
  110.          processed by NoFlop, however.
  111.  
  112.          If you  get a "License expired" error, don't  panic!  If you are a
  113.          registered user, you already have a newer version.  If you're not,
  114.          the newest  version is available  to you either the same place you
  115.          got this one, or one of the following BBS systems:
  116.  
  117.           Byte Junction       Pep's Data System      PKWARE Support BBS
  118.           Mobile, Alabama     Mobile, Alabama        Glendale, Wisconsin
  119.           205 866-7895        205 626-7447           414 352-3670
  120.           ------------------  --------------------   ----------------------
  121.           The best message    9600 VSM, CD ROM!      From the PKZIP author!
  122.           base in the state!  300+ megs of d-load!   Need I say more?
  123.  
  124.  
  125.          NoFlop is SHAREWARE.  You are free to use, copy and distribute it
  126.          for NONCOMMERCIAL use if:
  127.  
  128.               1) No fee is charged for use, copying or distribution.
  129.               2) Only the original, unmodified NOFLPxxx.ZIP file is
  130.                  distributed.
  131.  
  132.          Clubs and user groups may charge a nominal fee, not to exceed
  133.          $10, for expenses and handling.  If you got NoFlop on a disk
  134.          you bought from a "$5 a disk" shareware distributor, you are NOT
  135.          registered; what you paid for is their handling expenses.  You
  136.          still should register.
  137.          NoFlop Version 1.00                                           Page 4
  138.  
  139.  
  140.  
  141.          DISCLAIMER
  142.  
  143.          The  author  hereby  disclaims  all  warranties  relating  to this
  144.          software, whether express or implied, including without limitation
  145.          any  implied  warranties  of  merchantability  or  fitness  for  a
  146.          particular purpose. The author will not be liable for any special,
  147.          incidental, consequential, indirect or similar damages due to loss
  148.          of data or any other reason, even if the author or an agent of the
  149.          author has been advised of the possibility of such damages.  In no
  150.          event shall the author's liability for any damages ever exceed the
  151.          price paid for the  license to use the software, regardless of the
  152.          form of the claim.  The person  using the software  bears all risk
  153.          as to its quality and performance.
  154.  
  155.          The huge paragraph above  does not mean I won't  fix real problems
  156.          if they occur! If you find bugs in NoFlop, please inform me.  I'll
  157.          fix them!  In addition, the first person to report what I consider
  158.          to be a valid bug gets  a free registration  and mention  of their
  159.          name in the next version of the program documentation.
  160.  
  161.          Note:  The definition of what constitutes a "valid" bug is totally
  162.          determined by the author.
  163.  
  164.  
  165.  
  166.          AUTHOR INFORMATION
  167.  
  168.          NoFlop is written and supported by:
  169.  
  170.               Jerry Locke
  171.               115 Baldwin Road
  172.               Satsuma, AL 36572
  173.               205 675-8283
  174.  
  175.          All inquiries and registrations should be directed to this
  176.          address, or to me on one of the two Alabama BBS's listed on
  177.          page 3.
  178.          NoFlop Version 1.00                                           Page 5
  179.  
  180.  
  181.  
  182.                                NoFlop Technical Information
  183.  
  184.          1: ERRORLEVELS
  185.  
  186.          The program returns standard DOS "errorlevels" for Disk Controller
  187.          Status, for  use within batch  files.  The possible  values are as
  188.          follows:
  189.  
  190.              0 - Normal successful completion. (Yay!)
  191.              1 - Illegal command to driver
  192.              2 - Address Mark not found (bad sector)
  193.              3 - Write Protected Disk
  194.              4 - Sector not found (reformat!)
  195.              6 - Diskette change line active (disks were switched)
  196.              8 - DMA overrun
  197.              9 - DMA attempt over 64K boundary
  198.             12 - Invalid media
  199.             16 - CRC error on disk read
  200.             32 - Controller error
  201.             64 - Seek failure
  202.            128 - Disk time out (drive not ready)
  203.            255 - Bad DOS version or License Violation
  204.  
  205.          If one of the more obscure errors occurs, you will get "Disk Error
  206.          xxH ????ing drive A" message,  where xxH is the  hexadecimal error
  207.          number and ????ing is either reading or writing.  Most of them you
  208.          can safely expect never to see.  Normally, you should be concerned
  209.          with only 0 or not 0 (i.e. either success or failure) as all other
  210.          statuses indicate that the  program did not  run successfully.  An
  211.          example batch file to format and then NoFlop a disk is as follows:
  212.  
  213.              @ECHO OFF
  214.              FORMAT A: %1 %2 %3 %4 %5 %6 %7 %8 %9
  215.              IF EXIST A:\IBMBIO.COM GOTO END
  216.              IF EXIST A:\IO.SYS GOTO END
  217.              :DOIT!
  218.              NOFLOP
  219.              IF ERRORLEVEL 255 GOTO BADDOS
  220.              IF ERRORLEVEL 4 GOTO FAILED
  221.              IF ERRORLEVEL 3 GOTO WRITPROT  <-- Normally, this should never
  222.              IF ERRORLEVEL 1 GOTO FAILED        happen--we just formatted a
  223.              ECHO Done!                         write protected disk?!
  224.              GOTO END
  225.              :WRITPROT
  226.              ECHO Disk is write protected!  Fix it and press Enter.
  227.              PAUSE >NUL
  228.              GOTO DOIT!
  229.              :BADDOS
  230.              ECHO Either upgrade your DOS or call Jerry Locke!
  231.              GOTO END
  232.              :FAILED
  233.              ECHO Invalid media, Sector not found, etc ... NoFlop failed!
  234.              :END
  235.  
  236.          The second line of the batch  file does a FORMAT with  all command
  237.          line switches preserved. The third and fourth lines prevent NoFlop
  238.          from destroying a bootable disk (it was formatted with /S).
  239.          NoFlop Version 1.00                                           Page 6
  240.  
  241.  
  242.  
  243.  
  244.          2: PATCHES
  245.  
  246.          If you are adventurous  and wish  to make  alterations  to the way
  247.          NoFlop works, there are three fields which can be  easily modified
  248.          through DEBUG or with a file editor such as Norton Utilities.
  249.  
  250.          The first field defines the size of the boot BIOS  Parameter Block
  251.          (BPB) area and  is located  at offset 28  hexadecimal in  the .COM
  252.          file.  Because  there are varying  types and sizes of disks (360K,
  253.          720K, etc.), we cannot safely overwrite the boot sector and assume
  254.          a particular type of disk.  The BPB area (which defines the number
  255.          of heads, tracks, sectors, etc.) must be  retained in the new boot
  256.          sector.  The value at 28 hex determines how long this area is. The
  257.          current value, 3B hex, is valid through DOS 4.01;  future versions
  258.          may  require  modification here  to a larger  value.  One  program
  259.          available, INVIS-I-DISK,  provides retention  of the BPB  but only
  260.          keeps 36 bytes of it, causing DOS 4.0 to have problems with disks.
  261.          Another,  BOOTTHRU, assumes  that the target  is a 360K  5.25 inch
  262.          floppy and proceeds to destroy any other type of disk.
  263.  
  264.          The second modifiable field defines the number of retries (plus 1)
  265.          for the initial disk read.  During beta testing, it was discovered
  266.          that certain computers  would return a  controller error 6 (change
  267.          line active)  instead of  valid boot sector  data, thus scrambling
  268.          the disk when it was written back. (Don't panic! In the version of
  269.          NoFlop you have, this bug has been thoroughly squashed!)  The byte
  270.          is at offset 29 hex and has a value of 4, indicating 3 retries.
  271.  
  272.          Finally, you can modify the drive number for NoFlop to alter.  The
  273.          locations are  at A9 hex and D8 hex, both with a value of 0, which
  274.          normally specifies  drive A:, physical drive 0.  If you have other
  275.          drives attached  which you  need to  access with  NoFlop, you  can
  276.          change these locations to specify  the new drive.  You must change
  277.          both!  For example, you  might have an  external floppy drive that
  278.          is designated as C:;  you would change both locations from 0 to 2.
  279.          Never, ever, specify a value greater than 80 hex.   To do so would
  280.          overwrite a hard disk's partition table, rendering the entire disk
  281.          useless! Note that these locations are valid only for version 1.00
  282.          of NoFlop and will undoubtedly change in future versions.  You may
  283.          also wish to change the text messages  at 196 hex and 1D8 hex from
  284.          "A" to the new drive.
  285.  
  286.          3: PROCESSES
  287.  
  288.          The actual operation of NoFlop is a three step process. First, the
  289.          existing boot  sector is read into  memory from physical  drive 00
  290.          (the first  floppy).  Second, the  BPB information is  transferred
  291.          from there to the new boot sector area of memory. Finally, the new
  292.          boot sector is written,  again to physical drive  00.  If you have
  293.          differring  requirements, or requests  for enhancements to NoFlop,
  294.          please contact the author by mail.
  295.          NoFlop Version 1.00                                           Page 7
  296.  
  297.  
  298.  
  299.  
  300.          4: REVISION HISTORY and BUG SPOTTERS:
  301.  
  302.            0.90 - 12-11-89 Original Beta test version.
  303.            0.91 - 12-12-89 Retry count, error messages added.
  304.            0.92 - 12-15-89 Unauthorized modifications detection added
  305.            0.93 - 12-18-89 Suggested by John Hassell; Mobile, Alabama:
  306.                              Use checksumming to make sure boot sector is
  307.                              not corrupted.
  308.                            Used DOS int 21.9 instead of int 10 so output
  309.                            can be redirected or piped.
  310.                            Documentation created.
  311.            ---------------------------------------------------------------
  312.            1.00 - 01-01-90 Initial public release, expires 01-01-92
  313.                            Suggested by Pepper Myers (Sysop of Pep's Data
  314.                              System, Mobile, AL - 205 626-7447):
  315.                            Included documentation on how to modify the
  316.                            drive specification.
  317.  
  318.