home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / filing / zidepack / Guide < prev    next >
Encoding:
Text File  |  1994-10-03  |  19.8 KB  |  459 lines

  1. ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤                      ==========================
  2. Zeridajh IDEFS 0.90 user guide                       This program is FREEWARE
  3. ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤                      ==========================
  4.  
  5. ----------------
  6. - Introduction -
  7. ----------------
  8.  
  9. Zeridajh IDEFS (ZIDEFS) is a full replacement for the software supplied with
  10. the 'old' Ian Copestake Software IDE disc interface (designed by Stefan
  11. Froehling and Peter Szymanski). Zeridajh IDEFS has been completely written
  12. from scratch and provides numerous small and several big improvements :
  13.  
  14. Support for partitions
  15. ~~~~~~~~~~~~~~~~~~~~~~
  16. ZIDEFS supports up to 4 partitions (or 'virtual drives'). This means that an
  17. IDE harddisc may now hold more than one drive (in the original software only
  18. one drive could be stored on a harddisc).
  19.  
  20. It is immediately important in this respect to understand the difference
  21. between a 'harddisc' and a 'drive' (in the original software they were more or
  22. less synonymous) :
  23.  
  24. + A harddisc is the piece of hardware you can hold in your hand and which can,
  25.   in this day and age, store up to several Gb of data. I.e. it is a hardware
  26.   entity.
  27. + A drive, however, is a software entity, which has, e.g., a number (from 4 to
  28.   7, for 'hard' drives), a name, and an icon on the icon bar (which looks like
  29.   a harddisc) through which it can be accessed from the desktop. A drive
  30.   stores its own file structure and free space map. Each drive's data is
  31.   stored somewhere on one of your harddiscs (and is then also referred to as a
  32.   'partition').
  33.  
  34. As FileCore filing systems (e.g. ADFS, RamFS and also IDEFS) can only access a
  35. maximum of 512Mb per drive, partitioning means that IDE harddiscs over 512Mb
  36. may be fully used, simply by storing 2 or more drives on them (which was not
  37. possible with the original software). There is, however, a maximum total of 4
  38. drives, i.e. the maximum amount of data you can store is 4 x 512Mb = 2Gb
  39. (which could be in the form of 4 drives on only one harddisc if you wanted
  40. to).
  41.  
  42. Partitioning is not only useful for harddiscs over 512Mb in size. It is also
  43. useful for making a clear seperation of your files, e.g. you could store data
  44. files and applications each on their own drive. Also, by using seperate drives
  45. you spread the risk of data loss due to corruption of a drive's free space
  46. map. When you have everything on one drive and its free space map goes bad,
  47. you lose everything on that drive. Having seperate drives spreads your risk
  48. (at the penalty of extra space used for the additional drive's free space
  49. maps).
  50.  
  51. Refer to 'Partitions' for details on how to create partitions.
  52.  
  53. Optimal transfer speeds
  54. ~~~~~~~~~~~~~~~~~~~~~~~
  55. The original software suffered from sub-optimal transfer speeds. There are
  56. speed improvements of roughly 5 to 10% on word-aligned transfers (relatively
  57. more on writes than reads). Non-word-aligned transfers are only very
  58. marginally slower than their word-aligned equivalents (only around 2%), while
  59. in the original software they were very much slower (around twice as slow due
  60. to very simplistic and suboptimal coding).
  61.  
  62. Better drive compatibility
  63. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  64. ZIDEFS has much better IDE driver code. It is compatible with more IDE
  65. harddiscs than the original software and also supports at least some of the
  66. newer drives adhering to the new ATA 2 (or 'Extended IDE', aka EIDE) standard.
  67. ZIDEFS has been made to work with some 'positively gruesome' harddiscs.
  68.  
  69. Optional drive write-protection
  70. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  71. You can write-protect any drive, either by using the appropriate *-commands
  72. (*IDEProtect and *IDEUnprotect) or by setting the 'Options -> Read only'
  73. option in the filer icon bar menu.
  74.  
  75. This option is off by default.
  76.  
  77. Optional transfer address range checks
  78. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  79. There are (optional) checks on address ranges presented to the low level
  80. harddisc transfer routines. This is an extra safety measure against free space
  81. map corruption and the like, which may occur when erroneous transfer address
  82. ranges (inevitably) lead to address exceptions in the middle of write
  83. operations (e.g. leaving the free space map 'half written' and thus corrupting
  84. it, leading to massive data loss).
  85.  
  86. It seems some FS code, in my opinion wrongly, relies on FileCore to always
  87. deliver sane address ranges, although ADFS for example also seems to take the
  88. sensible route and do a check itself before plunging into a disc transfer. The
  89. overhead incurred in a check is totally negligable.
  90.  
  91. Address validation may be switched on/off using the appropriate *-commands
  92. (*IDEValidate and *IDENoValidate) or by setting the 'Options -> Validate'
  93. option in the filer icon bar menu.
  94.  
  95. This option is off by default.
  96.  
  97. Filer supports 'fancy' Free
  98. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  99. The 'fancy' free space indications available in RISCOS 3 (provided by the Free
  100. module) are supported by the new filer.
  101.  
  102. Other differences
  103. ~~~~~~~~~~~~~~~~~
  104. There are major SWI differences between the original software and ZIDEFS. The
  105. SWI numbers are different. Absent are the original software's _FormatTrack and
  106. _IdentDrive SWIs, and support for _DiscOp's 'Write Track' reason code. The
  107. functionality of all of these (only _IdentDrive was actually useful, and then
  108. only occasionally), can be achieved, if needed, by informed use of the new
  109. _Execute SWI. Additional new SWIs in ZIDEFS are _DriveOptions and _DriveInfo
  110. (the latter is only for internal use). For detailed descriptions of the SWIs
  111. refer to the 'Reference' guide.
  112.  
  113. The *IDEPowersave command available in the original software is absent. Any
  114. required power saving features may be achieved by understanding and using the
  115. new _Execute SWI (not all IDE harddiscs have power saving features, indeed
  116. some that don't react adversely to the applicable IDE commands).
  117.  
  118. Every effort has been made to pack all the added functionality of ZIDEFS
  119. into as small a space as possible (not least because the IDE interface podule
  120. can only handle up to 8k EPROMs). So far everything still fits, and there's
  121. some room left, despite the numerous additions.
  122.  
  123. New supporting software
  124. ~~~~~~~~~~~~~~~~~~~~~~~
  125. None of the original supporting software is needed anymore :
  126.  
  127. + For partitioning of harddiscs (which wasn't previously possible), new
  128.   software is supplied. Refer to 'Partitions' for details.
  129. + For drive initialisation, a patch for !HForm (which you can find on the
  130.   RISCOS 3 App2 disc) is available. Refer to 'Initialising drives' for more
  131.   information. !FormatIDE and !HFormIDE no longer work.
  132. + For HD performance testing, if needed, the original !HDTest application may
  133.   be used (ZIDEFS is still compatible with this application).
  134. + The !IDEIdent application no longer works. For harddisc info, you can use
  135.   the supplied 'DeviceID' program.
  136.  
  137. Future plans
  138. ~~~~~~~~~~~~
  139. Extensions I'm (still) thinking of adding to the software are along the lines
  140. of smart data buffering and transparent data compression (a-la MS-DOS 6.00).
  141. Also, support for IDE CD-ROM drives seems interesting. None of these are
  142. particularly trivial however.
  143.  
  144.  
  145. ---------------
  146. - The package -
  147. ---------------
  148.  
  149. There are several files in the ZIDEFS package :
  150.  
  151. 'ZIDEFs'
  152. ~~~~~~~~
  153. Is the FS module. You should not normally run this seperately, it is only
  154. included for reference and special applications. Note that this module assumes
  155. it is loaded from the podule ROM (i.e. it is passed its I/O base in r11). When
  156. loaded from elsewhere, i.e. from disc, it defaults to podule 0. I.e. if your
  157. IDE interface podule is not in slot 0, do *NOT* load this module from disc, as
  158. it will access the wrong podule (with amusing or less amusing effects !).
  159.  
  160. 'ZIDEFiler'
  161. ~~~~~~~~~~~
  162. Is the filer module. Like the FS module, you should not normally run this
  163. seperately. If loaded from disc, in a special application, it should always be
  164. loaded after the ZIDEFs module.
  165.  
  166. 'ZIDERom'
  167. ~~~~~~~~~
  168. Is the ROM image containing the ZIDEFs and ZIDEFiler modules, along with the
  169. necessary extra podule 'loader' code and information. You can blow this file
  170. straight into an 8k '2764' EPROM and use it to replace the original EPROM on
  171. the IDE interface podule. The podule, sadly, cannot access more than 8k of
  172. EPROM address space, but the socket *will* take larger EPROMs (up to 27512,
  173. 64k). If you use a larger EPROM, ensure the ZIDERom data is duplicated at all
  174. 8k boundaries within the EPROM.
  175.  
  176. NOTE !!! Keep the original EPROM in a safe place until you have ZIDEFS up and
  177. running smoothly. You never know.
  178.  
  179. If you cannot blow EPROMs yourself, ask a friend, your local Acorn dealer, or
  180. an electronics shop to do it for you.
  181.  
  182. 'Guide'
  183. ~~~~~~~
  184. Is what you're reading now, the 'user guide'.
  185.  
  186. 'Reference'
  187. ~~~~~~~~~~~
  188. Contains the 'reference guide'. SWI details, error descriptions, etc.,
  189. everything you always wanted to know, but were afraid to ask (and rightfully
  190. so).
  191.  
  192. 'Updates'
  193. ~~~~~~~~~
  194. Contains details of past updates to the code. Read this if you are upgrading
  195. from an older version of ZIDEFS.
  196.  
  197. 'ATBusDocs'
  198. ~~~~~~~~~~~
  199. Contains electronic and protocol specs of the AT bus (aka IDE). Refer to this
  200. for an interesting read and for info on what can be done with the powerful
  201. _Execute SWI. This document is not the latest and most up-to-date (the ones
  202. that are are too big to include in the ZIDEFS package), but will help you on
  203. your way.
  204.  
  205. 'Partition'
  206. ~~~~~~~~~~~
  207. Is a program that enables you to partition your harddiscs. Refer to
  208. 'Partitions' for more information.
  209.  
  210. 'PatchHForm'
  211. ~~~~~~~~~~~~
  212. Is a patch program for RISCOS 3's !HForm application (on the App2 disc), to
  213. enable it to initialise ZIDEFS drives. Refer to 'Initialising drives' for
  214. details.
  215.  
  216. 'DeviceID'
  217. ~~~~~~~~~~
  218. Is a program that can show a harddisc's identification data. It can also save
  219. the data. I would like you to send me a copy of your harddiscs' identification
  220. data if you are running ZIDEFS successfully (also see 'Final remarks').
  221.  
  222.  
  223. --------------
  224. - *-commands -
  225. --------------
  226.  
  227. *Configure and *-commands provided by ZIDEFS are adequately described using
  228. *Help (use *Help IDEFS or *HELP IDEFiler for a list of commands).
  229.  
  230.  
  231. -------------
  232. - The filer -
  233. -------------
  234.  
  235. The workings of the filer should prove to be self-explanatory. Most of it is
  236. similar to what you're used to. Refer to 'Introduction' for details on the
  237. 'Options' submenu (if you haven't read the introduction yet, you really
  238. should ...).
  239.  
  240.  
  241. --------------------------------------
  242. - Cut the crap, how do I get started -
  243. --------------------------------------
  244.  
  245. Ok. The recipe is as follows :
  246.  
  247. - Blow 'ZIDERom' into an 8k EPROM and use it to replace the EPROM on your IDE
  248.   interface podule. See the discussion of 'ZIDERom' ('The package' section)
  249.   if you need more information.
  250. - Configure your system. You will need to read 'Configuring'.
  251. - Partition your harddiscs. Refer to 'Partitions' for this (if you didn't
  252.   already get sent there, which you would've if you'd read 'Configure').
  253. - Initialise your drives. See 'Initialising drives'. Same caveat as before.
  254. - You're there (in case you hadn't figured that out already).
  255.  
  256.  
  257. ---------------
  258. - Configuring -
  259. ---------------
  260.  
  261. Ok, you've got the new EPROM in. Before anything else, ZIDEFS needs to be
  262. configured properly. There are 4 *Configure commands available to do so :
  263.  
  264. *Configure IDEFSDiscs <Discs>
  265. *Configure IDEFSDrives <Drives>
  266. *Configure IDEFSDrive <Drive>
  267. *Configure IDEFSDirCache <Kbytes>[K]
  268.  
  269. If you don't know yet, refer to their corresponding 'help', e.g. *Help
  270. IDEFSDiscs, for information on what configurations these commands set.
  271.  
  272. Proceed as follows :
  273.  
  274. - How many IDE harddiscs have you got attached to the IDE interface podule
  275.   (i.e. 1 or 2). Use *Configure IDEFSDiscs to specify this.
  276. - How many drives/partitions do you want (i.e. 1,2,3 or 4, see 'Partitions'
  277.   for more information). Use *Configure IDEFSDrives to specify this.
  278. - What drive should be the default IDEFS drive. Use *Configure IDEFSDrive to
  279.   set this. 4 is nearly always the setting to use.
  280. - How much directory cache should be used for IDEFS drives. 8k is a default
  281.   value. 16 or more is recommended. Don't overdo it though, it eats up your
  282.   RMA space.
  283. - Now HARD-RESET YOUR COMPUTER (CTRL-BREAK or CTRL-RESET) to let the
  284.   configurations take effect. You needn't worry about partitions not being
  285.   defined or drives not being initialised yet. ZIDEFS is intelligent in
  286.   dealing with this.
  287. - Now go on and create your partitions (see 'Partitions').
  288.  
  289.  
  290. --------------
  291. - Partitions -
  292. --------------
  293.  
  294. Now you've properly configured ZIDEFS, you either have :
  295.  
  296. - As many drives as you have harddiscs (i.e. the *Configure IDEFSDiscs and
  297.   *Configure IDEFSDrives settings are the same). This means you don't have to
  298.   define any partitions, because in this situation, each harddisc is
  299.   automatically 'fully occupied' by a single drive (drive 4 is on your master
  300.   harddisc, and drive 5, if present, is on your slave harddisc). So you can
  301.   skip the rest of this section and go directly to 'Initialising drives'.
  302. - Or you have configured more drives than harddiscs. In this case you need to
  303.   specify where on your harddiscs your drives are to be stored. Read on.
  304.  
  305. The 'Partition' program enables these partitions to be defined. Run it.
  306.  
  307. Some details on your harddiscs will be shown, and, if any old partition table
  308. is found, its details are displayed for your reference. You are then asked if
  309. you want to change the partition table. Press Y.
  310.  
  311. Every harddisc has a size (the harddisc info at the top of your screen shows
  312. this). This space is to be divided between your partitions. You are now asked,
  313. for each configured drive, in ascending order (starting with drive 4), on
  314. which harddisc you want the drive to be stored, and how large it should be (in
  315. Mbytes), so :
  316.  
  317. - Enter the harddisc on which the drive is to be stored.
  318. - Now if you want just that one drive on the specified harddisc, enter the
  319.   full harddisc size.
  320. - If, instead, you want more than one drive on a harddisc, enter the required
  321.   size. The program remembers how much space is left on each harddisc after
  322.   the allocations already made and won't allow you to speficy more.
  323.   
  324. Do not worry about the number of Mb's sometimes being 1 smaller than expected.
  325. This occurs because the actual partitioning is by harddisc cylinder counts,
  326. not by size in Mbytes. The program always ensures that your harddiscs are
  327. fully used, up to the last byte, if you fully divide their space between your
  328. partitions (i.e. you enter the full amount of 'Mbs left' given for the last
  329. drive you store on a harddisc).
  330.  
  331. Finally, you are asked if you want to write the new partition table. Press Y.
  332. If you are unsure, or if you've made some kind of mistake, press N and the
  333. existing partition table (if any) will not be overwritten. It is not harmful
  334. in any way to inadvertently write an incorrect new partition table, simply
  335. re-run the program and do it right. You can also press Escape at any point in
  336. the program, which will cleanly terminate the program.
  337.  
  338. Now you have defined your partitions and have written the partition table,
  339. again HARD-RESET YOUR COMPUTER (CTRL-BREAK or CTRL-RESET). ZIDEFS will now
  340. know everything about your drives it needs to know, and you can proceed to
  341. initialise them for use unser RISCOS.
  342.  
  343. Proceed to 'Initialising Drives'.
  344.  
  345.  
  346. -----------------------
  347. - Initialising drives -
  348. -----------------------
  349.  
  350. Now you have properly configured ZIDEFS and have defined your partitions, you
  351. can initialise your drives.
  352.  
  353. With the original software, you used one of the supplied !FormatIDE or
  354. !HFormIDE applications. These can no longer be used with the new software.
  355. Instead, a patch for !HForm (on the RISCOS 3 App2 disc) is supplied :
  356.  
  357. - Make a copy of !HForm
  358. - Rename !HForm's !RunImage to !RunImage0
  359. - Copy the 'PatchHForm' program to the !HForm directory
  360. - Set the current directory to !HForm
  361. - Run 'PatchHForm'
  362.  
  363. If all is well, you now have a patched !HForm. NOW STRICTLY FOLLOW THESE
  364. INSTRUCTIONS (note that the patched !HForm has not been patched for anything
  365. else except to initialise your ZIDEFS drives !) :
  366.  
  367. - Run !HForm. Ignore any references to 'ADFS' that you are going to see.
  368. - You will first be asked 'Format which drive (4 - 7) ?'. Enter the drive you
  369.   wish to initialise.
  370. - Drive information will now be presented. Note that the number of cylinders
  371.   shown will not necessarily be the same as the actual harddisc's cylinder
  372.   count. This is because the number of cylinders shown is the actual size of
  373.   the partition, not the harddisc.
  374. - If you get 'Do you wish to retain this shape ?', say NO (unless you're lazy
  375.   and you're sure it is correct (it then should exactly match the drive info
  376.   given directly above it)).
  377. - 'Which make of harddisc (1 to 4) ?'. Always choose 4 (Other).
  378. - 'Sectors per track ?'. Enter the number given behind 'Configuration :' at
  379.   the top of your screen, if it's not already given as the default.
  380. - Idem with 'Heads ?'.
  381. - Idem with 'Cylinders ?'.
  382. - 'Drive parameter init flag'. Choose default, or whatever you want. Its
  383.   setting is ignored by ZIDEFS.
  384. - 'Parking cylinder ?'. Choose default, or whatever you want. It's an
  385.   irrelevant setting.
  386. - You are now asked to enter defects. Always directly choose A (no more
  387.   defects). This is because defects on IDE discs are handled by the IDE
  388.   harddiscs themselves. Any extra defects occuring in an IDE harddisc's
  389.   lifetime (if you're unlucky enough to get them) should always be mapped out
  390.   using the *Defect command.
  391. - Selected parameters are now displayed. Check and double-check.
  392. - 'Format or just initialise the drive (F/I) ?'. Always choose I. NEVER choose
  393.   F, formatting is useless for IDE harddiscs, and !HForm isn't patched up to
  394.   do so.
  395. - 'Soak test the hard disc for defects (Long/Short/None) ?'. Always choose N.
  396. - 'Are you sure you want to do this to drive ADFS:<drive> (Y/N) ?'. Choose Y.
  397. - 'Large file allocation unit ?'. Choose default, or, if you know what they're
  398.   talking about and you need another setting, choose your own.
  399. - !HForm should now proceed to initialise the drive and exit without errors.
  400.  
  401. Once you've initialised all your drives this way, reset your computer again
  402. and you're ready to rock 'n roll !
  403.  
  404.  
  405. -----------------
  406. - Final remarks -
  407. -----------------
  408.  
  409. This software is Freeware. It may be copied freely, as long as it is not
  410. charged for beyond coverage of incurred media and moderate handling costs, and
  411. is copied completely and unchanged. All rights to this software remain the
  412. author's at all times. You may not change this software or use any part of it
  413. in other products without the author's approval.
  414.  
  415. This software is provided 'as is'. It is not guaranteed to be useful for any
  416. particular purpose. I cannot be held responsible for any damages, either
  417. direct or consequential, arising out of the use or the inability to use this
  418. software.
  419.  
  420. ZIDEFS has been developed and tested using several harddiscs, and I have been
  421. running it happily myself since its first version, which appeared around 2
  422. years ago.
  423.  
  424. If you want to contact the author, e.g. for any comments or bug reports you
  425. might like to make, or to obtain the latest version of the software, you are
  426. welcome to do so. Details are included below, please read them carefully.
  427.  
  428. NOTE : If you are successful in running ZIDEFS, please send me a copy of your
  429. harddiscs' identification data. Use the 'DeviceID' program for this. This is
  430. because I'd like to know the IDE harddisc types that ZIDEFS runs successfully.
  431. Please also send this along with any bug reports or other correspondence, if
  432. at all possible.
  433.  
  434. Snail mail
  435. ~~~~~~~~~~
  436. John Kortink
  437. Nutterbrink 31
  438. 7544 WJ Enschede
  439. The Netherlands
  440.  
  441. Please include an SAE, coverage of return postage, and, if you want a new
  442. version of the software, a floppy disc. If any of these are missing, I may
  443. choose not to reply. Examples of postage coverage : sufficient Dutch stamps,
  444. IRC's, or small cash (e.g. £1). Never send any type of cheque. If you send a
  445. floppy disc, send a DD one, as I cannot yet handle HD discs on my Archimedes.
  446.  
  447. Please note I cannot hold on to floppy discs awaiting new versions of the
  448. software, i.e. always first check with me that there is a new version.
  449.  
  450. Email
  451. ~~~~~
  452. J.Kortink@inter.NL.net
  453. john@dialis.hacktic.nl
  454. FIDO 2:283/307.7
  455.  
  456. Email is preferred over snail mail.
  457.  
  458.  
  459.