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