install revision 1.1
1
2Installing NetBSD is a relatively complex process, but if you have
3this document in hand it should not be too difficult.
4
5There are several ways to install NetBSD onto your disk.  If your
6machine has a tape drive the easiest way is "Installing from tape"
7(details below).  If your machine is on a network with a suitable
8NFS server, then "Installing from NFS" is the next best method.
9Otherwise, if you have another Sun machine running SunOS you can
10initialize the disk on that machine and then move the disk.
11(Installing from SunOS is not recommended.)
12
13
14* Installing from tape:
15
16Create the NetBSD/sun3 1.1 boot tape as described in the section
17entitled "Preparing a boot tape" and boot the tape.  At the PROM
18monitor prompt, use one of the commands:
19	>b st()
20	>b st(0,8,0)
21The first example will use the tape on SCSI target 4, where the
22second will use SCSI target 5.  The '>' is the monitor prompt.
23
24After the tape loads, you should see many lines of configuration
25messages, and then the following "welcome" screen:
26
27	Welcome to the NetBSD/sun3 RAMDISK root!
28
29This environment is designed to do only three things:
301:  Partititon your disk (use the command:  edlabel /dev/rsd0c)
312:  Copy a miniroot image into the swap partition  (/dev/rsd0b)
323:  Reboot (using the swap partition, i.e. /dev/sd?b).
33
34Copying the miniroot can be done several ways, allowing
35the source of the miniroot image to be on any of these:
36    boot tape,  NFS server, TFTP server, rsh server
37
38The easiest is loading from tape, which is done as follows:
39	mt -f /dev/nrst0 rewind
40	mt -f /dev/nrst0 fsf 2
41	dd bs=32k if=/dev/nrst0 of=/dev/rsd0b
42(For help with other methods, please see the install notes.)
43
44To reboot using the swap partition, first use "halt",
45then at the PROM monitor prompt use a command like:
46	b sd(,,1) -s
47
48To view this message again, type:  cat /.welcome
49
50[ End of "welcome" screen. ]
51
52Copy the miniroot as described in the welcome message, and
53reboot from that just installed miniroot.  See the section
54entitled "Booting the miniroot" for details.
55
56
57* Installing from NFS:
58
59Before you can install from NFS, you must have already configured
60your NFS server to support your machine as a diskless client.
61Instructions for configuring the server are found in the section
62entitled "Getting the NetBSD System onto Useful Media" above.
63
64First, at the Sun PROM monitor prompt, enter a boot command
65using the network interface as the boot device.  On desktop
66machines this is "le", and "ie" on the others.  Examples:
67
68	>b le() -s
69	>b ie() -s
70
71After the boot program loads the RAMDISK kernel, you should
72see the welcome screen as shown in the "tape boot" section
73above.  You must configure the network interface before you
74can use any network resources.  For example the command:
75
76	ssh> ifconfig le0 inet 192.233.20.198 up
77
78will bring up the network interface with that address.  The next
79step is to copy the miniroot from your server.  This can be done
80using either NFS or remote shell.  (In the examples that follow,
81the server has IP address 192.233.20.195)
82
83To load the miniroot from an NFS file:
84
85	ssh> mount -r 192.233.20.195:/server/path /mnt
86	ssh> dd if=/mnt/miniroot of=/dev/rsd0b bs=8k
87
88To load the miniroot using rsh to the server:
89
90	ssh> run -b dd if=/dev/pipe of=/dev/rsd0b bs=8k
91	ssh> run -o /dev/pipe rsh 192.233.20.195 zcat miniroot.gz
92
93Note that "ssh" does not use "sh" syntax.  It is a very small
94shell designed for the ramdisk kernel.  The first command of the
95above pair runs a "dd" in the background reading /dev/pipe.  The
96second of the pair runs an "rsh" command with its standard output
97redirected to /dev/pipe.  In ssh, the "help" command will show you
98a list of commands and options (there are only a few).
99
100
101* Booting the miniroot:
102
103If the miniroot was installed on partition 'b' of the disk with
104SCSI target ID=0 then the PROM boot command would be:
105	>b sd(0,0,1) -s
106With SCSI target ID=2, the the PROM is:
107	>b sd(0,10,1) -s
108
109The numbers in parentheses above are:
110	controller (usually zero)
111	unit number (SCSI ID * 8, in hexadecimal)
112	partition number
113
114Miniroot install program:
115------------------------
116
117The miniroot's install program is very simple to use.  It will guide
118you through the entire process, and is well automated.  Additional
119improvements are planned for future releases.
120
121The miniroot's install program will:
122
123	* Allow you to place disklabels on additional disks.
124	  The disk we are installing on should already have
125	  been partitioned using the RAMDISK kernel.
126
127	  Note that partition sizes and offsets are expressed
128	  in sectors.  When you fill out the disklabel, you will
129	  need to specify partition types and filesystem parameters.
130	  If you're unsure what the these values should be, use the
131	  following:
132
133		fstype: 4.2BSD
134		fsize: 1024
135		bsize: 4096
136		cpg: 16
137
138	  If the partition will be a swap partition, use the following:
139
140		fstype: swap
141		fsize: 0 (or blank)
142		bsize: 0 (or blank)
143		cpg: 0 (or blank)
144
145	  The number of partitions is fixed at 8 (by the Sun PROM).
146
147	* Create filesystems on target partitions.
148
149	* Allow you to set up your system's network configuration.
150	  Remember to specify host names without the domain name
151	  appended to the end.  For example use `foo' instead of
152	  `foo.bar.org'.  If, during the process of configuring
153	  the network interfaces, you make a mistake, you will
154	  be able to re-configure that interface by simply selecting
155	  it for configuration again.
156
157	* Mount target filesystems.  You will be given the opportunity
158	  to manually edit the resulting /etc/fstab.
159
160	* Extract binary sets from the media of your choice.
161
162	* Copy configuration information gathered during the
163	  installation process to your root filesystem.
164
165	* Make device nodes in your root filesystem.
166
167	* Copy a new kernel onto your root partition.
168
169	* Install a new boot block.
170
171	* Check your filesystems for integrity.
172
173First-time installation on a system through a method other than the
174installation program is possible, but strongly discouraged.
175