install revision 1.11
1 $NetBSD: install,v 1.11 1998/11/16 01:07:16 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 99Most other NetBSD ports are similar, but use rsdXc instead of rrzXc. 100 101On NetBSD/i386, the `raw disk partition' is the 'd' parttion, so do: 102 disklabel -W /dev/rsdXd 103 gunzip -c diskimage.gz | dd of=/dev/rsdXd bs=10240 104 105On NetBSD, be sure to use disklabel -W to enable writing to the label 106area of the disk. If you forget this and/or use the `block' device, 107the dd command will silently fail. 108 109On MS-DOS, use an unzip utlility, then use rawrite. 110 111Then boot using, e.g, 112 >> boot -f rz(0,X,0)netbsd # 3100 113 >> boot 5/rzX/netbsd # 5000/200 114 >> boot 3/rzX/netbsd # other machines 115 116 (NOTE: replace the X with the unit number of your disk: 117 boot 3/rz2/netbsd to boot drive 2 on a 5000/xxx.) 118 119then continue from ``Once you've booted the diskimage''. 120 121 122 123Installing from Ultrix 124---------------------- 125 126The Ultrix bootloader can boot ECOFF-format NetBSD kernels. 127So the technique of dd'ing a disk image into swap, copying 128a kernel to the root, and then booting via the "n" argument 129should work with Ultrix too. Since Ultrix cannot mount 1304.4BSD format FFS filesystems, just dd the diskimage into 131your swap partition, copy a netbsd.ecoff kernel from the FTP site, 132and proceed from step #5 of the `Upgrade via diskimage' above. 133 134You should do this from single-user mode, to ensure that swapping is 135not enabled when you copy the diskimage into the swap partition. 136 137On Ultrix, use the "chpt -q /dev/rz?c" command to be sure your swap 138partition (typically "b") is big enough to hold the diskimage (32Mbytes 139or more). 140 141Again, be sure to specify the partition where you dd'ed the NetBSD 142diskimage as your root device in step #7! 143 144 145 146Once you've booted the diskimage 147--------------------------- 148 149Once you'e booted a diskimage and pointed the kernel at the approriate 150devices to use for root, and dump, NetBSD kernel will prompt you for 151a single-user shell; 152 153 Enter pathname of shell or RETURN for sh: 154 155At this point, press the RETURN key. 156then when you get a standalone root prompt, set your terminal type 157 158 TERM=pmax; export TERM; 159 160for a framebuffer console, or 161 162 TERM=vt100; export TERM 163 164if using a serial console with a vt100-compatible terminal. 165 166Next, you need to ensure that the root filesystem is writable so that 167sysinst can create temporary files, temporary disklabels, etc. 168If you booted via NFS, the diskless root should already be writable. 169If you booted from disk, type 170 171 mount /dev/rzXY / 172 173where X is the disk unit you booted from, and Y is either a or b, 174(e.g., use /dev/rz2a for drive 2 with diskimage in the 'a' partition, 175and rz2b for diskimage in swap.) 176 177 178Then, start sysinst 179 180 sysinst 181 182Then, choose 'install' or 'upgrade'. 183 184When you've finished the install/upgrade, be sure to edit /etc/rc.conf 185and set "rc_configured" to YES when you are done. If you're doing an 186upgrade, merge your old etc from /etc.old into /etc. 187 188You're then ready to reboot! 189 190 191 192Post-intallation notes: 193---------------------- 194Some of the files in the NetBSD _VER distribution might need to be 195tailored for your site. In particular, the /etc/sendmail.cf file will 196almost definitely need to be adjusted, and other files in /etc will 197probably need to be modified. If you are unfamiliar with UN*X-like 198system administration, it's recommended that you buy a book that 199discusses it. 200 201NetBSD/pmax 1.3 uses an X11R5 X server. These servers cannot read the 202compressed fonts which are shipped with standard X11R6 configurations. 203 204If you installed X11 and want to run a local Xserver, you must take 205post-installation steps to make the X11R5 server work that are 206standard for X11R6.3. The distribution file /usr/X11R6/bin/README.pmax 207contains information on how to choose an Xserver and how to access 208compressed fonts via a font server or to decompress the X fonts 209after installation. Please follow the directions there. 210