home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 118.lha / Bformat.README < prev    next >
Text File  |  1986-11-20  |  4KB  |  93 lines

  1.  
  2. Documentation for Bformat <a 3.5" disk formatting utility>
  3. ----------------------------------------------------------
  4.  
  5. Purpose
  6. -------
  7.  Normally, AmigaDos only allows the formatting of 'perfect' diskettes. If you
  8. have a formatting error anywhere on the diskette (it may only be a single
  9. track that appears to be bad) AmigaDos will kindly inform you that the disk
  10. is totally un-useable. I never felt comfortable with that limitation. I had
  11. hoped that Dos 1.2 would address this problem (well..maybe 1.3,1.4,1.5?). In
  12. any case, I became tired of waiting. I drew upon some experience that I had
  13. about a year ago when I wrote a custom hard-disk driver for my A1000, and
  14. came up with Bformat. Bformat allows for the formatting of otherwise
  15. un-useable 3.5" diskettes.
  16.  
  17. Limitations
  18. -----------
  19.   Bformat does require the ability to sucessfully format tracks 0 and 80.
  20. Disks with formatting errors on tracks other than 0 and 80 should pose no
  21. problems.  Bformat only works on drive DF0:. This self imposed limitation
  22. insures that Bformat cannot be used to screw up hard-disks and the like.
  23. At this time Bformat is only executable from the CLI environment.
  24.  
  25. How it Works (overview)
  26. ------------
  27.   Bformat uses the standard 'trackdisk.device' calls for disk formatting.
  28. After a diskette is formatted 3 important blocks are written to the disk.
  29. The first block written is what I will call the 'ID' block (block 0). In
  30. order for AmigaDos to recognize the disk as useable for file storage,
  31. the first three bytes must contain the ascii codes for 'DOS'. The second
  32. block required by Dos is the 'root' block (block 880). This block contains
  33. information on the disk file structure, as defined in the AmigaDos Manual.
  34. The third block required is the 'Block Allocation Map' (bam). The physical
  35. block number for this map can vary and is obtained as a pointer from the
  36. 'root block'. The bam is a bit-mapped structure which defines all of the
  37. available blocks on the disk. When files are created by AmigaDos, it adjusts
  38. the content of this map to reflect which blocks are used by the file system.
  39. (More info on the bitmap is present in the source code). Bformat works by
  40. dynamically creating this bitmap structure. When Bformat comes accross a
  41. block that cannot be correctly formatted, it marks this block as 'in use'.
  42. Since the blocks marked by Bformat are not attached to any AmigaDos file,
  43. the AmigaDos file system will not attempt to use these 'bad' blocks.
  44. Bformat effectively hides any bad blocks from AmigaDos.
  45.  
  46.  
  47. Usage
  48. ------
  49.   Bformat will only work on 3.5" floppy disks located in drive df0:.
  50.   Bformat accepts two command options. This can take two possible forms:
  51.  
  52. 1) bformat volname         volname = the volume name for your disk. (required)
  53.                            Format & verify diskette, marking any bad blocks
  54.                            as 'in use'.
  55.  
  56. 2) bformat volname -c     -c option will erase all files on the disk and
  57.                            verify disk integrity. Any bad blocks found will
  58.                            be marked as 'in use'. The disk will not be
  59.                            re-formatted when using this option.
  60.  
  61.   You can abort the program at any time via ctrl-c or ctrl-d.
  62.  
  63.  
  64. Concerns
  65. --------
  66.   Wouldn't recommend the use of AmigaDos 'diskcopy' command in association
  67. with a disk formatted by Bformat. Use standard 'copy' instead. On occasion
  68. you may find a diskette that will format correctly, but, after a period of
  69. time, fails. This type of latent problem cannot be detected by Bformat (or
  70. the AmigDos format, for that matter) and is an area of concern. The only
  71. reliable approach to this problem is to use the Bformat '-c' option after
  72. you have copied any recoverable files from the disk that has developed
  73. this type of error.
  74.  
  75. Status
  76. ------
  77.   I originally planned to release this as ShareWare but decided to leave it 
  78. as public domain. I would actually like Bformat to be somewhere in between.
  79. Shall I call it pd-shareware?? In other words, I'll leave the status up to 
  80. you.. If you find Bformat to be a useful addition to your amiga, I have
  81. no objection to monetary contributions mailed to the following address:
  82.  
  83. Bob Bush
  84. 1015 Hayfield
  85. Rochester Hills Mich. 48064
  86.  
  87.  Enough of that..
  88.  
  89.  Any comments/questions accepted via Compuserve Email (73105,1332).
  90.  
  91.  
  92. ***** end of file *****
  93.