install revision 1.16
11.4Sthorpej	$NetBSD: install,v 1.16 1998/11/20 05:33:12 simonb Exp $	
21.2Sthorpej
31.2SthorpejReminder:
41.2Sthorpej	Always back up files before installing or upgrading.
51.2Sthorpej	If installing from source,  always install and boot a new kernel
61.2Sthorpej	before installing a new userland!
71.2Sthorpej
81.2Sthorpej
91.2SthorpejIf at all possible, you should consult the ``Installation Guide''
101.2Sthorpejdocument on the NetBSD/pmax web page, at http://www.netbsd.org/Ports/pmax.
111.2SthorpejIt has not been possible to reproduce the pmax installation Web page
121.2Sthorpejin fixed-font hardcopy format for the _VER release.  You must either visit
131.2Sthorpejthe URL above, or request a rendered version (e.g., PostScript).
141.2Sthorpej
151.2SthorpejPlease check the NetBSD/pmax _VER installation instructions at
161.2Sthorpej
171.2Sthorpej    http://www.netbsd.org/Ports/pmax/pmax-install.html
181.2Sthorpej
191.2Sthorpejnow, and return to this document when you used those instructions to
201.2Sthorpejinstall a diskimage, and used sysinst to label a disk and extract the
211.2SthorpejNetBSD/pmax _VER installation tar sets.
221.2Sthorpej
231.2Sthorpej
241.2SthorpejInstall via a NetBSD CDROM.
251.2Sthorpej---------------------------
261.2Sthorpej
271.2SthorpejYou can obtain the disk image or diskless boot tar file from the
281.2SthorpejNetBSD _VER CDROM.
291.2Sthorpej
301.2Sthorpej
311.2SthorpejTo mount the CDROM from a NetBSD/pmax host, type
321.2Sthorpej
331.2Sthorpej	mount -r -t cd9660 /dev/rzXc /mnt
341.2Sthorpej
351.2Sthorpejand from an Ultrix host
361.2Sthorpej
371.2Sthorpej	mount -r -t cdfs -o nodefperm,noversion /dev/rzXc /mnt
381.2Sthorpej
391.2Sthorpejwhere X is the SCSI id of the CDROM.
401.2Sthorpej
411.2Sthorpej
421.2Sthorpej** NOTE:  Ultrix does not have Rock Ridge extensions so leave out
431.2Sthorpejeverything between the first and last . in the paths on the CD.
441.2SthorpejFor example, the path NetBSD-1.3.2 would show up as NetBSD-1.2.
451.2Sthorpej
461.2Sthorpej
471.2SthorpejThe diskimage file can be found on the CDROM at the following
481.2Sthorpejlocation (relative to the mount point of the CD)
491.2Sthorpej
501.2Sthorpej	NetBSD-_VER/pmax/installation/diskimage/diskimage.gz
511.2Sthorpej
521.2Sthorpejand the diskless boot tar file can be found at
531.2Sthorpej
541.2Sthorpej	NetBSD-_VER/pmax/installation/netboot/diskimage.tgz
551.2Sthorpej
561.2SthorpejOnce you have located these files, continue on to either the "Install
571.2Sthorpejvia diskless boot", "Install via diskimage" or "Installing from Ultrix"
581.2Sthorpejsection later in the INSTALL notes.
591.2Sthorpej
601.2Sthorpej
611.2Sthorpej
621.2SthorpejInstall via diskless boot.
631.2Sthorpej--------------------------
641.2Sthorpej
651.2SthorpejThe preferred path is to upgrade or install by diskless-booting a
661.2Sthorpejminimal system via NFS, and using that to upgrade or install.  The
671.2Sthorpejfile
681.2Sthorpej	installation/netboot/diskimage.tar.gz
691.2Sthorpej
701.2Sthorpejcontains a suitable set of files. (it is a tar copy of the contents of
711.2Sthorpeja root filesystem diskimage) .  You will need to find an NFS server,
721.2Sthorpejunpack the tarfile, and setup BOOTP/dhcp service for your pmax.
731.2SthorpejComplete instructions are in the installation notes or the pmax web
741.2Sthorpejpage.
751.2Sthorpej
761.2SthorpejSince the system install utility, sysinst, requires a read/write root,
771.2Sthorpejnetbooting is only feasible if your NFS server exports the diskless
781.2Sthorpejroot read-write.  If this is not possible, you should install via
791.2Sthorpejdiskimage.
801.2Sthorpej
811.2Sthorpej
821.2Sthorpej
831.2SthorpejInstall via diskimage.
841.2Sthorpej----------------------
851.2Sthorpej
861.2SthorpejIf netbooting with a _writable_ NFS root is not possible, the
871.2Sthorpejrecommended installation is to unpack and copy a diskimage onto the
881.2Sthorpejraw partition of a disk.  The diskimage file is in
891.2Sthorpej
901.2Sthorpejinstallation/diskimage/diskimage.gz
911.2Sthorpej
921.2Sthorpejis shipped compressed and is around 8020 kBytes; it uncompresses to
931.2Sthorpejexactly 32Mbytes.
941.2Sthorpej
951.2SthorpejTo install the diskimage onto disk rzX on a NetBSD/pmax system, do:
961.2Sthorpej	disklabel -W /dev/rrzXc
971.2Sthorpej	gunzip -c diskimage.gz | dd of=/dev/rrzXc bs=10240
981.2Sthorpej
991.2SthorpejWhen installing on a disk with not NetBSD or Ultrix label, you may get a
1001.2Sthorpejmessage like:
1011.2Sthorpej	rzX: WARNING: trying Ultrix label, no disk label
1021.2Sthorpejor when installing on an old Ultrix disk, you may get a message like:
1031.2Sthorpej	rzX: WARNING: using ULTRIX partition information
1041.2Sthorpejwhen issuing the "disklabel -W /dev/rrzXc" command.  This can safely be
1051.2Sthorpejignored.
1061.2Sthorpej
1071.2SthorpejMost other NetBSD ports are similar, but use rsdXc instead of rrzXc.
1081.2Sthorpej
1091.2SthorpejOn NetBSD/i386, the `raw disk partition' is the 'd' parttion, so do:
1101.2Sthorpej	disklabel -W /dev/rsdXd
1111.2Sthorpej	gunzip -c diskimage.gz | dd of=/dev/rsdXd bs=10240
1121.2Sthorpej
1131.2SthorpejOn NetBSD, be sure to use disklabel -W to enable writing to the label
1141.2Sthorpejarea of the disk. If you forget this and/or use the `block' device,
1151.2Sthorpejthe dd command will silently fail.
1161.2Sthorpej
1171.2SthorpejOn MS-DOS, use an unzip utlility, then use rawrite.
1181.2Sthorpej
1191.2SthorpejThen boot using, e.g,
1201.2Sthorpej	>> boot -f rz(0,X,0)netbsd		# 3100
1211.2Sthorpej	>> boot 5/rzX/netbsd 			# 5000/200
1221.2Sthorpej	>> boot 3/rzX/netbsd			# other machines
1231.2Sthorpej
1241.2Sthorpej	(NOTE: replace the X with the unit number of your disk:
1251.2Sthorpej         boot 3/rz2/netbsd to boot drive 2 on a 5000/xxx.)
1261.2Sthorpej
1271.2Sthorpejthen continue from ``Once you've booted the diskimage''.
1281.2Sthorpej
1291.2Sthorpej
1301.2Sthorpej
1311.2SthorpejInstalling from Ultrix
1321.2Sthorpej----------------------
1331.2Sthorpej
1341.2SthorpejThe Ultrix bootloader can boot ECOFF-format NetBSD kernels.
1351.2SthorpejSo the technique of dd'ing a disk image into swap, copying
1361.2Sthorpeja kernel to the root, and then booting via the "n" argument
1371.2Sthorpejshould work with Ultrix too.  Since Ultrix cannot mount
1381.2Sthorpej4.4BSD format FFS filesystems, just dd the diskimage into
1391.2Sthorpejyour swap partition, copy a netbsd.ecoff kernel from the FTP site,
1401.2Sthorpejand proceed from step #5 of the `Upgrade via diskimage' above.
1411.2Sthorpej
1421.2SthorpejYou should do this from single-user mode, to ensure that swapping is
1431.2Sthorpejnot enabled when you copy the diskimage into the swap partition.
1441.2Sthorpej
1451.2SthorpejOn Ultrix, use the "chpt -q /dev/rz?c" command to be sure your swap
1461.2Sthorpejpartition (typically "b") is big enough to hold the diskimage (32Mbytes
1471.2Sthorpejor more).
1481.4Sthorpej
1491.4SthorpejAgain, be sure to specify the partition where you dd'ed the NetBSD
1501.4Sthorpejdiskimage as your root device in step #7!
1511.4Sthorpej
1521.4Sthorpej
1531.4SthorpejDetails of dd'ing a disk image into the swap partition are covered in
1541.4Sthorpejthe "QUICK.INSTALL" file, which should be in the same directory where
1551.4Sthorpejthese install notes are located.
1561.4Sthorpej
1571.4Sthorpej
1581.4Sthorpej
1591.2SthorpejOnce you've booted the diskimage
1601.2Sthorpej--------------------------------
1611.2Sthorpej
1621.2SthorpejOnce you'e booted a diskimage and pointed the kernel at the approriate
1631.2Sthorpejdevices to use for root, and dump, NetBSD kernel will prompt you for
1641.4Sthorpeja single-user shell;
1651.4Sthorpej
1661.4Sthorpej	Enter pathname of shell or RETURN for sh: 
1671.4Sthorpej
1681.4SthorpejAt this point, press the RETURN key.
1691.4Sthorpejthen when you get a standalone root prompt, set your terminal type
1701.4Sthorpej
1711.4Sthorpej	TERM=pmax; export TERM;
1721.4Sthorpej
1731.4Sthorpejfor a framebuffer console, or
1741.4Sthorpej
1751.2Sthorpej	TERM=vt100; export TERM
1761.2Sthorpej
1771.2Sthorpejif using a serial console with a vt100-compatible terminal.
1781.2Sthorpej
1791.2SthorpejNext, you need to ensure that the root filesystem is writable so that
1801.4Sthorpejsysinst can create temporary files, temporary disklabels, etc.
1811.4SthorpejIf you booted via NFS, the diskless root should already be writable.
1821.4SthorpejIf you booted from disk, type
1831.4Sthorpej
1841.4Sthorpej	mount /dev/rzXY /
1851.2Sthorpej
1861.2Sthorpejwhere X is the disk unit you booted from, and Y is either a or b,
1871.4Sthorpej(e.g., use /dev/rz2a for drive 2 with diskimage in the 'a' partition,
1881.4Sthorpejand rz2b for diskimage in swap.)
1891.3Sthorpej
1901.4Sthorpej
1911.4SthorpejCD-ROM INSTALLATION NOTE:  If you are installing from a CD-ROM, sysinst
1921.2Sthorpejwill offer you a default choice of "cd0" for the CD-ROM device.  Unlike
1931.2Sthorpejother NetBSD ports, NetBSD/pmax currently uses the same device driver
1941.2Sthorpejfor both hard disks and CD-ROMs.  You will need to specify "rzX" (where
1951.2SthorpejX is the SCSI id of the CD-ROM) as the CD-ROM device.  Also note that
1961.2Sthorpejsysinst doesn't expect a partition - just the base device.  If you still
1971.2Sthorpejhave problems, you can try issuing the following command before starting
1981.2Sthorpejsysinst
1991.2Sthorpej
2001.2Sthorpej	mount -r -t cd9660 /dev/rzXc /mnt2
2011.2Sthorpej
2021.2Sthorpejwhere X is the SCSI id of the CD-ROM.  You can then ignore any errors
2031.2Sthorpejtrying to mount the CD-ROM from within sysinst.
2041.2Sthorpej
2051.2Sthorpej
2061.2SthorpejThen, start sysinst
2071.2Sthorpej
2081.2Sthorpej	sysinst
2091.2Sthorpej
2101.2SthorpejThen, choose 'install' or 'upgrade'.
2111.2Sthorpej
2121.2SthorpejWhen you've finished the install/upgrade, be sure to edit /etc/rc.conf
2131.2Sthorpejand set "rc_configured" to YES when you are done.  If you're doing an
2141.2Sthorpejupgrade, merge your old etc from /etc.old into /etc.
2151.2Sthorpej
2161.2SthorpejYou're then ready to reboot!
2171.2Sthorpej
2181.2Sthorpej
2191.2Sthorpej
2201.2SthorpejPost-intallation notes:
2211.2Sthorpej----------------------
2221.2SthorpejSome of the files in the NetBSD _VER distribution might need to be
2231.2Sthorpejtailored for your site.  In particular, the /etc/sendmail.cf file will
2241.2Sthorpejalmost definitely need to be adjusted, and other files in /etc will
2251.2Sthorpejprobably need to be modified.  If you are unfamiliar with UN*X-like
2261.2Sthorpejsystem administration, it's recommended that you buy a book that
2271.2Sthorpejdiscusses it.
2281.2Sthorpej
2291.2SthorpejNetBSD/pmax 1.3 uses an X11R5 X server. These servers cannot read the
2301.2Sthorpejcompressed fonts which are shipped with standard X11R6 configurations.
2311.2Sthorpej
2321.2SthorpejIf you installed X11 and want to run a local Xserver, you must take
2331.2Sthorpejpost-installation steps to make the X11R5 server work that are
2341.2Sthorpejstandard for X11R6.3. The distribution file /usr/X11R6/bin/README.pmax
2351.2Sthorpejcontains information on how to choose an Xserver and how to access
2361.2Sthorpejcompressed fonts via a font server or to decompress the X fonts
2371.3Sthorpejafter installation.  Please follow the directions there.
2381.2Sthorpej