home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / reference / amiga_mail_vol1 / dos / harddisk < prev    next >
Text File  |  1990-01-26  |  11KB  |  272 lines

  1. (c)  Copyright 1989 Commodore-Amiga, Inc.   All rights reserved.
  2. The information contained herein is subject to change without notice, and 
  3. is provided "as is" without warranty of any kind, either expressed or implied.  
  4. The entire risk as to the use of this information is assumed by the user.
  5.  
  6.  
  7.  
  8.  
  9.                            Setting Up Your Hard
  10.                           Disk for Workbench 1.3
  11.                                  Part I
  12.  
  13.                              by Bill Koester
  14.  
  15.  
  16.  
  17. Adopting a Standard
  18. -------------------
  19.  
  20. As a V1.3 Workbench tester I had to update my hard drives many times to keep
  21. up with the latest pre-release version of Workbench.  I found that hard 
  22. disk set-up can be a tedious job.  In this article I will suggest some 
  23. standard ways of partitioning the hard disks and setting up the system 
  24. software to make this chore less difficult.  Part II will cover the 
  25. installation of commercial applications and PD software on Amiga hard disks.
  26.  
  27.  
  28. The Basics
  29. ----------
  30.  
  31. For both the 2090 and 2090A auto-boot controller, the basic set up procedure 
  32. is the same.  The first step is to set up the hardware.  Plug in your 2090 or 
  33. 2090A controller, run the cables to your drive and apply power.  Remember to
  34. set the drive unit number to 1. 
  35.  
  36. Next, boot the 2000 with a copy of 1.3 Workbench.  When Workbench has booted
  37. insert the 2090(A) software disk, open the disk icon, and double-click on the 
  38. HDInstall program.  HDInstall will work some magic by adding some entries 
  39. to your mountlist file, adding the HDisk.device to your expansion drawer 
  40. and then asking you if you want to procede with prepping your drive.
  41.  
  42. Press Y and prep will run.  You should have the documentation for your 
  43. particular hard drive handy.  Prep will ask you what type of drive
  44. you have ST506, SCSI or user defined.  Give the appropriate response. 
  45.  
  46. I recommend you make two partitions on your hard disk.  Follow the 2090 
  47. manual for prepping your first partition.  When prep asks you what the 
  48. last cylinder used by the first partition is, answer 9.  This will make a
  49. small 50-150K partition for dh0:.  You should make the dh0: partiton small 
  50. so that you can use the rest of your drive as a Fast Filing System partition.
  51. FFS is a replacement file handler that provides superior hard disk 
  52. performance under AmigaDOS.
  53.  
  54. Prep ends by telling you to re-boot the Amiga.  If prep appears to hang, you
  55. probably have a hardware problem.  Check your cable connections or try 
  56. re-seating the 2090 in the expansion slot.  You can also try re-seating the
  57. chips on the 2090 board.
  58.  
  59. If prep asks you to re-boot, your hardware is OK.  Re-boot by holding down
  60. CTRL and the two Amiga keys at the same time.  Leave your copy of Workbench 
  61. 1.3 in the boot drive.
  62.  
  63.  
  64.  
  65.  
  66. After the system has re-booted, you can format the dh0: partition by giving 
  67. the format command at the CLI prompt:
  68.  
  69.    format drive dh0: name DH0 noicons
  70.  
  71. The old filing system partition, dh0:, is now ready for use.
  72.  
  73. The next step is to setup the rest of the harddrive as an FFS partition.
  74. Edit your devs:mountlist file and search for the FAST: entry.  This entry
  75. should show the correct number of heads for your hard drive.  The name to use 
  76. is up to you.  I use FHx: for fast filing system drives.
  77.  
  78. Next, edit the first and last cylinder fields.  The first cylinder of your 
  79. fast partition should be 10 if you set up dh0: to end at 9 as suggested above.
  80. The last cylinder of the fast partition should be set to the last cylinder 
  81. your drive can support, or one less than that if you selected auto head 
  82. parking.  Save the new mountlist and return to the CLI.  Now type the command:
  83.  
  84.    mount fh0:
  85.  
  86. to mount the fast partition and format it with:
  87.  
  88.    format drive fh0: name FH0 ffs noicons
  89.  
  90. For more detail on the prepping, mounting and formatting procedures see 
  91. your 2090 or 2090A hard disk controller manual.
  92.  
  93.  
  94.  
  95.  
  96. Adding System Software to Your Hard Drive
  97. -----------------------------------------
  98.  
  99. Now that the hardware is all set up, you can start adding files.  Insert the 
  100. Extras 1.3 MASTER disk and enter the command:
  101.  
  102.    Copy df0: fh0: all
  103.  
  104. then insert the Workbench 1.3 MASTER (not the boot disk you just made) and
  105. type the same line.
  106.  
  107.    Copy df0: fh0: all
  108.  
  109. Now all your Amiga system software is on the fast filing system partition
  110. where you can access it with maximum speed.  The next step is to edit the
  111. startup-sequence of your boot disk.  The idea here is to quickly transfer 
  112. control from the boot floppy to the fast partition in order to minimize
  113. boot time.  Edit the startup-sequence on your boot disk so that it looks 
  114. exactly like this but without the comments:
  115.  
  116.  
  117.    c:SetPatch >NIL:        ;patch system functions
  118.    Sys:System/FastMemFirst ; move C00000 memory to last in list
  119.    BindDrivers             ; This makes the hard drive available
  120.    mount fh0:              ; mount our FFS partition
  121.    assign sys: fh0:        ; Transfer all logical assignments to fh0:
  122.    assign c: sys:c
  123.    assign l: sys:l
  124.    assign s: sys:s
  125.    assign devs: sys:devs
  126.    assign libs: sys:libs
  127.    assign fonts: sys:fonts
  128.    execute s:startup-sequence ; Since S: now points to fh0:s , you can execute
  129.                               ; s:startup-sequence here and the system will
  130.                               ; act as if it was booted from fh0:.
  131.  
  132. Now the real test: re-boot the system with the new boot floppy you have
  133. created.  The system will appear to boot from fh0:.  If you have the 2090A
  134. controller, the boot sequence is a little different.
  135.  
  136.  
  137. The 2090A and Auto-Boot Controllers
  138. -----------------------------------
  139.  
  140. With the 2090A controller, you can auto-boot from hard disk.  The only problem
  141. is that the auto-boot protocol passes control to the first partition on the 
  142. hard disk dh0:, but you want to boot from fh0: the fast partition.  You can 
  143. solve this problem by using the same technique used above to pass startup 
  144. control from floppy to hard disk.  To do this, make the following six 
  145. directories in the root of dh0:
  146.  
  147.    S        DEVS
  148.    L        LIBS
  149.    C        FONTS
  150.  
  151. From your boot disk copy the following files to dh0:
  152.  
  153.    C:       assign         cd
  154.             setpatch       execute
  155.             mount          run
  156.  
  157.    system/  FastMemFirst
  158.  
  159.    l:       FastFileSystem 
  160.             Disk-Validator
  161.  
  162.    libs:    icon.library   diskfont.library
  163.             info.library   version.library
  164.  
  165.    devs:    mountlist      system-configuration
  166.  
  167.    s:       startup-sequence
  168.  
  169. The startup-sequence should be the same as the one listed above.  Using 
  170. this method, your auto-boot hard disk will come up quickly and 
  171. automatically pass control to the large fast filing system partition. 
  172.  
  173.  
  174.  
  175. Upgrading from the 2090 to the 2090A
  176. ------------------------------------
  177.  
  178. I have my floppy boot disk set up to transfer control direct from df0: to 
  179. fh0:.  In addition, I have a small dh0: partition which will also transfer
  180. control direct to fh0:.  If you do this, then upgrading to an auto-boot 
  181. controller is as easy as plugging it in and throwing away the boot floppy 
  182. since dh0: will already be set up.  This method also lets you keep an extra
  183. copy of the fh0: mounting information on the hard disk so you don't have 
  184. to worry about some floppy that can be lost or go bad.
  185.  
  186. Here are the startup-sequences to use to make your system work with both the
  187. 2090 and 2090A auto-boot controller:
  188.  
  189.    DF0:S/Startup-Sequence
  190.  
  191.     c:SetPatch >NIL:        ;patch system functions
  192.     Sys:System/FastMemFirst ; move C00000 memory to last in list
  193.     BindDrivers             ; This makes the hard drive available
  194.     mount fh0:              ; This mounts the fast partition.
  195.     assign sys: fh0:        ; Transfer all logical assignments to fh0:
  196.     assign c: sys:c
  197.     assign l: sys:l
  198.     assign s: sys:s
  199.     assign devs: sys:devs
  200.     assign libs: sys:libs
  201.     assign fonts: sys:fonts
  202.     execute s:startup-sequence ; Since S: now points to dh0:s you can execute
  203.                                ; s:startup-sequence and the Amiga will act as
  204.                                ; if it was booted from dh0:.
  205.  
  206.    dh0:S/Startup-sequence
  207.  
  208.     c:SetPatch >NIL:        ; patch system functions (Can be run twice)
  209.     Sys:System/FastMemFirst ; move C00000 memory to last in list
  210.                             ; We are on the harddrive so binddrivers is not
  211.                             ; needed.
  212.     mount fh0:              ; mount our FFS partition
  213.                             ; Mount fh0: from dh0:devs/mountlist and not
  214.                             ; df0:devs/mountlist. This keeps the partition
  215.                             ; information on the harddrive where it won't
  216.                             ; get lost.
  217.     assign sys: fh0:        ; Transfer all logical assignments to fh0:
  218.     assign c: sys:c
  219.     assign l: sys:l
  220.     assign s: sys:s
  221.     assign devs: sys:devs
  222.     assign libs: sys:libs
  223.     assign fonts: sys:fonts
  224.     execute s:startup-sequence ; Since S: now points to fh0:s, control passes
  225.                                ; to the startup-sequence script on fh0:
  226.  
  227.  
  228.  
  229.  
  230.  
  231. Isolating Non-System Software
  232. -----------------------------
  233.  
  234. In the next issue, I will go into detail about setting up application software
  235. on hard drive systems.  Until then, follow this simple rule: isolate your
  236. non-system software.  Here are my suggestions on how to do this.
  237.  
  238. First, make a directory called SYS:user and put your software in this 
  239. directory ONLY.  Second, add this line to the startup-sequence on fh0: before 
  240. the LoadWB command:
  241.  
  242.    execute sys:user/user.startup-sequence
  243.  
  244. Put all your paths and assigns in the file user.startup-sequence as well as 
  245. anything else that only needs to be run once.  Since paths are saved at 
  246. LoadWB time, the user.startup-sequence must be executed before LoadWB or the 
  247. path changes will not be permanent in other CLI windows.
  248.  
  249. Finally, you should add the following line to your s:shell-startup file on
  250. fh0:
  251.  
  252.    execute sys:user/user.shell-startup
  253.  
  254. Put any aliases or shell startup commands in user.shell-startup but remember 
  255. that this will be executed EACH time a shell is opened.
  256.  
  257. The idea here is to isolate NON-SYSTEM software in its own directory. If
  258. the software requires paths or logical assignments, make these in the
  259. user.startup-sequence and user.shell-startup files.  With this setup, you
  260. can safely copy new system software to sys: without worrying about 
  261. overwriting custom startup-sequences or mountlists.  
  262.  
  263. If you need a custom mountlist, put it in the user directory and use the FROM 
  264. option to the mount command.  When adding software to the system, pretend 
  265. that the system boots from fh0: and install the software there.  Device 
  266. drivers can be put in fh0:expansion and binddrivers will find them when 
  267. fh0:s/startup-sequence is executed.
  268.  
  269. By following these suggestions, installation of V1.3 Workbench and other
  270. system upgrades in the future will be easy.  In the next issue, I will cover
  271. installing application software on your hard disk in more detail.
  272.