Mercurial > hg > Members > kono > nitros9-code
annotate docs/nitros9guide/chap1.chapter @ 1017:c9b63a3c0a17
More changes
author | boisy |
---|---|
date | Tue, 04 Mar 2003 20:47:34 +0000 |
parents | d9ed9d44b70c |
children | b5ff125a1d60 |
rev | line source |
---|---|
144 | 1 <chapter> |
2 <title>Getting Started...</title> | |
3 | |
4 <section> | |
5 <title>What You Need to Run OS-9</title> | |
6 <para> | |
1017 | 7 This version of &os9level; runs on the &make;. To use it you'll need the following: |
144 | 8 </para> |
9 <itemizedlist mark="bullet"> | |
1017 | 10 <listitem><para>&minmem; &make; </para></listitem> |
11 <listitem><para>Disk Drive With Contoller Cartridge</para></listitem> | |
12 <listitem><para>&os9level; System Disk</para></listitem> | |
144 | 13 </itemizedlist> |
14 <para> | |
15 OS-9 is also ready to use the following optional equipment that you | |
16 may have now or may obtain in the future: | |
17 </para> | |
18 <itemizedlist mark="bullet"> | |
1011 | 19 <listitem><para>Additional Floppy Disk Drives</para></listitem> |
20 <listitem><para>SCSI or IDE Hard Drives</para></listitem> | |
1017 | 21 <listitem><para>Printers and Modems</para></listitem> |
22 <listitem><para>Additional Serial Ports</para></listitem> | |
23 <listitem><para>Joysticks and Mice</para></listitem> | |
144 | 24 <listitem><para>Other OS-9 Compatible Languages and Software</para></listitem> |
25 </itemizedlist> | |
26 | |
27 <section> | |
28 <title>Starting the System</title> | |
29 <para> | |
30 To start up OS-9 follow these steps: | |
31 | |
32 <orderedlist numeration="arabic"> | |
1011 | 33 <listitem><para>Turn the &make; and disk drive(s) on. You should see |
34 the usual BASIC greeting message on the screen.</para></listitem> | |
144 | 35 |
36 <listitem><para>Insert the OS-9 System Disk in drive zero and close the door.</para></listitem> | |
37 | |
1014
d9ed9d44b70c
Some character entities had missing semicolons. It's &CPU;
roug
parents:
1011
diff
changeset
|
38 <listitem><para>Type "&DOSCMD;". After a few seconds of disk activity you should |
1011 | 39 see a screen with the words "OS9 BOOT".</para></listitem> |
144 | 40 |
41 <listitem><para>OS-9 will then begin | |
42 its "bootstrap" loading process, which | |
43 involves ten to twenty seconds of disk activity. When the system | |
1011 | 44 startup has finished, a message followed by the shell prompt will be |
144 | 45 displayed.</para></listitem> |
46 </orderedlist> | |
47 </para> | |
48 </section> | |
49 | |
50 <section> | |
51 <title>In Case You Have Problems Starting OS-9</title> | |
52 <itemizedlist> | |
1011 | 53 <listitem><para>If BASIC gives an error message after you |
1014
d9ed9d44b70c
Some character entities had missing semicolons. It's &CPU;
roug
parents:
1011
diff
changeset
|
54 type "&DOSCMD;", remove the |
144 | 55 disk, turn the computer off and on, then try again. If this |
56 repeatedly fails your OS-9 diskette may be bad.</para></listitem> | |
57 | |
58 <listitem><para>Did you remember to turn the disk drive power switch on?</para></listitem> | |
59 | |
1014
d9ed9d44b70c
Some character entities had missing semicolons. It's &CPU;
roug
parents:
1011
diff
changeset
|
60 <listitem><para>Does your &make; have &minmem; RAM? This is a must!</para></listitem> |
144 | 61 |
1014
d9ed9d44b70c
Some character entities had missing semicolons. It's &CPU;
roug
parents:
1011
diff
changeset
|
62 <listitem><para>If your &make; doesn't seem to understand the &DOSCMD; command, your controller has DOS 1.0. You will need to upgrade to |
1011 | 63 DOS 1.1.</para></listitem> |
144 | 64 |
1011 | 65 <listitem><para>If the "OS9 BOOT message is displayed but nothing else happens, |
144 | 66 you may have a corrupted system disk. Hopefully you did make a |
67 backup!</para></listitem> | |
68 </itemizedlist> | |
69 </section> | |
70 | |
71 <section> | |
72 <title>A Quick Introduction to the Use of the Keyboard and Disks</title> | |
73 <para> | |
74 For now, the only special keys on the keyboard of interest are | |
75 the SHIFT key which works like a typewriter shift key; the ENTER key | |
76 which you always use after typing a command or response to OS-9; and | |
77 the <- left arrow key which you can use to erase typing mistakes. | |
78 </para> | |
79 <para> | |
80 Your main disk drive is known to to OS-9 as "/D0" and is often | |
81 called "drive zero". If you have a second disk drive (drive one), | |
82 OS-9 recognizes it as "/D1". Why would anybody put a "/" in a name? | |
83 Because all input and output devices have names like files, and | |
84 names that start with "/" are always device names. | |
85 </para> | |
86 </section> | |
87 | |
88 <section> | |
89 <title>Initial Explorations</title> | |
90 <para> | |
91 When OS-9 first starts up, it will display a welcoming message, | |
92 and then ask you to enter the date and time. This allows OS-9 to | |
93 keep track of the date and time of creation of new files and disks. | |
94 Enter the current date and time in the format requested like this: | |
95 <screen> | |
1017 | 96 yyyy/mm/dd hh:mm:ss |
97 Time ? 2003 03 01 14 20 | |
144 | 98 </screen> |
1011 | 99 In the example above, the date entered was March 1, 2003. OS-9 |
144 | 100 uses 24-hour time so the date entered was 1420 hours or 2:20 PM. |
1011 | 101 Next, OS-9 will print the shell prompt to let you know it is ready |
144 | 102 for you to type in a command. |
103 </para> | |
104 <para> | |
105 Now you're ready to try some commands. A good first command to | |
106 try is DIR (for "<emphasis>dir</emphasis>ectory"). | |
107 This will display a list of the files | |
108 on the System Disk. Just type: | |
109 <screen> | |
110 dir | |
111 </screen> | |
112 followed by a "return". OS-9 should respond with a listing of file | |
113 names which should look something like this: | |
114 <screen> | |
115 OS9Boot startup CMDS SYS DEFS | |
116 </screen> | |
1014
d9ed9d44b70c
Some character entities had missing semicolons. It's &CPU;
roug
parents:
1011
diff
changeset
|
117 The file "OS9Boot" contains the OS-9 program in &CPU; machine |
144 | 118 language, which was loaded into memory during the bootstrap |
119 operation. | |
120 </para> | |
121 <para> | |
122 The file "startup" is a "command file" which is automatically run | |
123 when the system starts up, and has the commands that printed the | |
124 welcoming message and asked for the time. Later, You may want to | |
125 replace this startup file with your own customized version after you | |
126 are more familiar with OS-9. Do you want to see the contents of | |
127 this file? If so, just type | |
128 <screen> | |
129 list startup | |
130 </screen> | |
131 As you can see, the LIST command displays the contents of files | |
132 that contain text (alphabetic characters). Some files like the | |
133 "OS9Boot" file contain binary data such as machine language | |
134 programs. These files are called "binary files", and attempts to | |
135 list them will result in a jumbled, meaningless display. On the | |
136 other hand, OS-9 will complain mightily if you try to run a text | |
137 file as a program! | |
138 </para> | |
139 <para> | |
140 As you may have surmised by now, the way you ask OS-9 to run a | |
141 program or command (they're really the same thing) is to simply type | |
142 its name. Some commands like LIST require one or more names of | |
143 files or options. If so, they are typed on the same line using | |
144 spaces to separate each item. | |
145 </para> | |
146 <para> | |
147 But where did the LIST and DIR programs come from? There are | |
148 really more files on the disk than you suspect. The DIR command | |
149 showed you what is the disk's | |
150 <emphasis>root directory</emphasis> - so named because the | |
151 OS-9 filing system resembles a tree. Growing out of the root | |
152 directory are three "branches" - files which are additional | |
153 directories of file names instead of programs or data. They in turn | |
154 can have even more "branches" - ad infinitum. If you draw a map on | |
155 paper of how this works it does look like a tree. | |
156 </para> | |
157 <para> | |
158 The directory files on your system disk are called "CMDS", | |
159 "SYS", and "DEFS". | |
160 The file "CMDS" is a directory that consists of | |
161 all the system commands such as DIR, LIST, FORMAT, etc. To see the | |
162 files contained in this directory, enter: | |
163 <screen> | |
1011 | 164 dir cmds |
144 | 165 </screen> |
166 which tells DIR to show files on the directory file CMDS instead | |
167 of the root directory. After you type this you should see a long | |
168 list of file names. These are the complete set of command programs | |
169 that come with OS-9 and perform a myriad of functions. Chapter | |
170 Seven explains each one in detail. The DIR command also has a handy | |
171 option to display the CMDS directory with less typing: | |
172 <screen> | |
1011 | 173 dir -x |
144 | 174 </screen> |
175 Whenever you want a list of available commands you can use this so | |
176 you don't have to look it up in the book. The DIR command has | |
1011 | 177 options which can give you more detailed information about each file. |
144 | 178 </para> |
179 </section> | |
180 </section> | |
181 <section> | |
182 <title>Making a Backup of the System Disk</title> | |
183 <para> | |
184 Before getting too much more involved in further experimentation, | |
185 NOW is the time to make one or more exact copies of your System Disk | |
186 in case some misfortune befalls your one and only master System | |
187 Disk. Making a backup involves two steps: formatting a blank disk | |
188 and running a backup program. | |
189 </para> | |
190 <section> | |
191 <title>Formatting Blank Disks</title> | |
192 <para> | |
193 Before the actual backup procedure can be done (or any fresh | |
194 diskette is used for any purpose), the blank disk which is to become | |
195 the backup disk must be initialized by OS-9's FORMAT command. | |
196 </para> | |
197 <para> | |
198 IF YOU HAVE ONLY ONE DISK DRIVE you have to be extra careful not to | |
199 accidentally FORMAT your system disk. Type: | |
200 | |
201 <screen> | |
1011 | 202 format /d0 |
144 | 203 </screen> |
204 | |
205 and when you see the message | |
206 | |
207 <screen> | |
1011 | 208 COLOR COMPUTER FORMATTER |
1017 | 209 Formatting drive /d0 |
210 y (yes) or n (no) | |
1011 | 211 Ready? |
144 | 212 </screen> |
213 | |
214 immediately remove your system disk and insert a blank disk | |
215 <emphasis>before</emphasis> you type "Y". | |
216 | |
217 IF YOU HAVE TWO DISK DRIVES place the blank disk in drive one and | |
218 type: | |
219 </para> | |
220 <screen> | |
1017 | 221 format /d1 |
144 | 222 </screen> |
223 <para> | |
224 WHEN THE BLANK DISK IS IN THE RIGHT PLACE, type "Y", then "ENTER". | |
225 This initiates the formatting process. IF THE CORRECT DEVICE NAME | |
226 (/D1) IS NOT DISPLAYED: TYPE N RIGHT NOW and start over, OR YOU | |
227 MAY ERASE your System Disk. | |
228 </para> | |
229 <para> | |
230 When you are asked for a disk name, type any letter, then ENTER. | |
231 The name you give is not important. If you have only one drive, | |
232 replace the system disk after the FORMAT program has finished. If | |
233 the FORMAT program reported any errors, try again. Disks used for | |
234 backups can't have any errors. You're now ready to run the BACKUP | |
235 program. | |
236 </para> | |
237 <para> | |
238 It takes several minutes for the FORMAT program to run. During | |
239 its second phase the hexadecimal number of each track will be | |
240 displayed as it is checked for bad sectors. If any are found an | |
241 error message for each bad sector is given. | |
242 </para> | |
243 </section> | |
244 | |
245 <section> | |
246 <title>Running the Backup Program</title> | |
247 <para> | |
248 The BACKUP program makes an exact duplicate of a disk. It can be | |
249 used even if you only have one disk drive. | |
250 </para> | |
251 <para> | |
252 IF YOU HAVE ONE DRIVE type | |
253 </para> | |
254 <screen> | |
1011 | 255 backup /d0 #32k |
144 | 256 </screen> |
257 <para> | |
258 The BACKUP program will prompt you to alternately insert the source | |
259 disk (the system disk) and the destination disk (the freshly | |
260 formatted disk). | |
261 </para> | |
262 <para> | |
263 IF YOU HAVE TWO DRIVES type | |
264 </para> | |
265 <screen> | |
1011 | 266 backup #32K |
144 | 267 </screen> |
268 <para> | |
269 | |
270 The BACKUP program will respond with | |
271 </para> | |
272 <screen> | |
1017 | 273 Ready to backup from /d0 to /d1? |
144 | 274 </screen> |
275 <para> | |
276 Now enter Y for yes. It will then ask: | |
277 </para> | |
278 <screen> | |
1011 | 279 X is being scratched |
1017 | 280 Ok ?: |
144 | 281 </screen> |
282 <para> | |
283 Answer "Y" for yes again, and the BACKUP process should begin. | |
284 </para> | |
285 <para> | |
286 The BACKUP command has two phases: the first phase copies | |
287 everything from drive zero to drive one checking for errors while | |
288 reading from the master but not for "write" errors. The second | |
289 phase is the "verify" pass which makes sure everything was copied | |
290 onto the new disk correctly. If any errors are reported during the | |
291 first (copy) pass, there is a problem with the master disk or its | |
292 drive. If errors occur during the second (verify) pass, there is a | |
293 problem with the new disk and the BACKUP program should be run | |
294 again. If BACKUP repeatedly fails on the second pass, reformat the | |
295 disk and try to BACKUP again. If BACKUP fails again, the disk is | |
296 physically defective. | |
297 </para> | |
298 <para> | |
148
525b12e17d60
Made the word "Dragon" an entity, thereby making it replacable with "Color"
roug
parents:
144
diff
changeset
|
299 After you have made your backup disk, try turning the &make; |
1011 | 300 off and restarting the system with the copy you just made. |
144 | 301 If it works OK, store it in a safe place in case it is needed later. |
302 You should always have a backup copy of your system disk and all | |
303 other important disks. | |
304 </para> | |
305 </section> | |
306 </section> | |
307 </chapter> |