install revision 1.10
1 $NetBSD: install,v 1.10 1998/11/16 00:59:38 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 42The diskimage file can be found on the CDROM at the following 43location (relative to the mount point of the CD) 44 45 NetBSD-_VER/pmax/installation/diskimage/diskimage.gz 46 47and the diskless boot tar file can be found at 48 49 NetBSD-_VER/pmax/installation/netboot/diskimage.tgz 50 51Once you have located these files, continue on to either the "Install 52via diskless boot", "Install via diskimage" or "Installing from Ultrix" 53section later in the INSTALL notes. 54 55 56 57Install via diskless boot. 58-------------------------- 59 60The preferred path is to upgrade or install by diskless-booting a 61minimal system via NFS, and using that to upgrade or install. The 62file 63 installation/netboot/diskimage.tar.gz 64 65contains a suitable set of files. (it is a tar copy of the contents of 66a root filesystem diskimage) . You will need to find an NFS server, 67unpack the tarfile, and setup BOOTP/dhcp service for your pmax. 68Complete instructions are in the installation notes or the pmax web 69page. 70 71Since the system install utility, sysinst, requires a read/write root, 72netbooting is only feasible if your NFS server exports the diskless 73root read-write. If this is not possible, you should install via 74diskimage. 75 76 77 78Install via diskimage. 79---------------------- 80 81If netbooting with a _writable_ NFS root is not possible, the 82recommended installation is to unpack and copy a diskimage onto the 83raw partition of a disk. The diskimage file is in 84 85installation/diskimage/diskimage.gz 86 87is shipped compressed and is around 8020 kBytes; it uncompresses to 88exactly 32Mbytes. 89 90To install the diskimage onto disk rzX on a NetBSD/pmax system, do: 91 disklabel -W /dev/rrzXc 92 gunzip -c diskimage.gz | dd of=/dev/rrzXc bs=10240 93 94Most other NetBSD ports are similar, but use rsdXc instead of rrzXc. 95 96On NetBSD/i386, the `raw disk partition' is the 'd' parttion, so do: 97 disklabel -W /dev/rsdXd 98 gunzip -c diskimage.gz | dd of=/dev/rsdXd bs=10240 99 100On NetBSD, be sure to use disklabel -W to enable writing to the label 101area of the disk. If you forget this and/or use the `block' device, 102the dd command will silently fail. 103 104On MS-DOS, use an unzip utlility, then use rawrite. 105 106Then boot using, e.g, 107 >> boot -f rz(0,X,0)netbsd # 3100 108 >> boot 5/rzX/netbsd # 5000/200 109 >> boot 3/rzX/netbsd # other machines 110 111 (NOTE: replace the X with the unit number of your disk: 112 boot 3/rz2/netbsd to boot drive 2 on a 5000/xxx.) 113 114then continue from ``Once you've booted the diskimage''. 115 116 117 118Installing from Ultrix 119---------------------- 120 121The Ultrix bootloader can boot ECOFF-format NetBSD kernels. 122So the technique of dd'ing a disk image into swap, copying 123a kernel to the root, and then booting via the "n" argument 124should work with Ultrix too. Since Ultrix cannot mount 1254.4BSD format FFS filesystems, just dd the diskimage into 126your swap partition, copy a netbsd.ecoff kernel from the FTP site, 127and proceed from step #5 of the `Upgrade via diskimage' above. 128 129You should do this from single-user mode, to ensure that swapping is 130not enabled when you copy the diskimage into the swap partition. 131 132On Ultrix, use the "chpt -q /dev/rz?c" command to be sure your swap 133partition (typically "b") is big enough to hold the diskimage (32Mbytes 134or more). 135 136Again, be sure to specify the partition where you dd'ed the NetBSD 137diskimage as your root device in step #7! 138 139 140 141Once you've booted the diskimage 142--------------------------- 143 144Once you'e booted a diskimage and pointed the kernel at the approriate 145devices to use for root, and dump, NetBSD kernel will prompt you for 146a single-user shell; 147 148 Enter pathname of shell or RETURN for sh: 149 150At this point, press the RETURN key. 151then when you get a standalone root prompt, set your terminal type 152 153 TERM=pmax; export TERM; 154 155for a framebuffer console, or 156 157 TERM=vt100; export TERM 158 159if using a serial console with a vt100-compatible terminal. 160 161Next, you need to ensure that the root filesystem is writable so that 162sysinst can create temporary files, temporary disklabels, etc. 163If you booted via NFS, the diskless root should already be writable. 164If you booted from disk, type 165 166 mount /dev/rzXY / 167 168where X is the disk unit you booted from, and Y is either a or b, 169(e.g., use /dev/rz2a for drive 2 with diskimage in the 'a' partition, 170and rz2b for diskimage in swap.) 171 172 173Then, start sysinst 174 175 sysinst 176 177Then, choose 'install' or 'upgrade'. 178 179When you've finished the install/upgrade, be sure to edit /etc/rc.conf 180and set "rc_configured" to YES when you are done. If you're doing an 181upgrade, merge your old etc from /etc.old into /etc. 182 183You're then ready to reboot! 184 185 186 187Post-intallation notes: 188---------------------- 189Some of the files in the NetBSD _VER distribution might need to be 190tailored for your site. In particular, the /etc/sendmail.cf file will 191almost definitely need to be adjusted, and other files in /etc will 192probably need to be modified. If you are unfamiliar with UN*X-like 193system administration, it's recommended that you buy a book that 194discusses it. 195 196NetBSD/pmax 1.3 uses an X11R5 X server. These servers cannot read the 197compressed fonts which are shipped with standard X11R6 configurations. 198 199If you installed X11 and want to run a local Xserver, you must take 200post-installation steps to make the X11R5 server work that are 201standard for X11R6.3. The distribution file /usr/X11R6/bin/README.pmax 202contains information on how to choose an Xserver and how to access 203compressed fonts via a font server or to decompress the X fonts 204after installation. Please follow the directions there. 205