install revision 1.1
1NOTE: In the following examples you will see references to 2disk devices. For those not familiar with NetBSD, the following 3prefixes are used to denote drive types: 4 5 sd SCSI disk 6 rd HP-IB disk 7 8In the examples that follow, `rd' will be used. The steps are 9exactly the same for `sd' disks. Only the names have changed 10to protect the innocent. 11 12Assuming you have read this document thoroughly and kept good notes 13about your partitions, the rest should be fairly straight forward. 14 15Before you begin, you must have already prepared the target disk 16as detailed in the section on preparing your system for install. 17 18The following is a walk-through of the steps necessary to finish 19what the preparation process has already begun. You may choose to 20stop the process at any time, but if you do, it's recommended that 21you start over from scratch. 22 23 First you need to boot off of the target disk which 24 you have made in the preparation process. To do this, 25 halt HP-UX, power-cycle your machine, and hit the space 26 bar during the boot ROM's probing/testing sequence. 27 You should eventually be presented with a list of systems 28 from which to boot. You want the one called `SYS_PBOOT'. 29 30 After selecting `SYS_PBOOT', your system should load the 31 NetBSD boot block and ask you for a kernel to load. 32 Enter the following to boot NetBSD into single-user mode. 33 (Note: it will come into single-user anyway, as there is 34 not yet an fstab, but this makes it happen more gracefully.) 35 36 netbsd -s 37 38 The kernel will now load, and configure your hardware. 39 Make a note of the device it lists when mounting the 40 root filesystem. It should look something like this: 41 42 Changing root device to rd0a 43 44 The message above is an example only. Your message may 45 be different. 46 47 Check the root filesystem. Use the raw flavor of the 48 device listed during the `Changing root device...' 49 message. Example: 50 51 fsck -p /dev/rrd0a 52 53 Mount the root filesystem: 54 55 mount /dev/rd0a / 56 57 It's now time to newfs all of the other partitions you 58 listed in your disk label. So, for example, if rd0e and 59 rd0f were to have filesystems put on them, you would 60 do the following: 61 62 newfs /dev/rrd0e 63 newfs /dev/rrd0f 64 65 Ensure that the mount-points for these filesystems are clean. 66 If these filesystems are to be /var and /usr, respectively, 67 just check that there are no files in those directories. 68 There shouldn't be. Once you've made sure, go ahead and 69 mount those filesystems. 70 71 It's now time to get the distribution sets onto the root 72 or other filesystem. There are several programs in /ibin 73 to help you with this. At your disposal, you have: 74 75 ftp 76 gzip 77 tar 78 extract 79 80 Except for extract, which is just a script to help the 81 process along, these are statically-linked versions of 82 themselves, which normally appear in /usr/bin. 83 84 If you placed the distribution sets on tape, go to the 85 directory where you wish to temporarily place them and 86 extract them from tape, using /dev/nrstX for SCSI tapes 87 or /dev/nrctX for HP-IB cartridge tapes, where X is the 88 unit number of the tape, probably 0. 89 90 tar xvf /dev/nrst0 91 92 If this extracts the sets directly into your current 93 directory, terrific. Otherwise, go to the directory in 94 which they live. Skip on to extracting the sets. 95 96 If you will be grabbing the sets off of the network somehow, 97 configure your network interface: 98 99 ifconfig le0 inet <ipaddr> <netmask> <broadcast> 100 route add default <addr-of-default-router> 101 102 If you will be ftp'ing the sets from one of the NetBSD ftp 103 sites, go to the directory where you wish to temporarily 104 place them and download them from the ftp site of your choice. 105 Since you haven't yet created a resolv.conf, you'll need to 106 use the IP address. 107 108 /ibin/ftp <ftp_ipaddr> 109 110 If you will be getting the sets from an NFS server, mount 111 the filesystem on the server which has the sets, and go 112 to the directory that has them. Again, you'll need to use 113 the IP address of the server. 114 115 mount -t nfs <serv_ipaddr>:<server_dir> <mount_point> 116 117 At this point, you have everything necessary to label any 118 additional disks that you wish to label. If you created 119 additional labels in the preparation phase, and have 120 access to them now, go ahead and label the disks they 121 correspond to: 122 123 disklabel -W rd1 124 disklabel -r -R rd1 rd1.label 125 where: 126 rd1 additional disk you wish to label 127 rd1.label file containing disk label information 128 129 You may check these labels once they are on the disk: 130 131 disklabel -r rd1 132 where: 133 rd1 additional disk you wish to label 134 135 A problem with a partition (such as overlaps or not falling 136 on a cylinder boundary) will be noted with a `*'. If you see 137 these, re-edit your label by the method of your choice (on 138 another machine, perhaps, or with ed(1), for the brave), 139 transfer it to a place that's usable (if necessary) and 140 label the disk again. 141 142 Once these disks have been labeled, you may newfs the 143 partitions that are to contain filesystems and mount them. 144 145 You should now be ready to extract the filesets. The program 146 /ibin/extract should help you with this. For example: 147 148 /ibin/extract base 149 -or- /ibin/extract base.tar.gz 150 151 Do this for all of the filesets you wish to extract. As your disk 152 fills up, you may wish to remove the sets once you have extracted 153 them. 154 155 You should have everything necessary to use an editor by now. 156 Set your TERM environment variable: 157 158 setenv TERM hp300h (csh) 159 -or- export TERM=hp300h (sh) 160 161 hp300h is the terminal type for the HP 9000/300 ITE console. 162 If you are using a serial console, change the TERM variable 163 appropriately. Now, initialize the terminal: 164 165 tset 166 167 You should be able to use vi now. 168 169 Create an /etc/fstab. Example fstabs are provided in 170 /etc/fstab.sd and /etc/fstab.rd. 171 172 Edit your host table, /etc/hosts. In it, place the IP 173 address of this host and the IP address of your default 174 router. 175 176 Edit the file /etc/myname. In it, place the symbolic name 177 of your machine. 178 179 Edit the file /etc/defaultdomain. In it, place the name 180 of your YP domain. If you will not be using YP, simply 181 enter the domain name of your site. 182 183 Edit the file /etc/mygate. In it, place the name of 184 your default router, as your listed it in /etc/hosts. 185 186 Edit the file /etc/hostname.le0. In it, place the following 187 information: 188 189 inet <myname.my.domain> <netmask> <broadcast> 190 191 where: 192 <myname.my.domain> is the name corresponsing to 193 the IP address for that interface, as you listed in 194 /etc/hosts. 195 196 <netmask> is the netmask for your network. 197 198 <broadcast> is the broadcast address for your network. 199 200 Repeat this step for any additional network interfaces you 201 may have. 202 203 Edit the file /etc/ttys. Make sure that the entries are 204 correct for whichever console type you have. /dev/console 205 is correct for ITE, /dev/tty0 for console on dca, and 206 /dev/tty00 for console on dcm. You may get more information 207 about /etc/ttys by doing `man ttys', providing you have 208 installed the system manual set. 209 210 Ok, cross your fingers and reboot: 211 212 sync; sync; sync; reboot 213 214 Providing you entered all information correctly, your 215 machine will boot into multi-user mode. Your system 216 will need a few tweaks here and there (like /etc/sendmail.cf 217 and /etc/netstart, perhaps), but that's the easy stuff. 218 219 CONGRATULATIONS! You have successfully installed NetBSD 220 onto your hp300! Pat yourself on the back. This might also 221 be a good time to remove /ibin, as you will no longer need 222 it, and it is provided solely for bootstrapping purposes. 223