install revision 1.12
1 $NetBSD: install,v 1.12 1998/11/16 07:45:20 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 153 154Once you've booted the diskimage 155--------------------------- 156 157Once you'e booted a diskimage and pointed the kernel at the approriate 158devices to use for root, and dump, NetBSD kernel will prompt you for 159a single-user shell; 160 161 Enter pathname of shell or RETURN for sh: 162 163At this point, press the RETURN key. 164then when you get a standalone root prompt, set your terminal type 165 166 TERM=pmax; export TERM; 167 168for a framebuffer console, or 169 170 TERM=vt100; export TERM 171 172if using a serial console with a vt100-compatible terminal. 173 174Next, you need to ensure that the root filesystem is writable so that 175sysinst can create temporary files, temporary disklabels, etc. 176If you booted via NFS, the diskless root should already be writable. 177If you booted from disk, type 178 179 mount /dev/rzXY / 180 181where X is the disk unit you booted from, and Y is either a or b, 182(e.g., use /dev/rz2a for drive 2 with diskimage in the 'a' partition, 183and rz2b for diskimage in swap.) 184 185 186Then, start sysinst 187 188 sysinst 189 190Then, choose 'install' or 'upgrade'. 191 192When you've finished the install/upgrade, be sure to edit /etc/rc.conf 193and set "rc_configured" to YES when you are done. If you're doing an 194upgrade, merge your old etc from /etc.old into /etc. 195 196You're then ready to reboot! 197 198 199 200Post-intallation notes: 201---------------------- 202Some of the files in the NetBSD _VER distribution might need to be 203tailored for your site. In particular, the /etc/sendmail.cf file will 204almost definitely need to be adjusted, and other files in /etc will 205probably need to be modified. If you are unfamiliar with UN*X-like 206system administration, it's recommended that you buy a book that 207discusses it. 208 209NetBSD/pmax 1.3 uses an X11R5 X server. These servers cannot read the 210compressed fonts which are shipped with standard X11R6 configurations. 211 212If you installed X11 and want to run a local Xserver, you must take 213post-installation steps to make the X11R5 server work that are 214standard for X11R6.3. The distribution file /usr/X11R6/bin/README.pmax 215contains information on how to choose an Xserver and how to access 216compressed fonts via a font server or to decompress the X fonts 217after installation. Please follow the directions there. 218