install revision 1.1 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 First you need to get yourself into NetBSD. This can be
15 done in a couple ways, both of which currently require
16 GEMDOS.
17
18 You can insert the GEMDOS kernel floppy and select
19 the loadbsd program. It will ask for parameters,
20 supply: '-b netbsd'. You can, of course, also run it
21 from the shell command-line in MiNT:
22
23 loadbsd -b a:/netbsd
24
25 You should see the screen clear and some information about
26 your system as the kernel configures the hardware. Then
27 you will be prompted for a root device. At this time remove
28 the GEMDOS kernel boot floppy from the drive if present and
29 insert the BSD install floppy 1. Now type `rd0' to tell the
30 kernel to load the install filesystem into RAMdisk. While
31 While the kernel is loading, it will show a '.' for each
32 track loaded. After loading 80 tracks, it will ask you
33 to insert the next floppy. At this time, inser the BSD
34 install floppy 2 and hit any key. The kernel continous
35 loading another 40 tracks before it continues to boot.
36
37 The system should continue to boot. For now ignore WARNING:
38 messages about bad dates in clocks. Eventually you will be
39 be asked to enter the pathname of the shell, just hit
40 return. After a short while you should see a welcome
41 message and a prompt, asking if you wish to proceed with the
42 installation.
43
44 If you wish to proceed, enter "y" and then return.
45
46 If you have configured your hard drive[s] correctly it
47 should find the drive and partition that you selected to
48 use as your root.
49
50 YOU ARE NOW AT THE POINT OF NO RETURN. If you confirm that
51 you want to install NetBSD, your hard drive will be modified,
52 and perhaps its contents scrambled at the whim of the install
53 program.
54
55 If you are sure you want to proceed, enter "yes" at the
56 prompt.
57
58 The install program will now make the root filesystem you
59 specified. There should be only one error in this section
60 of the installation. It will look like so:
61
62 newfs: ioctl (WDINFO): Invalid argument
63 newfs: /dev/rsd0a: can't rewrite disk label
64
65 If there are any others, restart from the the beginning of
66 the installation process. This error is ok as the Atari
67 does not write disklabels currently. You should expect
68 this error whenever using newfs.
69
70 Next the install program will ask you which drive and
71 partition you wish to use as /usr. First it will list the
72 available drives. Choose one. Next it will give you a
73 list of the partitions on that disk along with their sizes,
74 types, etc.. Choose the letter that corresponds to the
75 partition you wish to use for /usr. To be able to make the
76 proper selection, you need to know, that NetBSD assigns a
77 special meaning to some of the partition letters:
78 'a' : root filesystem
79 'b' : swap partition
80 'c' : whole disk
81 You should choose a letter in the range 'd'-'p' for your
82 /usr filesystem. If you are doing a full install this should
83 be a partition that is at least 45M-50M large. If everything is
84 ok the install program will then format and mount your /usr. If
85 not then it will ask again for a drive and partition.
86
87 When this completes your root partition will be mounted on
88 /mnt and your /usr partition on /mnt/usr. An fstab will
89 have been created and initialized to correctly mount these
90 two file systems. This fstab will be in /mnt/etc.
91
92 What you do from this point on depends on which media you're
93 using to install NetBSD. Follow the appropriate instructions,
94 given below.
95
96 To install from an GEMDOS partition:
97
98 You first need to mount the GEMDOS partition
99 using the mount_msdos command. If e.g. your GEMDOS
100 partition is the first partition on sd0 you could
101 type:
102
103 mkdir /mnt/gemdos
104 mount_msdos /dev/sd0d /mnt/gemdos
105
106 You can use `disklabel sd0' to find out what types
107 of partitions are on the disk `sd0'.
108
109 Next goto the directory in which you stored the
110 distribution sets. If e.g. you stored them in the
111 root directory of the partition:
112
113 cd /mnt/gemdos
114
115 When there, run "Set_tmp_dir" and choose the default
116 temporary directory, by hitting return at the
117 prompt.
118
119 Run the "Extract" command, giving it as its sole
120 argument the name of the distribution set you wish
121 to extract. For example, to extract the base
122 distribution, use the command:
123
124 Extract base11
125
126 and to extract the games distribution:
127
128 Extract game11
129
130 If the distribution sets are in different directories,
131 you will need to cd to each directory in turn, runing
132 "Set_tmp_dir" and the appropriate "Extract" command(s).
133
134 Continue this process until you've finished installing
135 all of the sets which you desire to have on your
136 hard disk. Once you have extracted all sets and
137 are at the "#" prompt again, proceed to the section
138 "Configuring Your System," below.
139
140 To install from tape:
141
142 The first thing you should do is pick a temporary
143 directory where the distribution files can be stored.
144 To do this, use the command "Set_tmp_dir" and enter
145 your choice. The default is /mnt/usr/distrib.
146
147 After you have picked a temporary directory,
148 you should issue the load command:
149
150 Load_tape
151
152 Next, you will be told to insert the media into
153 the appropriate drive, and hit return. Continue
154 to follow instructions until you are returned to
155 the "#" prompt.
156
157 Go to the directory which contains the first
158 distribution set you wish to install. This is
159 either the directory you specified above, or possibly
160 a subdirectory of that directory.
161
162 When there, run "Set_tmp_dir" again, and choose
163 the default temporary directory, by hitting
164 return at the prompt.
165
166 Run the "Extract" command, giving it as its sole
167 argument the name of the distribution set you
168 wish to extract. For example, to extract the base
169 distribution, use the command:
170
171 Extract base11
172
173 and to extract the games distribution:
174
175 Extract game11
176
177 After the extraction is complete, go to the location
178 of the next set you want to extract, "Set_tmp_dir"
179 again, and once again issue the appropriate
180 extract command. Continue this process until
181 you've finished installing all of the sets which you
182 desire to have on your hard disk.
183
184 After each set is finished, if you know that you
185 are running low on space you can remove the
186 distribution files for that set by saying:
187
188 rm set_name.??
189
190 For example, if you wish to remove the distribution
191 files for the game09 set, after the "Extract game09"
192 command has completed, issue the command:
193
194 rm game11.??
195
196 Once you have extracted all sets and are at the "#" prompt
197 again, proceed to the section "Configuring Your System,"
198 below.
199
200 Configuring Your System:
201 ----------- ---- ------
202
203 Once you have finished extracting all of the distribution sets that
204 you want on your hard drive and are back at the "#" prompt,
205 you are ready to configure your system.
206
207 The configuration utility expects that you have installed the base
208 system. If you have not, you will not be able to run it successfully
209 (nor will you have a functional system regardless of configuration).
210
211 To configure the newly installed operating system, run the
212 command "Configure".
213
214 Configure will ask for the machine's hostname, domain name, and other
215 network configuration information.
216
217 Once you have supplied `Configure' all that it requests, your machine
218 will be configured well enough that when you reboot it it will
219 almost be a completely functional NetBSD system. Note you should
220 ignore the errors from `chown' they will be corrected shortly.
221
222 Once you are done with `Configure', halt the system with the "halt"
223 command (wait for "halted" to be displayed) and reboot. Then again
224 boot NetBSD this time with the command:
225
226 loadbsd netbsd
227
228 You need to do your final tweeks now. First mount your file systems
229 like so:
230
231 mount -av
232
233 Next you need to re-make your devices to get the ownership correct:
234
235 cd /dev
236 MAKEDEV all
237
238 Your system is now complete but not completely configured; you
239 should adjust the /etc/sendmail.cf file as necessary to suit your
240 site and/or disable sendmail and other network related programs.
241 These things can be found in /etc/netstart. Use vi, if you installed
242 the man pages you can type `man vi' or `man ed' for instructions
243 on how to use these somewhat non-intuitive editors.
244
245 As mentioned at the end of the `Configure' run, you should copy the
246 NetBSD kernel onto the root partition as "/netbsd". There is also
247 another option to this. As NetBSD/Atari has to be booted from TOS,
248 you could do the following:
249 Reserve a small GEMDOS partition of about 4Mb. This is
250 enough to put in a few kernels. Put the netbsd kernel
251 into this partition. Also, edit your /etc/fstab to always
252 mount this partition, say as /kernels. Now make a symlink
253 from /netbsd to /kernels/netbsd.
254 This sceme is particulary handy when you want to make your
255 own kernel. When compilation is finished, you just copy
256 your kernel to /kernels/netbsd and reboot. It's wise to
257 make sure there is _always_ a 'know to work' kernel image
258 present.
259
260 To get the proper timezone settings, link /etc/localtime to the
261 appropriate file in /usr/share/zoneinfo. The link provided is to
262 /usr/share/zoneinfo/US/Pacific.
263
264 Once you are done with the rest of configuration unmount your file
265 systems and halt your system, then reboot:
266
267 cd /
268 umount -av
269 halt
270 <reboot>
271
272 Finally you can now boot your system and it will be completely
273 functional:
274
275 loadbsd -a netbsd
276
277 When it boots off of the hard drive, you will have a complete
278 NetBSD system! CONGRATULATIONS! (You really deserve them!!!)
279