home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / diskutil / amos / amos.doc next >
Text File  |  1993-12-07  |  18KB  |  387 lines

  1.  
  2.                AA      MM       MM    OOOO      SSSS
  3.               AAAA     MMMM   MMMM   OO  OO    SS  SS
  4.             AA    AA   MM MMMMM MM  OO    OO  SS    SS
  5.             AA    AA   MM  MMM  MM  OO    OO  SS
  6.             AA    AA   MM   M   MM  OO    OO   SSS
  7.             AAAAAAAA   MM   M   MM  OO    OO      SSS
  8.             AA    AA   MM       MM  OO    OO  SS    SS
  9.             AA    AA   MM       MM   OO  OO    SS  SS
  10.             AA    AA   MM       MM    OOOO      SSSS       v1.01 (Build 3)
  11.  
  12. About this document
  13. ───────────────────
  14.  
  15. This document is structured into several parts.  First, a brief introduction
  16. of the program AMOS, followed by boring but necessary licensing information
  17. and legal stuff.  After this, the interesting stuff begins: The user's guide.
  18. Actually, I don't think that very much of this is needed, since I assume that
  19. you are familiar with the command prompts of DOS and OS/2.
  20. At the end of the document, I elaborate on the subject of future releases of
  21. AMOS.
  22.  
  23. Please refer to CONTENTS.TXT for a complete list of the files contained as
  24. a part of the AMOS archive.
  25.  
  26. What is AMOS?
  27. ─────────────
  28.  
  29. Short version:
  30. --------------
  31. AMOS is a DOS-program, that enables you to read and write your HPFS-formatted
  32. drive from native DOS.
  33.  
  34. Long version:
  35. -------------
  36. AMOS is a DOS program for OS/2 users.  For the program to have any value, you
  37. need to run an OS/2 system with at least one drive formatted with the HPFS
  38. file system.
  39. The HPFS file system is IBM's shot at a file system, the purpose of which is
  40. to replace the FAT file system, which is outdated, slow and gives only a small
  41. degree of data security.
  42. In spite of all the good things about HPFS, it has at least one major drawback:
  43. HPFS drives cannot be read or written from "real" DOS.  Normally, this is no
  44. problem, since OS/2 takes care of all HPFS handling and maintenance.  But in
  45. some situations, it would be very nice indeed to have at least some degree of
  46. access to your HPFS-drives from real DOS...
  47.  
  48. For example:
  49.  * You wish to install a patch for OS/2.  This normally requires that you
  50.    reboot the machine, using the two first discs of OS/2.  Using AMOS, you
  51.    simply boot DOS, either using a boot disc or Dual Boot/Boot Manager.
  52.  * You have made an error in OS/2's CONFIG.SYS.  Sometimes, OS/2 simply halts
  53.    the system with the annoying message "Please correct the error and restart
  54.    the system".  Without AMOS, you once again have to go through the tedious
  55.    process of booting the two floppies, after which you discover that IBM has
  56.    forgotten to supply a text-mode editor with OS/2.
  57.  * You accidentialy deleted an important HPFS-partition using FDISK.  Even if
  58.    you immediately re-establish the partition, OS/2 cannot read data from the
  59.    partition.  AMOS can.
  60.  * Something has gone terribly wrong, and you simply cannot make OS/2 boot.
  61.    All of your data reside on an inaccessible HPFS-drive, and you cannot get
  62.    them away from your HPFS-drive.  Use AMOS!
  63.  * You simply want to play the newest DOS-game, a game that of course uses
  64.    VCPI or some other weird DOS-extender that OS/2 doesn't like.  Just start
  65.    AMOS, and copy the desired files from your HPFS-drives to your FAT gaming
  66.    partition...
  67.  
  68. Benefits of registering
  69. ───────────────────────
  70.  
  71. The unregistered version of AMOS can read your HPFS-drives, but can not make
  72. any changes on them.  By registering, you get access to write functions for
  73. HPFS-drives as well.
  74. Most important, when you register, you can EDIT your CONFIG.SYS, even if it
  75. is located on a HPFS-drive.
  76. Further, the unregistered version has a delay of 20 seconds when you start it
  77. up.  In the registered version, this delay is removed.
  78.  
  79. Last, but not least, registering makes me keep the spirits high.  If nobody 
  80. registers, development of AMOS will of course cease...
  81.  
  82.  
  83. Information to crackers
  84. ───────────────────────
  85.  
  86. Most, if not all shareware utilities on the market today, are being "cracked"
  87. by some wise guys who do not wish to pay for their software.
  88. * Do NOT try to patch AMOS - it's unique protection scheme makes patching
  89.   impossible, and endangers data on your hard drives.
  90. * Do NOT try to alter AMOS.EXE in any way; AMOS will probably detect this, and
  91.   abort with an error message.
  92. * Do NOT distribute any altered versions of AMOS.  When an unsuspecting user
  93.   tries to register an altered version, AMOS refuses to register.  If you
  94.   have only a cracked version of AMOS, you can always get the newest version
  95.   by download from the BBS, or by file requesting AMOS from the below
  96.   mentioned system.
  97.  
  98.  
  99. For you who do not register shareware
  100. ─────────────────────────────────────
  101.  
  102. Put AMOS on an accessible FAT-drive.  Just in case - you probably don't need
  103. AMOS until you find that the registration form lies on your dead HPFS-drive.
  104.  
  105.  
  106. Disclaimer and legal matters
  107. ────────────────────────────
  108.  
  109. The AMOS software and documentation is subject to the following licensing
  110. terms and conditions.
  111.  
  112. * AMOS is supplied as is. The author disclaims all warranties,
  113.   expressed or implied, including, without limitation, the warranties
  114.   of merchantability and of fitness for any purpose. The author
  115.   assumes no liability for damages, direct or consequential, which may
  116.   result from the use of the AMOS software.
  117.  
  118. * AMOS is distributed as a "shareware program" and is provided at
  119.   no charge to the user for evaluation for a period not extending 30
  120.   days, after which You are required to register. Feel free to share
  121.   it with your friends, but please do not give it away altered or as
  122.   part of another system. The essence of "user-supported" software is
  123.   to provide personal computer users with quality software without
  124.   high prices, and yet to provide incentive for programmers to
  125.   continue to develop new products.
  126.  
  127. * The AMOS distribution package, all programs, the documentation
  128.   and support files are copyrighted 1993 by Allan Mertner. All
  129.   rights are reserved. You may copy this package for backup purposes.
  130.   You may also copy and share unmodified copies of the whole
  131.   distribution package, providing that the copyright notice is
  132.   reproduced and included on all copies.
  133.  
  134. * You may not sell the product for a fee and/or distribute the product
  135.   along with other products without written permission, nor may you
  136.   modify or remove the Copyright Notices from the programs or the
  137.   documentation files. User clubs, if they are NOT commercial, are
  138.   allowed to ask a small amount of money for distribution and storage
  139.   when they want to share this package amongst their members.
  140.  
  141. * It is expressively forbidden to modify, adapt, translate, reverse
  142.   engineer, decompile and/or disassemble the software in the AMOS
  143.   package. Patching the medium at places that carry the software is
  144.   seen as a program change and is also forbidden.
  145.  
  146. * The registered software is licensed to run in conjunction with one
  147.   user only.
  148.  
  149.  
  150. AMOS user's guide
  151. ─────────────────
  152.  
  153. Basically, AMOS is a simple command shell.   When you first start it, you get
  154. a command prompt that looks like the OS/2 prompt, and should look something
  155. like this:
  156.  
  157. [C:\]_
  158.  
  159. Sometime in the future, it is my plan to make AMOS a device driver, which
  160. simply mounts your HPFS-drives for use with DOS.  Sometime in the future :-)
  161.  
  162. Do NOT try to make any write operations using AMOS in an OS/2 DOS box.  OS/2
  163. does not permit direct sector writes from DOS-boxes (Reports "Unknown
  164. function", which I find rather cute).  If you do try, AMOS will kindly
  165. remind you that writes in DOS-boxes is not possible.
  166. All other functions do perform very well in DOS-boxes, though.
  167.  
  168. For now, just use your normal DOS and OS/2 commands.  DIR works. COPY, DEL
  169. and TYPE do as well.  With OS/2 wildcards.  Even EDIT works, given that the
  170. file you wish to edit is no larger than 30k (I made this primarily for
  171. CONFIG.SYS-editing).  Try it out.  If in doubt, try it anyway :-)
  172.  
  173. For a complete list of all commands, switches, and functions, please refer to
  174. the list below.
  175.  
  176. Syntax          Description
  177. CD <Arg>        Change Directory.  Changes the current directory to Arg, if
  178.                 this is a valid directory.
  179.                 Example: CD \TEST
  180.  
  181. CLS             Clears the screen
  182.  
  183. COPY <A1 A2>    Copies the file(s) A1 to the directory A2.  It is possible to
  184.                 copy more than one file using wildcards, but it is NOT
  185.                 possible to copy to new filenames.  With COPY, the /n-switch
  186.                 is valid, and reverses the file-selection.
  187.                 Example: COPY *.EXE C:\TEST  copies all EXE-files to C:\TEST
  188.                          COPY *.TXT C:\ /n   copies all but TXT-files to C:\
  189.  
  190. DATE            Shows current date in an editable format.  I really don't know
  191.                 why you should use this feature, but it was easy to implement.
  192.  
  193. DIR <Arg>       Displays a listing of files and directories.  As in OS/2, you
  194.                 can specify a directory and/or wildcards as argument.  DIR
  195.                 accepts some switches as well:
  196.                 /s  lists all subdirectories as well
  197.                 /n  reverses the selection
  198.                 /p  pauses the listing when the screen is full
  199.                 /d  shows directories only
  200.                 /f  show fragmentation information (HPFS-volumes only)
  201.                 Example: DIR *.EXE      shows all EXE-files in current dir
  202.                          DIR *.EXE /n   shows all but EXE-files
  203.                          DIR /d /n      shows all files, and no directories
  204.                          DIR /f         shows all files, including fragmen-
  205.                                         tation information
  206.  
  207. DEL <Arg>       Deletes files specified as argument.  Wildcards valid.  Please
  208.                 note, that AMOS asks for *NO* confirmation, even if you write
  209.                 "DEL *"!
  210.                 If you write DEL name, where name is a directory, all files in
  211.                 that directory will be erased.
  212.                 You can use /n with DEL to reverse file selections.
  213.                 Example: DEL *.EXE        Remove all EXE-files
  214.                          DEL C:\*.EXE /n  Remove all but EXE-files on C:\
  215.  
  216. EDIT <Arg>      Starts the internal textfile-editor on the file specified as
  217.                 argument.  The editor is a simple fullscreen editor, with only
  218.                 the most basic of editing functions - enough for CONFIG.SYS.
  219.                 It is not possible to create a new file using EDIT - you can
  220.                 only edit existing files.
  221.                 Editor keys:
  222.                 ESC          Exits the editor
  223.                 Cursor keys  Moves the cursor around the screen :)
  224.                 PgUp         Advance one page
  225.                 PgDn         One page back
  226.                 Home         Go to start of line
  227.                 End          Go to end of line
  228.                 Ctrl-PgUp    Goes to top of file
  229.                 Ctrl-PgDn    Goes to end of file
  230.                 Ctrl-Left    Word left
  231.                 Ctrl-Right   Word right
  232.  
  233. EXIT            Exits from AMOS to DOS.
  234.  
  235. FREE <D:> <Lvl> Shows a freespace map of the current drive.  Using this
  236.                 feature, you can get an overview of the level of freespace
  237.                 fragmentation on the drive.
  238.                 From version 1.01, this feature also works for FAT drives.
  239.                 The first argument is the desired drive-letter; the second is
  240.                 an inverse magnification factor M between 0 and 10.
  241.                 When using an M-factor of 0, one character in the map
  242.                 represents 8 sectors on the disc, when M=1, one character
  243.                 equals 16 sectors, etc.  When M=10, information on 8192
  244.                 sectors are represented in one character.
  245.                 If you supply no parameter, AMOS will prompt you for a
  246.                 magnification factor.
  247.                 Example: FREE D: 4
  248.                          FREE 2
  249.  
  250. HELP            Shows a short description of all available commands.
  251.  
  252. MAP             Shows a listing of all partitions.  The list includes the
  253.                 type of each drive, current directory, total drive space and
  254.                 free space.  For HPFS drives, the time of the last CHKDSK
  255.                 operation is noted as well.
  256.                 Example: MAP on my machine gives the following output:
  257.                 Drive  Size/kB    Free/kB   Type      Last CHKDSK /F
  258.                 C:\    118,668     75,420   BIGDOS      n/a for FAT
  259.                 D:\    160,618     36,086   HPFS      11-11-93  15.35
  260.                 E:\  1,349,428     74,897   HPFS      11-11-93  15.36
  261.                 F:\    208,813     51,681   HPFS      11-11-93  15.39
  262.  
  263. RD <Arg>        Removes the directory <Arg>, if <Arg> is a valid, empty
  264.                 directory.
  265.                 Example: RD C:\DOS
  266.                          RD TEST
  267.  
  268. TOUCH <Arg>     Sets the file date and time for all files and directories
  269.                 matched by <Arg> to current time.
  270.                 Switches to use with TOUCH:
  271.                 /n  Reverses the file-selection
  272.                 /d  Selects directories only
  273.  
  274. TREE <Arg>      Shows a list of all directories from and below <Arg>. Abort
  275.                 by pressing <ESC>.
  276.                 Example: TREE F:\WORK results in the following output:
  277.                 F:\WORK
  278.                 F:\WORK\123
  279.                 F:\WORK\WP5
  280.                 F:\WORK\PASCAL
  281.  
  282. TIME            Shows current time in an editable format.  Allows you to
  283.                 change system time...
  284.  
  285. TYPE <Arg>      Types all files matching <Arg> to the screen.  Use with
  286.                 textfiles only, since all other files would look weird on
  287.                 the display.  Abort listing by pressing <ESC>.
  288.                 Example: TYPE C:\*CON* makes AMOS type both CONFIG.SYS,
  289.                 CONFIG.BAK and TESTCON.EXE on drive C:\.
  290.  
  291. WIPE            Wipes all free sectors on the disc, writing HPFSWipe in all
  292.                 unoccupied bytes.  I use this primarily for test reasons, but
  293.                 is quite useful for data security.
  294.                 WIPE functions only on HPFS drives, and only in the registered
  295.                 version.
  296.  
  297. Quirks in AMOS
  298. ──────────────
  299.  
  300. * Freespace
  301.   On FAT drives, AMOS asks DOS how much space is free, so I suppose that no
  302.   errors should occur here.  On HPFS-drives, I have been unable to find out
  303.   how much available space there is.
  304.   However, I do have a method of finding out which sectors are occupied and
  305.   which are not, so I simply count these.  Oddly enough, this gives a number
  306.   a bit higher than the one OS/2 reports, but since I seem to be able to make
  307.   sensible use of everything I find, I haven't tried to adjust my freespace
  308.   figure to the one OS/2 reports.
  309.  
  310. * Many files
  311.   Problems may occur when reading or writing huge directories - by huge I mean
  312.   dir's with more than 4000 files!
  313.  
  314. * Low on discspace
  315.   Beware of low discspace!  Since AMOS reports every single free byte on the
  316.   disc, COPYing files that only just fit may result in an error.  HPFS uses
  317.   heaps of information on every file, meaning that each file has a slight
  318.   overhead in disc space consumption.  COPYing a 4 byte file typically
  319.   uses 1024 bytes or even more!
  320.  
  321. * Memory problems
  322.   Since AMOS uses low DOS RAM only, you may sometimes run into memory errors.
  323.   Whenever this happens, AMOS terminates with a Runtime error (Ydrk, this
  324.   will be corrected in the next release), with the number 202 or 203.
  325.  
  326. * Legal characters in file/dir-names
  327.   No checking of valid filenames is performed.  Thus, you could create a
  328.   directory named "/!' !..," and AMOS wouldn't complain.
  329.   OS/2 will, though - be sure of that!
  330.  
  331. * Trouble accessing files with spaces in the name
  332.   Setting "'s around filenames in is not supported in AMOS.  Thus, you
  333.   cannot COPY such files as easily as under OS/2.  It _is_ possible, though:
  334.   COPY F:HELLO MATE
  335.   copies the file "HELLO MATE" from drive F: to the current drive.
  336.   
  337.  
  338. Future releases of AMOS
  339. ───────────────────────
  340.  
  341. At the moment, I have the following plans for AMOS releases.  A total lack of
  342. registrations probably cancels the plan, though.
  343.  
  344. 1st Quarter 1994: AMOS v1.1.
  345.         This will be a bugfixed version, with some or all of the above
  346.         problems removed.  Bugs reported by users will be included as well,
  347.         whenever possible.
  348.         Hopefully, it will also feature a FAT to HPFS format converter, but
  349.         I am having trouble making it function on all harddiscs...
  350.         If I find the time, I will try to incorporate some extra features too.
  351.         Upgrading registered versions of AMOS to 1.1 is free of charge (*)
  352.  
  353. 2nd Quarter 1994: AMOS v1.2
  354.         I suspect that AMOS v1.2 will be another bugfix-release.  HPFS is a
  355.         very complicated file system, and it is unavoidable that some errors
  356.         exist in the program.
  357.         By the time of this release, basic error correction, a sector editor,
  358.         a better editor and the like should be included.
  359.         Upgrade to v1.2 is free of charge (*)
  360.  
  361. Sometime in the future, probably 1994: AMOS v2.0
  362.         The ultimate goal of AMOS is to make it a DOS device driver, simply
  363.         mounting existing HPFS volumes for normal use from DOS.  AMOS v2.0
  364.         is a device-driver for DOS, implementing the features of AMOS v1.2.
  365.         Upgrade from previous versions will be around one third of the normal
  366.         registration price.
  367.  
  368.  
  369. (*) Upgrading a registered version requires a new keyfile to be sent.  Only
  370.     a small fee for postage is required.
  371.  
  372.  
  373. Registration site information
  374. ─────────────────────────────
  375.  
  376. Allan Mertner
  377. Enghavevej 20A, 2tv
  378. DK-1674 K¢benhavn V
  379. Denmark
  380.  
  381. 2:234/107@FidoNet, 81:445/14@OS2Net
  382.  
  383. BBS 1:  +45-3325-7322 (ZyXEL 19k2 / v32bis)
  384. BBS 2:  +45-3325-7321 (v32bis)
  385. BBS 3:  +45-3325-7320 (HST 16k8 / v22bis)
  386.  
  387.