install revision 1.8
1	$NetBSD: install,v 1.8 1998/08/23 12:42:19 hubertf 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 diskless boot.
25--------------------------
26
27The preferred path is to upgrade or install by diskless-booting a
28minimal system via NFS, and using that to upgrade or install.  The
29file
30	installation/netboot/diskimage.tar.gz
31
32contains a suitable set of files. (it is a tar copy of the contents of
33a root filesystem diskimage) .  You will need to find an NFS server,
34unpack the tarfile, and setup BOOTP/dhcp service for your pmax.
35Complete instructions are in the installation notes or the pmax web
36page.
37
38Since the system install utility, sysinst, requires a read/write root,
39netbooting is only feasible if your NFS server exports the diskless
40root read-write.  If this is not possible, you should install via
41diskimage.
42
43
44
45Install via diskimage.
46----------------------
47
48If netbooting with a _writable_ NFS root is not possible, the
49recommended installation is to unpack and copy a diskimage onto the
50raw partition of a disk.  The diskimage file is in
51
52installation/diskimage/diskimage.gz
53
54is shipped compressed and is around 8020 kBytes; it uncompresses to
55exactly 32Mbytes.
56
57To install the diskimage onto disk rzX  on a NetBSD/pmax system, do:
58	disklabel -W /dev/rrzXc
59	gunzip -c diskimage.gz | dd of=/dev/rrzX2c bs=10240
60
61Most other NetBSD ports are similar, but use  rsdXc instead of rrzXc.
62
63On NetBSD/i386, the `raw disk partition' is the 'd' parttion, so do:
64	disklabel -W /dev/rsdXd
65	gunzip -c diskimage.gz | dd of=/dev/rsdXd bs=10240
66
67On NetBSD, be sure to use disklabel -W to enable writing to the label
68area of the disk. If you forget this and/or use the `block' device,
69the dd command will silently fail.
70
71On MS-DOS, use an unzip utlility, then use rawrite.
72
73Then boot using, e.g,
74	>> boot -f rz(0,X,0)netbsd		# 3100
75	>> boot 5/rzX/netbsd 			# 5000/200
76	>> boot 3/rzX/netbsd			# other machines
77
78	(NOTE: replace the X with the unit number of your disk:
79         boot 3/rz2/netbsd to boot drive 2 on a 5000/xxx.)
80
81then continue from ``Once you've booted the diskimage''.
82
83
84
85Installing from Ultrix
86----------------------
87
88The Ultrix bootloader can boot ECOFF-format NetBSD kernels.
89So the technique of dd'ing a disk image into swap, copying
90a kernel to the root, and then booting via the "n" argument
91should work with Ultrix too.  Since Ultrix cannot mount
924.4BSD format FFS filesystems, just dd the diskimage into
93your swap partition, copy a netbsd.ecoff kernel from the FTP site,
94and proceed from step #5 of the `Upgrade via diskimage' above.
95
96Again, be sure to specify the partition where you dd'ed the NetBSD
97diskimage as your root device in step #7!
98
99
100
101Once you've booted the diskimage
102---------------------------
103
104Once you'e booted a diskimage and pointed the kernel at the approriate
105devices to use for root, and dump, NetBSD kernel will prompt you for
106a single-user shell;
107
108	Enter pathname of shell or RETURN for sh: 
109
110
111At this point, press the RETURN key.
112then when you get a standalone root prompt, set your terminal type
113
114	TERM=pmax; export TERM;
115
116
117Next, you need to ensure that the root filesystem is writable so that
118sysinst can create temporary files, temporary disklabels, etc.
119If you booted via NFS, the diskless root should already be writable.
120If you booted from disk, type
121
122	mount /dev/rzXY
123
124where X is the disk unit you booted from, and Y is either a or b,
125(e.g., use /dev/rz2a for drive 2 with diskimage in the 'a' partition,
126and rz2b for diskimage in swap.)
127
128
129
130Then, start sysinst.  For the ALPHA release, you should start sysinst
131with an empty release-version string:
132
133	sysinst -r ""
134
135(to stop sysinst automatically inserting the reelase into set names).
136For the BETA or the final relase, just use
137
138	sysinst
139
140Then, choose   'install' or 'upgrade'.
141
142When you've finished the install/upgrade, be sure to edit /etc/rc.conf
143and set "rc_configured" to YES when you are done.  If you're doing an
144upgrade, merge your old etc from /etc.old into /etc.
145
146You're then ready to reboot!
147