install revision 1.14 1 $NetBSD: install,v 1.14 1998/01/09 18:45:44 perry Exp $
2
3 Installing NetBSD is a relatively complex process, but, if you have
4 this document in hand and are careful to read and remember the
5 information which is presented to you by the install program, it
6 shouldn't be too much trouble.
7
8 Before you begin, you must have already prepared your hard disk as
9 detailed in the section on preparing your system for install.
10
11 The following is a walk-through of the steps necessary to get NetBSD
12 installed on your hard disk. If you wish to stop the installation,
13 you may hit Control-C at any prompt, but if you do, you'll have to
14 begin again from scratch.
15
16 Transfer the miniroot file system onto the hard disk partition
17 used by NetBSD for swapping, as described in the "Preparing
18 your System for NetBSD Installation" section above.
19
20 * Booting from AmigaOS, using loadbsd:
21
22 You then need to have "ixemul.library" in your LIBS: directory
23 on AmigaDOS. You also need to have the "loadbsd" program
24 in your command path. If AmigaDOS complains about loadbsd
25 not being an executable file, be sure that the "Execute"
26 protection bit is set. If not, set it with the command:
27 Protect loadbsd add e
28
29 Next you need to get yourself into NetBSD by loading the
30 kernel from AmigaDOS with loadbsd like so:
31
32 loadbsd -b netbsd
33
34 If you have an AGA machine, and your monitor will handle
35 the dblNTSC mode, you may also include the "-A" option to
36 enable the dblNTSC display mode.
37
38 If your machine has a fragmented physical memory space, as,
39 e.g., DraCo machines, you should add the "-n2" option to
40 enable the use of all memory segments.
41
42 * Directly booting NetBSD, with boot blocks installed:
43
44 [This description is for V40 (OS 3.1) ROMs. For older ROMs,
45 there might be small differences. Check your AmigaOS documentation
46 to learn about the exact procedure.]
47
48 [XXX should note someplace that using bootblocks may not work on some
49 systems, and may require a mountable filesystem on others?]
50
51 Reboot your machine, holding down both mouse buttons if you
52 have a 2-button mouse, the outer mouse buttons if you have
53 a 3-button mouse. On the DraCo, press the left mouse button
54 instead, when the boot screen prompts you for it.
55
56 From the boot menu, select "Boot Options".
57 Select the swap partition with the miniroot, and then "ok".
58 Select "Boot" now. The machine will boot the bootblock, which
59 will prompt your for a command line. You have a few seconds time
60 to change the default. Entering an empty line will accept the
61 default.
62
63 The bootblock uses command lines of the form:
64
65 file options
66
67 where file is the kernel file name on the partition where the
68 boot block is on, and options are the same as with loadbsd.
69 E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2".
70
71 * Once your kernel boots:
72
73 You should see the screen clear and some information about
74 your system as the kernel configures the hardware. Note which
75 hard disk device(s) are configured (sd0, sd1, etc). Then
76 you will be prompted for a root device. At this time type
77 'sd0b', where '0' is the device which contains the swap
78 partition you created during the hard disk preparation.
79
80 If the system should hang after entering the root device, try
81 again with
82
83 loadbsd -I ff -b netbsd
84
85 This disables synchronous transfer on all SCSI devices.
86
87 The system should continue to boot. For now ignore WARNING:
88 messages about bad dates in clocks, and a warning about /etc/rc
89 not existing. Eventually you will be be asked to enter the
90 pathname of the shell, just hit return. After a short while,
91 you will be asked to select the type of your keyboard. After
92 you have entered a valid response here, the system asks you if
93 you want to install or upgrade your system. Since you are
94 reading the 'install' section, 'i' would be the proper
95 response here...
96
97 The installer starts with a nice welcome messages. Read this
98 message carefully, it also informs you of the risks involved
99 in continuing! If you still want to go on, type 'y'. The
100 installer now continues by trying to figure out your disk
101 configuration. When it is done, you will be prompted to
102 select a root device from the list of disks it has found.
103
104 You should know at this point that the disks are NOT numbered
105 according to their scsi-id! The NetBSD kernel numbers the scsi
106 drives (and other devices on the scsi bus) sequentially as it
107 finds them. The drive with the lowest scsi id will be called sd0,
108 the next one sd1, etc. Also, any Amiga internal IDE disk drives
109 will be configured as "SCSI" drives, and will be configured
110 before any 'real' SCSI drives (if any are present).
111
112 YOU ARE NOW AT THE POINT OF NO RETURN. If you confirm that
113 you want to install NetBSD, your hard drive will be modified,
114 and perhaps its contents scrambled at the whim of the install
115 program. Type Control-C NOW if you don't want this.
116
117 At this time, you will need to tell the installer which partition
118 will be associated with the different filesystems.
119
120 The install program will now make the the file systems you
121 specified. There should be only one error per file system in
122 this section of the installation. It will look like this:
123
124 newfs: ioctl (WDINFO): Invalid argument
125 newfs: /dev/rsd0a: can't rewrite disk label
126
127 If there are any others, restart from the the beginning of
128 the installation process. This error is ok as the Amiga
129 does not write disklabels currently. You should expect
130 this error whenever using newfs.
131
132 The install will now ask you want to configure any network
133 information. It ill ask for the machine's host name, domain
134 name, and other network configuration information.
135
136 Since the network configuration might have lead to additional (nfs)
137 filesystem entries, you get another chance to modify your fstab.
138
139 You are finally at the point where some real data will be put on
140 your freshly made filesystems. Select the device type you wish
141 to install from and off you go....
142 Some notes:
143 - If you want to install from tape, please read the section
144 about how to create such a tape.
145 - Some tapes (e.g. Archive Viper 150) refuse to operate with
146 the default tape density ("nrst0"). Try "nrst0h",
147 "nrst0m", or "nrst0l" instead.
148 - Install at least the base and etc sets.
149 - If you have to specify a path relative to the mount-point and
150 you need the mount-point itself, enter '.'.
151
152 Next you will be asked to specify the timezone. Just select the
153 timezone you are in. The installer will make the correct setup
154 on your root filesystem. After the timezone-link is installed,
155 the installer will proceed by creating the device nodes on your
156 root filesystem.
157
158 Be patient, this will take a while...
159
160 Finally, the installer ask you if you want to install the bootblock
161 code on your root disk. This is a matter of personal choice and can
162 also be done from a running NetBSD system. See the 'installboot(8)'
163 manual page about how to do this.
164
165
166 Once the installer is done, halt the system with the "halt" command
167 (wait for "halted" to be displayed) and reboot. Then again boot
168 NetBSD this time with the command:
169
170 loadbsd netbsd
171
172 or select the root partition from the boot menu, and tell it to boot
173
174 netbsd -s
175
176 You need to do your final tweaks now. First mount your file systems
177 like so:
178
179 mount -av
180
181 Your system is now complete but not completely configured; you
182 should adjust the /etc/sendmail.cf file as necessary to suit your
183 site. You should also examine and adjust the settings in /etc/rc.conf.
184 You can use vi or ed to edit the files. If you installed the man pages
185 you can type `man vi' or `man ed' for instructions on how to use these
186 somewhat non-intuitive editors.
187
188 Once you are done with the rest of configuration unmount your file
189 systems and halt your system, then reboot:
190
191 cd /
192 umount -av
193 halt
194 <reboot>
195
196 Finally you can now boot your system and it will be completely
197 functional:
198
199 loadbsd -a netbsd
200
201 When it boots off of the hard drive, you will have a complete
202 NetBSD system! CONGRATULATIONS! (You really deserve them!!!)
203