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