install revision 1.17
1	$NetBSD: install,v 1.17 1998/11/24 02:49:13 simonb Exp $	
2
3Reminder:
4	Always back up files before installing or upgrading.
5	If installing from source,  always install and boot a new kernel
6	before installing a new userland!
7
8
9If at all possible, you should consult the ``Installation Guide''
10document on the NetBSD/pmax web page, at http://www.netbsd.org/Ports/pmax.
11It has not been possible to reproduce the pmax installation Web page
12in fixed-font hardcopy format for the _VER release.  You must either visit
13the URL above, or request a rendered version (e.g., PostScript).
14
15Please check the NetBSD/pmax _VER installation instructions at
16
17    http://www.netbsd.org/Ports/pmax/pmax-install.html
18
19now, and return to this document when you used those instructions to
20install a diskimage, and used sysinst to label a disk and extract the
21NetBSD/pmax _VER installation tar sets.
22
23
24Install via a NetBSD CDROM.
25---------------------------
26
27You can obtain the disk image or diskless boot tar file from the
28NetBSD _VER CDROM.
29
30
31To mount the CDROM from a NetBSD/pmax host, type
32
33	mount -r -t cd9660 /dev/rzXc /mnt
34
35and from an Ultrix host
36
37	mount -r -t cdfs -o nodefperm,noversion /dev/rzXc /mnt
38
39where X is the SCSI id of the CDROM.
40
41
42** NOTE:  Ultrix does not have Rock Ridge extensions so leave out
43everything between the first and last . in the paths on the CD.
44For example, the path NetBSD-1.3.2 would show up as NetBSD-1.2.
45
46
47The diskimage file can be found on the CDROM at the following
48location (relative to the mount point of the CD)
49
50	NetBSD-_VER/pmax/installation/diskimage/diskimage.gz
51
52and the diskless boot tar file can be found at
53
54	NetBSD-_VER/pmax/installation/netboot/diskimage.tgz
55
56Once you have located these files, continue on to either the "Install
57via diskless boot", "Install via diskimage" or "Installing from Ultrix"
58section later in the INSTALL notes.
59
60
61
62Install via diskless boot.
63--------------------------
64
65The preferred path is to upgrade or install by diskless-booting a
66minimal system via NFS, and using that to upgrade or install.  The
67file
68	installation/netboot/diskimage.tar.gz
69
70contains a suitable set of files. (it is a tar copy of the contents of
71a root filesystem diskimage) .  You will need to find an NFS server,
72unpack the tarfile, and setup BOOTP/dhcp service for your pmax.
73Complete instructions are in the installation notes or the pmax web
74page.
75
76Since the system install utility, sysinst, requires a read/write root,
77netbooting is only feasible if your NFS server exports the diskless
78root read-write.  If this is not possible, you should install via
79diskimage.
80
81
82
83Install via diskimage.
84----------------------
85
86If netbooting with a _writable_ NFS root is not possible, the
87recommended installation is to unpack and copy a diskimage onto the
88raw partition of a disk.  The diskimage file is in
89
90installation/diskimage/diskimage.gz
91
92is shipped compressed and is around 8020 kBytes; it uncompresses to
93exactly 32Mbytes.
94
95To install the diskimage onto disk rzX on a NetBSD/pmax system, do:
96	disklabel -W /dev/rrzXc
97	gunzip -c diskimage.gz | dd of=/dev/rrzXc bs=10240
98
99When installing on a disk with not NetBSD or Ultrix label, you may get a
100message like:
101	rzX: WARNING: trying Ultrix label, no disk label
102or when installing on an old Ultrix disk, you may get a message like:
103	rzX: WARNING: using ULTRIX partition information
104when issuing the "disklabel -W /dev/rrzXc" command.  This can safely be
105ignored.
106
107Most other NetBSD ports are similar, but use rsdXc instead of rrzXc.
108
109On NetBSD/i386, the `raw disk partition' is the 'd' parttion, so do:
110	disklabel -W /dev/rsdXd
111	gunzip -c diskimage.gz | dd of=/dev/rsdXd bs=10240
112
113On NetBSD, be sure to use disklabel -W to enable writing to the label
114area of the disk. If you forget this and/or use the `block' device,
115the dd command will silently fail.
116
117On MS-DOS, use an unzip utlility, then use rawrite.
118
119Then boot using, e.g,
120	>> boot -f rz(0,X,0)netbsd		# 3100
121	>> boot 5/rzX/netbsd 			# 5000/200
122	>> boot 3/rzX/netbsd			# other machines
123
124	(NOTE: replace the X with the unit number of your disk:
125         boot 3/rz2/netbsd to boot drive 2 on a 5000/xxx.)
126
127then continue from ``Once you've booted the diskimage''.
128
129
130
131Installing from Ultrix
132----------------------
133
134The Ultrix bootloader can boot ECOFF-format NetBSD kernels.
135So the technique of dd'ing a disk image into swap, copying
136a kernel to the root, and then booting via the "n" argument
137should work with Ultrix too.  Since Ultrix cannot mount
1384.4BSD format FFS filesystems, just dd the diskimage into
139your swap partition, copy a netbsd.ecoff kernel from the FTP site,
140and proceed from step #5 of the `Upgrade via diskimage' above.
141
142You should do this from single-user mode, to ensure that swapping is
143not enabled when you copy the diskimage into the swap partition.
144
145On Ultrix, use the "chpt -q /dev/rz?c" command to be sure your swap
146partition (typically "b") is big enough to hold the diskimage (32Mbytes
147or more).
148
149Again, be sure to specify the partition where you dd'ed the NetBSD
150diskimage as your root device in step #7!
151
152
153Details of dd'ing a disk image into the swap partition are covered in
154the "QUICK.INSTALL" file, which should be in the same directory where
155these install notes are located.
156
157
158
159Once you've booted the diskimage
160--------------------------------
161
162Once you'e booted a diskimage and pointed the kernel at the approriate
163devices to use for root, and dump, NetBSD kernel will prompt you for
164a single-user shell
165
166	Enter pathname of shell or RETURN for sh: 
167
168At this point, press the RETURN key.  When you get a standalone root
169prompt, set your terminal type
170
171	TERM=pmax; export TERM;
172
173for a framebuffer console, or
174
175	TERM=vt100; export TERM
176
177if using a serial console with a vt100-compatible terminal.
178
179Next, you need to ensure that the root filesystem is writable so that
180sysinst can create temporary files, temporary disklabels, etc.
181If you booted via NFS, the diskless root should already be writable.
182If you booted from disk, type
183
184	mount /dev/rzXY /
185
186where X is the disk unit you booted from, and Y is either a or b,
187(e.g., use /dev/rz2a for drive 2 with diskimage in the 'a' partition,
188and rz2b for diskimage in swap.)
189
190
191CD-ROM INSTALLATION NOTE:  If you are installing from a CD-ROM, sysinst
192will offer you a default choice of "cd0" for the CD-ROM device.  Unlike
193other NetBSD ports, NetBSD/pmax currently uses the same device driver
194for both hard disks and CD-ROMs.  You will need to specify "rzX" (where
195X is the SCSI id of the CD-ROM) as the CD-ROM device.  Also note that
196sysinst doesn't expect a partition - just the base device.  If you still
197have problems, you can try issuing the following command before starting
198sysinst
199
200	mount -r -t cd9660 /dev/rzXc /mnt2
201
202where X is the SCSI id of the CD-ROM.  You can then ignore any errors
203trying to mount the CD-ROM from within sysinst.
204
205
206Then, start sysinst
207
208	sysinst
209
210Then, choose 'install' or 'upgrade'.
211
212When you've finished the install/upgrade, be sure to edit /etc/rc.conf
213and set "rc_configured" to YES when you are done.  If you're doing an
214upgrade, merge your old etc from /etc.old into /etc.
215
216You're then ready to reboot!
217
218
219
220Post-intallation notes:
221----------------------
222Some of the files in the NetBSD _VER distribution might need to be
223tailored for your site.  In particular, the /etc/sendmail.cf file will
224almost definitely need to be adjusted, and other files in /etc will
225probably need to be modified.  If you are unfamiliar with UN*X-like
226system administration, it's recommended that you buy a book that
227discusses it.
228
229NetBSD/pmax 1.3 uses an X11R5 X server. These servers cannot read the
230compressed fonts which are shipped with standard X11R6 configurations.
231
232If you installed X11 and want to run a local Xserver, you must take
233post-installation steps to make the X11R5 server work that are
234standard for X11R6.3. The distribution file /usr/X11R6/bin/README.pmax
235contains information on how to choose an Xserver and how to access
236compressed fonts via a font server or to decompress the X fonts
237after installation.  Please follow the directions there.
238