home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / diskutil / mdisk60.lzh / MDISK60 / MDISK60.DOC < prev   
Text File  |  1991-03-13  |  23KB  |  513 lines

  1. Documentation for M-Disk 6.x for Atari ST
  2. =========================================
  3.  
  4. M-Disk provides
  5.   - a sizable removable multi-function ramdisk
  6.   - a floppy disk copy program (with virus detection logic)
  7.   - a fast ramdisk load/save program
  8.   - a harddisk backup/restore program
  9.   - a PS/2 compatible floppy disk formatting program
  10.   - a boot sector virus destruction program
  11. all in one program.
  12.  
  13. What's NEW:
  14. ===========
  15.  
  16. Version 6.0: - New GEM dialog: Setting of format parameters is now inside
  17.                the main dialog. Faster GEM dialog handling.
  18.              - Adapted to speed boards, 68030, etc.
  19.              - Adapted to TT (and it's brain damaged ``fast RAM'').
  20.              - Formatting is much faster under MiNT now !
  21.              - Verify may be turned off (Harakiris will like this).
  22.              - The `Format selection' button (see below !!)
  23.              - The `Clear M-Disk' button.
  24.              - When the selected format for `save+format' is too small,
  25.                M-Disk can do automatic format extension
  26.              - Support for disk labels.
  27.  
  28. Version 5.97: Some internal cleanup. M-Cache no longer included in the
  29.               distribution.
  30.  
  31. Version 5.96: Copy button as shorthand for load + save
  32.  
  33. Version 5.95: Set the mouse into the dialog
  34.  
  35. Version 5.9: Many wonderful new features:
  36.              - Optional reset resident M-Disk
  37.              - Optional auto-installing M-Disk
  38.              - Optional support for TEMPLMON user trace vector
  39.              - Optional automatic check of a magic number on every disk access
  40.                ==> You may get disk error dialog boxes now on the Ram Disk !!!
  41.  
  42. Since Version 4.x M-Disk does not use any undocumened variables. It should work
  43. with any TOS Version. Tested with Disk TOS 1.0 (1986), TOS 1.6 (STE TOS),
  44. KAOS 1.4.1, and MiNT 0.71.
  45.  
  46. M-Disk 6.0 should work with all known Atari ST harware configurations including
  47. 16-MHz-boards, 68030 Boards, STE, TT, etc.
  48.  
  49. Notes about Cache: Old M-Disk Versions included a simple cache. In Version 5.8
  50.   this went into the separate program M-Cache. M-Cache did never work, since it
  51.   accidently forgot to install itself. I do no longer include M-Cache because:
  52.   a) The cache does not check for media changes and thus has problems with
  53.      media changes like in the Atari Megafile 44.
  54.   b) The cache layout was for a fixed sector size of 512 Bytes, but did not
  55.      check this. So it did not work with the new big Partitions of AHDI 3.0.
  56.   c) Nowadays nearly everybody has TOS 1.4. Use CACHE100.PRG in the AUTO folder
  57.      and this will be better and give you less problems than most cache programs
  58.      floating around.
  59.   d) I could adapt M-Cache to AHDI 3.0 and Megafile 44, but I don't have the
  60.      time in the moment and since one may well use CACHE100, there is no more
  61.      reason for having a separate cache program.
  62.   e) If you don't have TOS 1.4 (or above) you should hurry to get it.
  63.  
  64. Mixed hints:
  65.   - do *always* have POOLFIX3.PRG in the AUTO folder when using TOS 1.4 or 1.6.
  66.   - do *always* have FOLDR100.PRG in the AUTO folder when using TOS 1.4 or 1.6.
  67.   - do *never* use the buggy TURBODOS.
  68.   - do *not* use CACHExxx.PRG with old TOS Versions (below 1.4).
  69.   - do *not* use the cache of the old M-Disk versions on Partitions that are
  70.     bigger than 15 MB.
  71.   
  72. Included files:
  73. ===============
  74.  
  75.     NAME           Length       Comment
  76.  
  77.   - MDISK.ACC       27034       the program
  78.   - MDISK6xx.DOC    22617       this document; Version = 6.xx
  79.   - CLEAR_M.PRG        78    utility program for old TOS versions
  80.  
  81. Installing the RamDisk:
  82. =======================
  83.  
  84. Move MDISK.ACC to the root directory of your boot disk, then reboot.
  85. Now there's a Desk Accessory entry "M-Disk" that lets you select
  86. a size for your ramdisk. Enter a size, then click "Install". Now M-Disk
  87. is active. Install a disk Icon for M-Disk, so you can click on it. M-Disk
  88. is always on drive M.
  89.  
  90. M-Disk can now be used like any normal RAM disk.
  91.  
  92. Copying from/to the M-Disk:
  93. ===========================
  94.  
  95. Since Floppy Disks are soooooo slow there is an option to load/save a whole
  96. Floppy Disk at once. This will make a plain copy of all files an directories,
  97. destroying the whole prior contents. The serial number of the Disk however
  98. is not changed.
  99.  
  100. >>>> The load/save option actually is the clou of the program.
  101. >>>> Use it often, it will save you lots of time.
  102. >>>> 
  103. >>>> load/save only works for Ram Disk size <= 1700 k !
  104.  
  105. Use as Disk Copier:
  106. ===================
  107.  
  108. First load the source disk into M-Disk, then save onto the target disk.
  109. Most common floppy formats are supported. The formats of the source and
  110. target disks need not be the same, so you can quick and easy copy
  111. a single sided disk to a double sided or IBM PS/2 or 800 KB Disk. You may
  112. even copy a double sided to a single sided disk if the target disk has
  113. enough space.
  114.  
  115. If the target disk is unformatted or you want to reformat it into fast format
  116. use the "+ format" button. The format options are used then to select a format
  117. for the disk to write.
  118.  
  119. If you want to make more than one copy you may want to use the 'copy' button.
  120. This allows you to make up to three copies and thus is equivalent to pressing
  121. first 'load' and then 'save' one to three times for each original to copy.
  122.  
  123. The 'copy' button is a true equivalent of 'load'+'save': After the 'copy'
  124. operation the new RamDisk contents are still intact and may be used for
  125. further operations.
  126.  
  127. Use as Backup Program:
  128. ======================
  129.  
  130. Backup:
  131.   You probably won't Backup the whole Hard disk at once. So select the
  132.   part you want to save, then install an M-Disk that is big enough to
  133.   hold your data. If you make it small enough to fit on your floppy disk
  134.   you can copy files from the Harddisk to M-Disk until M-Disk is full.
  135.   Now save the data with the "save" option onto a floppy.
  136. Restore:
  137.   Load your Backup Disk into M-Disk (with "load disk"). Then copy the files
  138.   from M-Disk to your Hard Disk. This is *much* faster than copying
  139.   directly from floppy to harddisk.
  140. Incremental Backup:
  141.   Load your (old) backup floppy into M-Disk. Delete some files, copy new
  142.   versions from the harddisk to M-Disk. When your finished save the result
  143.   again onto your floppy.
  144.  
  145. Use as fast Ramdisk load/save program
  146. =====================================
  147.  
  148. Don't you think loading files from floppy to your (reset resident,
  149. auto-compressing, super-hyper) Ram-Disk needs a little speed up ?!?
  150.  
  151. Here it is:
  152.  
  153. After having installed your Ram-Disk you install M-Disk, then load
  154. from floppy to M-Disk (with M-Disk's "load"). Now you copy everything
  155. as usual file-by-file to your Ram-Disk. You may kill M-Disk thereafter.
  156.  
  157. Saving your work when you are finished is just the other way round:
  158. Copy file-by-file to M-Disk, then use M-Disk's "save".
  159.  
  160. Formatting floppy disks
  161. =======================
  162.  
  163. You may format a disk at any time. Among the various formats that can
  164. be formatted there are two MSDOS compatible formats:
  165.  
  166. - 80 tracks, 2 sides, 9 sectors: The standard 3.5" PS/2 format.
  167. - 40 tracks, 2 sides, 9 sectors: The standard 5.25" MSDOS/PCDOS format.
  168.  
  169. These two formats are at least "300% compatible", i. e. the logical disk
  170. structure is 100% compatible, the boot sector and media byte is 100% compatible
  171. and the physical disk structure (GAPs between sectors etc.) is 100% compatible.
  172. Of course you cannot boot your PS/2 computer from an Atari formatted disk.
  173.  
  174. While remaining compatible the disks formatted with M-Disk still run fast
  175. on the ST. Since M-Disk Version 4.0, they also run fast on the PC.
  176.  
  177. The `+format' button
  178. ====================
  179.  
  180. When the `+format' button is active (dark) M-disk formats all the disks
  181. on-the-fly while writing out a disk from a `save' or `copy' command.
  182. This saves an additional format run if you want to write unformatted disks.
  183.  
  184. It's also wise to reformat floppys from time to time if they
  185. - were not formatted on the same drive on which they are to be used.
  186. - have not been formatted for a long time. As the years go by, floppy disks
  187.   may loose their formatting information.
  188.  
  189. The verify flags
  190. ================
  191.  
  192. M-Disk verifies every operation. For this reason no quick- or superquick-
  193. formatting routines are possible. Routines that format a 80 Track double
  194. sided disk in under 1 minute must time out the controller before each track
  195. is competely written. This leaves some garbage at the end of each track.
  196. If you are unlucky you would get another valid sector header in this area.
  197. So you might get e.g. "sector 1" two times on one track. Now these two
  198. will be read/written by TOS randomly, causing big problems. So M-Disk
  199. does not use these quick-and-dirty routines but always formats till the
  200. end of track assuring no anomaly can occur (additional verify is done also).
  201.  
  202. Since M-Disk 6.0 the verify on 'format' and 'format+save' can be turned off.
  203. There may be some people out there who want to speed up writing at the
  204. risk of damaged disks. For the 'save' button without '+format' the normal
  205. TOS routines are used. Verify is then controlled by the TOS verify flag
  206. which is turned ON by default.
  207.  
  208. There is one thing that M-Disk cannot verify: When you are formats with
  209. more than 80 tracks your head (floppy disk head, not yours) may run against
  210. the wall. You hear a click. On normal formatting programs this will result
  211. in a misplaced last track (slightly off correct position). But M-Disk starts
  212. formatting at the last track. So if you hear this click with M-Disk *all*
  213. tracks will be formatted on incorrect place.
  214.  
  215. ***         For this reason you should formats over 80 tracks only
  216. ***         if you are absolutely sure that your floppy can hold this
  217. ***         without running its head against the wall.
  218.  
  219. The normal TOS formatted disk speed is rather slow. M-Disk formats standard
  220. fast-runing disks like DCFORMAT, FCOPY, CopyStar etc.
  221.  
  222. If you format/write 40-track disks on a 80-tracks double-stepping disk drive
  223. it's wise to write the data several times if you later want to read it on
  224. 40-track disks (e.g. press `save' with `+ format' several times).
  225.  
  226. The `Format selection' button
  227. =============================
  228.  
  229. When the `Format selection' button is turned off (white) M-Disk automatically
  230. sets the Format parameters to those found on the disk on every `load'
  231. operation. This is especially useful with the `copy' button when used
  232. together with `+format':
  233.  
  234. - When `Format selection' is active (dark) all copies are formatted in the
  235.   pre-selected way.
  236. - When `Format selection' is inactive (white) all copies are formatted in
  237.   the format that was found on the corrosponding original.
  238.  
  239. The automatic format extension
  240. ==============================
  241.  
  242. When the selected format for `save+format' (or `copy+format') is too small
  243. but it's possible to make up a format that fits, M-Disk will ask you
  244. if you want to extend the current format.
  245.  
  246. As a consequence when copying floppy disks with `copy' you may select a small
  247. format for the standard, make `Format selection' active, and copy all of the
  248. disks onto standard-formatted disks until you get to a disk that is too big
  249. for it. When using the automatic format extension only those big disks will
  250. be formatted in the bigger format.
  251.  
  252. Exercise (easy): What happens with the automatic format extension when you
  253. `copy+format' with `Format selection' inactive?
  254.  
  255. Wiping disks
  256. ============
  257.  
  258. The `wipe' function only clears the FATs and the root directory of the
  259. specified device. This is much faster than erasing every single file or
  260. reformatting the disk. `wipe' can also be applied to non-floppy media
  261. (e.g. M:). M-Disk will not wipe media with 12-Bit FATs or more than
  262. 5 FAT sectors without an additional reconfirmation dialog.
  263.  
  264. Wipe is activated by clicking on one of the `Label' drives while the
  265. `CONTROL' key is pressed. So this function is somewhat hidden.
  266.  
  267. Disk labels
  268. ===========
  269.  
  270. Support for disk labels was added although GEMDOS does not support them
  271. very well. You can, however, see the disk label in the `Show info' dialog
  272. applied to a disk.
  273.  
  274. Disk labels produced by PC-DOS will show up in the directory because
  275. GEMDOS does not allow the archive bit with disk labels but PC-DOS seems
  276. to set it.
  277.  
  278. In old TOS versions disk labels can only be removed again via a trick (which
  279. M-Disk uses: Create a plain file with the label's name, then delete this
  280. file).
  281.  
  282. Since TOS 1.4 disk labels can never be removed so M-Disk must use another
  283. trick here (create a label with the strange name "\xE5").
  284.  
  285. Since disks without labels do well there is normally no need to use disk
  286. labels.
  287.  
  288. The `Clear M-Disk' button
  289. =========================
  290.  
  291. The small button that looks like a `window closer' provides a function to
  292. quickly clear the M-Disk. This is similar to do `wipe' on disk `M:'.
  293.  
  294. What floppy Disk format should I use ?
  295. ======================================
  296.  
  297. The 2 sides 80 track 9 sector format is the normal (and fastest) format.
  298. Use this whenever you do not need extremly much space on disk.
  299.  
  300. 10 sector format is safe. You may well use this whenever you want some
  301. more space on the disk. 10 sector disks run a little slower than 9 sector
  302. disks.
  303.  
  304. 11 sector format may only be used if your floppy disk drive is not too fast
  305. and do not use some cheap and bad disks. 11 sector disks run a little slower
  306. than 10 sector disks. It is normally better to use 11 sector formats than
  307. to format over 80 tracks.
  308.  
  309. Formats over 80 tracks may not run on some disks and (much more evil)
  310. on some drives. So if it all works on your disk drive carry the disk to
  311. a friend and (s)he maybe will not be able to read the additional tracks.
  312. If the floppy disk head hits its limit while formatting you yourself
  313. may eventually not be able to read the disks on your own system. So use
  314. this option seldom or never.
  315.  
  316. 40 track disks can be used for special applications e.g. formatting
  317. IBM PC-DOS compatible 5.25 inch floppies. You will not need this for your
  318. normal work with the ST.
  319.  
  320. Customizing M-Disk
  321. ==================
  322.  
  323. You may want to set up your own startup-defaults for M-Disk. To do this,
  324. make the drive containing M-Disk the actual drive (e.g. Top window),
  325. enter the value for `Ram Disk size' you want as the default value,
  326. then click `setup'.
  327.  
  328. Set the preferences you like. The `user trace' option sets up a user
  329. trace vector for the TEMPLMON monitor. This user trace checks the
  330. validity of the RAM disk and may thus be useful in finding the critical
  331. point in a bad program that corrupts the M-Disk buffer.
  332.  
  333. At last, click `save setup'. The setup is then saved to MDISK.ACC on
  334. the root of the current active drive (i.e. current window in desktop).
  335.  
  336. Strike the Virus out !
  337. ======================
  338.  
  339. When you use normal Disk-Copy Programs you may get a boot sector virus
  340. onto the copy disk. This is due to the fact that normal disk copy programs
  341. copy the boot sector as it is onto the copy disk. So any virus on the original
  342. gets copied to the copy.
  343.  
  344. M-Disk however does not copy the boot sector. So boot a sector virus does not
  345. get copied when copying disks with M-Disk. For this reason M-Disk copies
  346. are more safe.
  347.  
  348. M-Disk version 5.5 (and up) has an additional virus detection logic that
  349. detects executable boot sectors on every disk operation. You get messages of
  350. 2 levels:
  351.  
  352. 1. "Bootsector executable. This may be a virus or bootable program."
  353.    This message is no reason to panic. There is an executable boot sector
  354.    on the disk. This can be a virus, but it can also be startup code for a
  355.    game, time-setting, hard-disk related or other programs. Before destroying
  356.    it, you should test it with a more sophisticated virus destruction program
  357.    or the procedure described below.
  358.  
  359.    Conclusion: In this first case, you do not know, if you have a virus.
  360.  
  361. 2. "*** Attention: VIRUS ***   Your system is infected !".
  362.    Now you should be in panic !!! You booted with a virus-infected disk and
  363.    probably all disks, that have been in your floppy drive since the last
  364.    re-boot are infected now ! Let's hope you did not loose data !
  365.  
  366.    You should destroy the virus now (with the "virus check" button),
  367.    write-protect that disk and do a coldboot with this now virus-free
  368.    disk inserted in the floppy drive. Pressing the reset button
  369.    is not sufficient in this case. You must turn your computer off,
  370.    wait for 10 seconds, and turn it on again with a non-infected disk
  371.    in the drive. If you have TOS 1.4 and think CTRL-ALT-SHIFT-DEL is
  372.    sufficient please note that a virus may catch this vector !
  373.  
  374.    Conclusion: In this second case, you do absolutely sure have a virus !!!
  375.  
  376. (3. You see no message. Then you probably don't have a boot sector virus,
  377.     but you may have a link virus or something else.)
  378.  
  379. Test: Do I have a boot sector virus ?
  380. =====================================
  381.  
  382. If you are not sure if a particular boot sector on some disk is a virus,
  383. you can test it with the following procedure:
  384.  
  385. 1. Copy MDISK.ACC to the suspicious disk. Turn off the hard disk (we do
  386.    not want trouble on it). Put the suspicious disk in floppy drive A: and
  387.    press the reset button.
  388.  
  389. 2. Take an unformatted disk, format it with M-Disk, then wipe it, load
  390.    something into the M-Disk, then copy the M-Disk onto the newly formatted
  391.    disk with M-Disk save. Load and save again, etc. When you see the message:
  392.        "*** Attention: VIRUS ***   Your system is infected !".
  393.    somewhere in this process, you know, that you definitely have a virus.
  394.  
  395.    When you don't see that message, you may or may not have a virus.
  396.  
  397. Little virology
  398. ===============
  399.  
  400. There are many virus types in the world. M-Disk only recognises the most
  401. harmless (but also most common) type: "boot sector virus".
  402. This virus type sits in the boot sector and gets loaded whenever you boot
  403. with an infected disk in the boot drive.
  404.  
  405. A boot sector virus can easily be found and destroyed. If you copy all your
  406. data only with M-Disk (Version 5.5 and up), you will probably never have
  407. trouble with any "boot sector" type virus.
  408.  
  409. More trouble comes with the "link virus" type, which is not recognised by
  410. M-Disk. A link virus links itself to any program, therefore it can never be
  411. found in the boot sector. It comes to your system along with some new program
  412. and as time goes by infects all of your programs. Whenever you start one of
  413. your programs now, you activate the virus.
  414.  
  415. All virus programs reproduce themselves. But that's not all. There are some,
  416. that give funny messages on the screen, some that produce bombs from time to
  417. time, some destroy data on your floppy or hard disk, some destroy your monitor
  418. or floppy disk drive etc. So take care to eliminate every virus as soon as
  419. possible.
  420.  
  421. There are also some special boot sector virus types that destroy everything
  422. they find in the boot sector (sometimes called anti-virus) and dummy boot sector
  423. programs (sometimes called virus protection programs). I don't like the concept
  424. of the anti-virus because it is just another virus and you never know what's
  425. going on in your floppy drive. I prefer a clean boot sector i. e. one that
  426. is filled up with zeroes after the first 30 Bytes of disk information.
  427.  
  428. Care for executable boot sectors
  429. ================================
  430.  
  431. Some disks (especially some games) have executable boot sectors. These sectors
  432. cannot be copied with M-Disk. Use other Programs to copy those disks.
  433. M-Disk will warn you whenever it detects an executable boot sector
  434. because this could also be a virus.
  435.  
  436. Copy protected disks
  437. ====================
  438.  
  439. M-Disk cannot copy copy-protected software.
  440.  
  441. Recognise disk changes !
  442. ========================
  443.  
  444. When making backups of your data disk with normal disk copy programs
  445. the boot sector is copied as it is. This results in two 100% identical disks.
  446. The problem now is that the serial number of these two disks is the same.
  447. TOS uses this serial number to detect disk changes.
  448.  
  449. So if you now swap between these two disks TOS does not notice any disk change
  450. and you may get strange results i. e. lots of garbage on your disk. This
  451. may go up to complete data loss.
  452.  
  453. With M-Disk copy this won't happen since every disk gets a new serial number
  454. and so TOS will recognise every disk change correctly.
  455.  
  456. CLEAR_M.PRG
  457. ===========
  458.  
  459. Old TOS Versions (pre 1987) don't clear the _drvbits system variable on reset
  460. time. For proper work with M-Disk, those Systems should have CLEAR_M.PRG
  461. in the AUTO folder of the boot disk. TOS Versions of 1987 and later do not
  462. need this.
  463.  
  464. WARNING:
  465. ========
  466.  
  467. TurboDos had Problems with older M-Disk Versions. Versions >= 3.1 were
  468. not tested with TurboDos but it may eventually work together.
  469. (TurboDos is very buggy so you shouldn't use it anyway.)
  470.  
  471. There's no need to use M-Disk with TurboDos. Use FATSPEED and you will get
  472. TurboDos speed without TurboDos. Since M-Disk Version 5.5 FATSPEED is no 
  473. longer included in this distribution. You can get it from various sources,
  474. but you should better get the TOS 1.4 ROMs of April 6, 1989 (Rainbow TOS)
  475. into your computer.
  476.  
  477. Be sure to always use POOLFIX3.PRG with TOS 1.4 and TOS 1.6 (STE TOS).
  478. This program fixes (or at least tries to fix) the 40-folder bug, that was
  479. fixed and simultaneously re-introduced in TOS 1.4.
  480.  
  481. Disclaimer:
  482. ===========
  483.  
  484. WARNING: I'm using this program every day but I do not make any warranty
  485.          with respect to this documentation and the program it describes.
  486.          I disclaim any implicit/explicit suggestions of usefulness for any
  487.          particular purpose. I will not be responsible for any damages or
  488.          data lossage caused by using this program. If you want to use it
  489.          use it at your own risk.
  490.  
  491. This Program may be used and distributed freely as long as the program is
  492. left unchanged and this documentation goes unchanged with it.
  493. It may not be sold.
  494.  
  495. M-Disk was compiled with the new Lattice C 5.06.01 with a few Assembler
  496. subroutines.
  497.  
  498. For the rare case, that anybody wants to send me a little donation, here's the
  499. place where you can put it:
  500. 'Nr. 2197 04-507' at the 'Postgiroamt Koeln', 'BLZ 370 100 50' (Germany).
  501.  
  502. My adress until the mid of 1991 is:
  503.  
  504.   Christoph Strunk
  505.   Wartburgstr. 10
  506. D-4630 Bochum 7
  507.   (Federal Republic of Germany)
  508.  
  509.  
  510. P.S.: The answer to above exercise is: You will never see it.
  511.  
  512. - End of Document -
  513.