install revision 1.8 1 Installing NetBSD is a relatively complex process, but, if you have
2 this document in hand and are careful to read and remember the
3 information which is presented to you by the install program, it
4 shouldn't be too much trouble.
5
6 Before you begin, you must have already prepared your hard disk as
7 detailed in the section on preparing your system for install.
8
9 The following is a walk-through of the steps necessary to get NetBSD
10 installed on your hard disk. If you wish to stop the installation,
11 you may hit Control-C at any prompt, but if you do, you'll have to
12 begin again from scratch.
13
14 Transfer the install miniroot file system onto the hard disk
15 partition used by NetBSD for swapping, as described in the
16 "Preparing your System for NetBSD Installation" section above.
17
18 * Booting from AmigaOS, using loadbsd:
19
20 You then need to have "ixemul.library" in your LIBS: directory
21 on AmigaDOS. You also need to have the "loadbsd" program
22 in your command path. If AmigaDOS complains about loadbsd
23 not being an executable file, be sure that the "Execute"
24 protection bit is set. If not, set it with the command:
25 Protect loadbsd add e
26
27 Next you need to get yourself into NetBSD by loading the
28 kernel from AmigaDOS with loadbsd like so:
29
30 loadbsd -b netbsd
31
32 If you have an AGA machine, and your monitor will handle
33 the dblNTSC mode, you may also include the "-A" option to
34 enable the dblNTSC display mode.
35
36 If your machine has a fragmented physical memory space, as,
37 e.g., DraCo machines, you should add the "-n2" option to
38 enable the use of all memory segments.
39
40 * Directly booting NetBSD, with boot blocks installed:
41
42 [This description is for V41 (OS 3.1) ROMs. For older ROMs,
43 there might be small differences. Check your AmigaOS documentation
44 to learn about the exact procedure.]
45
46 Reboot your machine, holding down both mouse buttons if you
47 have a 2-button mouse, the outer mouse buttons if you have
48 a 3-button mouse. On the DraCo, press the left mouse button
49 instead, when the boot screen prompts you for it.
50
51 From the boot menu, select "Boot Options".
52 Select the swap partition with the miniroot, and then "ok".
53 Select "Boot" now. The machine will boot the bootblock, which
54 will prompt your for a command line. You have a few seconds time
55 to change the default. Entering an empty line will accept the
56 default.
57
58 The bootblock uses command lines of the form:
59
60 file options
61
62 where file is the kernel file name on the partition where the
63 boot block is on, and options are the same as with loadbsd.
64 E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2".
65
66 * Once your kernel boots:
67
68 You should see the screen clear and some information about
69 your system as the kernel configures the hardware. Note which
70 hard disk device(s) are configured (sd0, sd1, etc). Then
71 you will be prompted for a root device. At this time type
72 'sd0*', where '0' is the device which contains the swap
73 partition you created during the hard disk preparation.
74
75 If the system should hang after entering the root device, try
76 again with
77
78 loadbsd -I ff -b netbsd
79
80 This disables synchronous transfer on all SCSI devices.
81
82 The system should continue to boot. For now ignore WARNING:
83 messages about bad dates in clocks. Eventually you will be
84 asked to enter the pathname of the shell, just hit return.
85 After a short while you should see a welcome message and a
86 prompt, asking if you wish to proceed with the installation.
87
88 If you wish to proceed, enter "y" and then return.
89
90 If you have configured your hard drive[s] correctly it
91 should find the drive and partition that you selected to
92 use as your root. You will be prompted for which device
93 you want to use for your root. If you have multiple disks
94 present with root partitions defined, you will need to be
95 sure you enter the device name of the correct partition you
96 want to install NetBSD on.
97
98 YOU ARE NOW AT THE POINT OF NO RETURN. If you confirm that
99 you want to install NetBSD, your hard drive will be modified,
100 and perhaps its contents scrambled at the whim of the install
101 program.
102
103 If you are sure you want to proceed, enter "yes" at the
104 prompt.
105
106 The install program will now make the root file system you
107 specified. There should be only one error in this section
108 of the installation. It will look like so:
109
110 newfs: ioctl (WDINFO): Invalid argument
111 newfs: /dev/rsd0a: can't rewrite disk label
112
113 If there are any others, restart from the the beginning of
114 the installation process. This error is ok as the Amiga
115 does not write disklabels currently. You should expect
116 this error whenever using newfs.
117
118 Next the install program will ask you which drive and
119 partition you wish to use as /usr. First it will list the
120 available drives. Choose one. Next it will give you a
121 list of the partitions on that disk along with their sizes,
122 types, etc.. Choose the letter that corresponds to the
123 partition you wish to use for /usr. If you are doing a
124 full install this should be at the very least 45M-50M large.
125 If everything is ok the install program will then format
126 and mount your /usr. If not then it will ask again for a
127 drive and partition.
128
129 When this completes your root partition will be mounted on
130 /mnt and your /usr partition on /mnt/usr. An fstab will
131 have been created and initialized to correctly mount these
132 two file systems. This fstab will be in /mnt/etc.
133
134 What you do from this point on depends on which media you're
135 using to install NetBSD. Follow the appropriate instructions,
136 given below.
137
138 To install from an AmigaDOS partition:
139
140 You first need to mount the AmigaDOS partition
141 using the mount_ados command. If e.g. your AmigaDOS
142 partition is the first partition on sd0 you could
143 type:
144
145 mkdir /mnt/ados
146 mount_ados -o ro /dev/sd0d /mnt/ados
147
148 You can use `disklabel sd0' to find out what types
149 of partitions are on the disk `sd0'.
150
151 Next goto the directory in which you stored the
152 distribution sets. If e.g. you stored them in the
153 root directory of the partition:
154
155 cd /mnt/ados
156
157 When there, run "Set_tmp_dir" and choose the default
158 temporary directory, by hitting return at the
159 prompt.
160
161 Run the "Extract" command, giving it as its sole
162 argument the name of the distribution set you wish
163 to extract. For example, to extract the base
164 distribution, use the command:
165
166 Extract base12
167
168 and to extract the games distribution:
169
170 Extract game12
171
172 If the distribution sets are in different directories,
173 you will need to cd to each directory in turn, running
174 "Set_tmp_dir" and the appropriate "Extract" command(s).
175
176 Continue this process until you've finished installing
177 all of the sets which you desire to have on your
178 hard disk. Once you have extracted all sets and
179 are at the "#" prompt again, proceed to the section
180 "Configuring Your System," below.
181
182 To install from tape:
183
184 The first thing you should do is pick a temporary
185 directory where the distribution files can be stored.
186 To do this, use the command "Set_tmp_dir" and enter
187 your choice. The default is /mnt/usr/distrib.
188
189 After you have picked a temporary directory,
190 you should issue the load command:
191
192 Load_tape
193
194 Next, you will be told to insert the media into
195 the appropriate drive, and hit return. Continue
196 to follow instructions until you are returned to
197 the "#" prompt.
198
199 Go to the directory which contains the first
200 distribution set you wish to install. This is
201 either the directory you specified above, or possibly
202 a subdirectory of that directory.
203
204 When there, run "Set_tmp_dir" again, and choose
205 the default temporary directory, by hitting
206 return at the prompt.
207
208 Run the "Extract" command, giving it as its sole
209 argument the name of the distribution set you
210 wish to extract. For example, to extract the base
211 distribution, use the command:
212
213 Extract base12
214
215 and to extract the games distribution:
216
217 Extract game12
218
219 After the extraction is complete, go to the location
220 of the next set you want to extract, "Set_tmp_dir"
221 again, and once again issue the appropriate
222 extract command. Continue this process until
223 you've finished installing all of the sets which you
224 desire to have on your hard disk.
225
226 After each set is finished, if you know that you
227 are running low on space you can remove the
228 distribution files for that set by saying:
229
230 rm set_name.??
231
232 For example, if you wish to remove the distribution
233 files for the game09 set, after the "Extract game09"
234 command has completed, issue the command:
235
236 rm game12.??
237
238 Once you have extracted all sets and are at the "#" prompt
239 again, proceed to the section "Configuring Your System,"
240 below.
241
242 To install via FTP or NFS:
243
244 First, use Set_tmp_dir to pick a temporary directory
245 for the installation files. /mnt/usr/distrib is
246 suggested.
247
248 Configure the appropriate Ethernet interface i.e. le0
249 if you have a 2065 or ed0 if you have a AMIGNET from
250 Hydra Systems.
251
252 ifconfig <ifname> <ipaddr> [netmask <netmask>]
253
254 where <ifname> is the interface name (e.g. ed0, etc.),
255 and <ipaddr> is the numeric IP address of the interface.
256 If the interface has a special netmask, supply
257 the word "netmask" and that netmask at the end of the
258 command line. For instance, without a special netmask:
259
260 ifconfig ed0 129.133.10.10
261
262 or with a special netmask
263
264 ifconfig ed0 128.32.240.167 netmask 0xffffff00
265
266 You should also be able to use SLIP or PPP as the network
267 connection.
268 [XXX instructions for ppp or slip would be usefull
269 perhaps the next release]
270
271 If the NFS server or FTP server is not on a directly-
272 connected network, you should set up a route to it
273 with the command:
274
275 route add default <gate_ipaddr>
276
277 where <gate_ipaddr> is your gateway's numeric IP address.
278
279 If you are NFS-mounting the distribution sets,
280 mount them on the temporary directory with the command:
281
282 mount -t nfs <serv_ipaddr>:<dist_dir> <tmp_dir>
283
284 where <serv_ipaddr> is the server's numeric IP address,
285 <dist_dir> is the path to the distribution files on
286 the server, and <tmp_dir> is the name of the local
287 temporary directory.
288
289 Once this is done, proceed as if you had loaded the
290 files from tape, "cd"ing to the appropriate directories
291 and running "Set_tmp_dir" and "Extract" as appropriate.
292
293 If you are retrieving the distribution sets using ftp,
294 cd into the temp directory, and execute the command:
295
296 ftp <serv_ipaddr>
297
298 where <serv_ipaddr> is once again the server's
299 numeric IP address. Get the files with FTP,
300 taking care to use binary mode to transfer
301 all files.
302
303 Once you have all of the files for the distribution sets
304 you wish to install, you can proceed using the instructions
305 above as if you had installed the files from a tape.
306
307
308 Configuring Your System:
309 ----------- ---- ------
310
311 Once you have finished extracting all of the distribution sets that
312 you want on your hard drive and are back at the "#" prompt,
313 you are ready to configure your system.
314
315 The configuration utility expects that you have installed the base
316 system. If you have not, you will not be able to run it successfully
317 (nor will you have a functional system regardless of configuration).
318
319 To configure the newly installed operating system, run the
320 command "Configure".
321
322 Configure will ask for the machine's host name, domain name, and other
323 network configuration information.
324
325 Once you have supplied `Configure' all that it requests, your machine
326 will be configured well enough that when you reboot it it will
327 almost be a completely functional NetBSD system.
328
329 Configure will also copy the generic kernel from the miniroot onto your
330 root partition, and will install a bootblock.
331
332 Once you are done with `Configure', halt the system with the "halt"
333 command (wait for "halted" to be displayed) and reboot. Then again
334 boot NetBSD this time with the command:
335
336 loadbsd netbsd
337
338 or select the root partition from the boot menu, and tell it to boot
339
340 netbsd -s
341
342 You need to do your final tweaks now. First mount your file systems
343 like so:
344
345 mount -av
346
347 Your system is now complete but not completely configured; you
348 should adjust the /etc/sendmail.cf file as necessary to suit your
349 site and/or disable sendmail and other network related programs.
350 These things can be found in /etc/netstart. Use vi, if you installed
351 the man pages you can type `man vi' or `man ed' for instructions
352 on how to use these somewhat non-intuitive editors.
353
354 You should also put a copy of the netbsd kernel in your root partition.
355 This can be done easily by mounting the AmigaDOS partition containing
356 the kernel you used to start NetBSD and copying the "netbsd" file to
357 the root:
358 mount -r -t ados /dev/sd0d /mnt
359 cp /mnt/netbsd /
360 (where /dev/sd0d is the AmigaDOS partition where you have netbsd, and
361 /mnt/netbsd is the appropriate path of the netbsd file).
362
363 Once you are done with the rest of configuration unmount your file
364 systems and halt your system, then reboot:
365
366 cd /
367 umount -av
368 halt
369 <reboot>
370
371 Finally you can now boot your system and it will be completely
372 functional:
373
374 loadbsd -a netbsd
375
376 When it boots off of the hard drive, you will have a complete
377 NetBSD system! CONGRATULATIONS! (You really deserve them!!!)
378