upgrade revision 1.2
1It is possible to easily upgrade your existing NetBSD/sun3 system 2using the upgrade program in the miniroot. If you wish to upgrade 3your system by this method, simply select the `upgrade' option once 4the miniroot has booted. The upgrade program with then guide you 5through the procedure. The upgrade program will: 6 7 * Enable the network based on your system's current 8 network configuration. 9 10 * Mount your existing filesystems. 11 12 * Extract binary sets from the media of your choice. 13 14 * Fixup your system's existing /etc/fstab, changing the 15 occurrences of `ufs' to `ffs' and let you edit the 16 resulting file. 17 18 * Make new device nodes in your root filesystem. 19 20 * Copy a new kernel onto your root partition. 21 NOTE: the existing kernel WILL NOT be backed up; doing 22 so would be pointless, since older kernels may not be 23 capable of running NetBSD 1.2 executables. 24 25 * Install a new boot block. 26 27 * Check your filesystems for integrity. 28 29While using the miniroot's upgrade program is the preferred method 30of upgrading your system, it is possible to upgrade your system 31manually. To do this, follow the following procedure: 32 33 * Place _at least_ the `base' binary set in a filesystem 34 accessible to the target machine. A local filesystem 35 is preferred, since the NFS subsystem in the NetBSD 1.2 36 kernel may be incompatible with your old binaries. 37 38 * Back up your pre-existing kernel and copy the 1.2 39 kernel into your root partition. 40 41 * Reboot with the 1.2 kernel into single-user mode. 42 43 * Check all filesystems: 44 45 /sbin/fsck -pf 46 47 * Mount all local filesystems: 48 49 /sbin/mount -a -t nonfs 50 51 * If you keep /usr or /usr/share on an NFS server, you 52 will want to mount those filesystems as well. To do 53 this, you will need to enable the network: 54 55 sh /etc/netstart 56 57 * Run the update(8) daemon, to ensure that new programs 58 are actually stored on disk. 59 60 update 61 62 * Make sure you are in the root filesystem and extract 63 the `base' binary set: 64 65 cd / 66 tar --unlink -zxvpf /path/to/base11.tar.gz 67 68 NOTE: the `--unlink' option is _very_ important! 69 70 * Install a new boot block: 71 72 cd /usr/mdec 73 disklabel -B <root disk, e.g. sd0> 74 75 * Sync the filesystems: 76 77 sync 78 79 * At this point you may extract any other binary sets 80 you may have placed on local filesystems, or you may 81 wish to extract additional sets at a later time. 82 To extract these sets, use the following commands: 83 84 cd / 85 tar --unlink -zxvpf <path to set> 86 87NOTE: you SHOULD NOT extract the `etc' set if upgrading. Instead, you 88should extract that set into another area and carefully merge the changes 89by hand. 90