Home | History | Annotate | Line # | Download | only in pmax
upgrade revision 1.4
      1 
      2 The preferred upgrade path is to set up a diskless-boot host, unpack
      3 and boot boot 1.3 diskimage as for a network installation, and to use
      4 the sysinst tool to upgrade your system.   Please see the `Installation'
      5 section for  further information.
      6 
      7 
      8 Upgrade via diskimage.
      9 ----------------------
     10 
     11 If you cannot netboot, the recommended path is to upgrade by booting a
     12 diskimage from your swap partition.  Pmaxes cannot boot out out of
     13 anything but the 'a' partition. However, you *can* boot an upgrade
     14 kernel off your 'a' partition and tell that kernel  to use your
     15 'b' partition as its root.  The steps to do this
     16 (after you've  fetched the diskimage) with a current root of rzX are:
     17 
     18 	1) boot single-user from your current root, rzX.
     19 	    Be *sure* not to start swapping:
     20 
     21 		>> boot -f rz(0,X,0)netbsd -s 		# 3100
     22 		>> boot 5/rzX/netbsd -s 		# 5000/200
     23 		>> boot 3/rzX/netbsd -s 		# others
     24 
     25 	(NOTE: replace the X with the unit number of your disk:
     26          boot 3/rz2/netbsd to boot drive 2 on a 5000/xxx.)
     27 
     28 	2) When you get a single-user prompt,  remount the
     29 	   root filesystem read-write. (You wil need to update the
     30 	   kernel soon.)
     31 
     32 		# mount /
     33 
     34 	   Then mount the filesystem with the diskimage, and
     35 	   uncompress and dd the diskimage into swap (b) partition.
     36 	   You will also need /usr mounted to run gunzip:
     37 
     38 		# mount /usr
     39 		# gunzip -c diskimage.gz | dd bs=10240 of=/dev/rrzXb
     40 
     41 	3) Mount swap (b) partition readonly on /mnt:
     42 		# mount -r -t ffs /dev/rzXb /mnt
     43 
     44 	4) Copy  the kernel from the B partition to your root:
     45 		cp -p  /mnt/netbsd /netbsd-1.3
     46 	   (this is important; you want the kernel in / and  swap
     47 	   to be a release kernel, or the release binaries will not work.)
     48 
     49 	5) halt:
     50 		# halt
     51 
     52 	6) Reboot with an argument of "n", telling the kernel to
     53 	   ask what device to use as  root:
     54 
     55 		>> boot -f rz(0,X,0)netbsd-1.3 n 	# 3100
     56 		>> boot 5/rzX/netbsd-1.3 n	 	# 5000/200
     57 		>> boot 3/rzX/netbsd-1.3 n 		# others
     58 
     59 	(NOTE: the n after the kernel name is a literal "n",
     60 	 not the disk unit number or partition. 
     61 	 It is an argument telling the kernel to ask for a root device.
     62 	 NOTE: replace the X with the unit number of your disk:
     63          boot 3/rz2/netbsd to boot drive 2 on a 5000/xxx.)
     64 
     65 
     66 	7) The "n" argument tells the kernel to prompt you for
     67 	   the  root device, dump device, and root fileysystem type.
     68 	     Enter when the kernel asks for
     69 		Root device:
     70 
     71 	Tell it rzXb, where X is the same disk unit as in step 6.
     72 	Here's an example, again assuming drive  2 as in step 6:
     73 
     74 	KN03-AA V5.2b    (PC: 0x80051f1c, SP: 0xffffdeb0)
     75 	>> boot 3/rz2/netbsd n
     76 
     77 		boot device: rz2
     78 	root device (default rz2a): 
     79 	        <<< enter `rz2b' >>>
     80 	dump device (default rz2b): 
     81 	        <<< enter `none' >>>
     82 	file system (default generic): 
     83 	        <<< enter `ffs' >>>
     84 	root on rz2b
     85 
     86 
     87 then continue from the ``Once you've booted the diskimage'' step of
     88 the Installation instructions.
     89 
     90 
     91 
     92 
     93