upgrade revision 1.15
1 $NetBSD: upgrade,v 1.15 1998/05/12 00:00:19 ross Exp $ 2 3The upgrade to NetBSD _VER is a binary upgrade; it can be quite difficult 4to advance to a later version by recompiling from source due primarily 5to interdependencies in the various components. 6 7To do the upgrade, you must have the NetBSD kernel on AmigaDOS and 8you must transfer the miniroot file system miniroot.fs onto the swap 9partition of the NetBSD hard disk. You must also have at least the 10"base" binary distribution set available, so that you can upgrade 11with it, using one of the upgrade methods described above. Finally, 12you must have sufficient disk space available to install the new 13binaries. Since the old binaries are being overwritten in place, 14you only need space for the new binaries, which weren't previously 15on the system. If you have a few megabytes free on each of your 16root and /usr partitions, you should have enough space. 17 18Since upgrading involves replacing the kernel, and most of the system 19binaries, it has the potential to cause data loss. You are strongly 20advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the 21NetBSD partition or on another operating system's partition, before 22beginning the upgrade process. 23 24To upgrade your system, follow the following instructions: 25 26 Transfer the miniroot file system onto the hard disk partition 27 used by NetBSD for swapping, as described in the "Preparing 28 your System for NetBSD Installation" section above. 29 30 Now boot up NetBSD using the _VER kernel using the loadbsd 31 command: 32 33 loadbsd -b netbsd 34 35 If you machine has a split memory space, like, e.g., DraCo 36 machines, use this instead: 37 38 loadbsd -bn2 netbsd 39 40 * Directly booting NetBSD, with boot blocks installed: 41 42 [This description is for V40 (OS 3.1) ROMs. For older ROMs, 43 there might be small differences. Check your AmigaOS documentation 44 to learn about the exact procedure.] 45 46[XXX another note about bootblock support?] 47 48 Reboot your machine, holding down both mouse buttons if you 49 have a 2-button mouse, the outer mouse buttons if you have 50 a 3-button mouse. On the DraCo, press the left mouse button 51 instead, when the boot screen prompts you for it. 52 53 From the boot menu, select "Boot Options". 54 Select the swap partition with the miniroot, and then "ok". 55 Select "Boot" now. The machine will boot the bootblock, which 56 will prompt your for a command line. You have a few seconds time 57 to change the default. Entering an empty line will accept the 58 default. 59 60 The bootblock uses command lines of the form: 61 62 file options 63 64 where file is the kernel file name on the partition where the 65 boot block is on, and options are the same as with loadbsd. 66 E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2". 67 68 * Once your kernel boots: 69 70 You should see the screen clear and some information about 71 your system as the kernel configures the hardware. Note which 72 hard disk device is configured that contains your root and 73 swap partition. When prompted for the root device, type 74 'sd0b' (replacing 0 with the disk number that NetBSD used for 75 your root/swap device). When prompted for a dump device, 76 answer 'none' for the upgrade. (For a normal boot, you would 77 tell it one of the swap devices). When prompted for the root 78 filesystem type, confirm 'generic', which will auto-detect it. 79 80 You will be presented with some information about the upgrade 81 process and a warning message, and will be asked if you wish 82 to proceed with the upgrade process. If you answer 83 negatively, the upgrade process will stop, and your disk will 84 not be modified. If you answer affirmatively, the upgrade 85 process will begin, and your disk will be modified. You may 86 hit Control-C to stop the upgrade process at any time. 87 However, if you hit it at an inopportune moment, your system 88 may be left in an inconsistent (and possibly unusable) state. 89 90 You will now be greeted and reminded of the fact that this is a 91 potential dangerous procedure and that you should not upgrade the 92 etc-set. 93 94 When you decide to proceed, you will be prompted to enter 95 your root disk. After you've done this, it will be checked 96 automatically to make sure that the filesystem is in a sane 97 state before making any modifications. After this is done, 98 you will be asked if you want to configure your network. 99 100 You are now allowed to edit your fstab. Normally you don't have 101 to. Note that the upgrade-kit uses it's own copy of the fstab. 102 Whatever you do here *won't* affect your actual fstab. 103 After you are satisfied with your fstab, the upgrade-kit will check 104 all filesystems mentioned in it. When they're ok, they will be 105 mounted. 106 107 You will now be asked if your sets are stored on a normally 108 mounted filesystem. You should answer 'y' to this question if 109 you have the sets stored on a filesystem that was present in 110 the fstab. The actions you should take for the set extraction 111 are pretty logical (I think). 112 113 After you have extracted the sets, the upgrade kit will proceed 114 with setting the timezone and installing the kernel and bootcode. 115 This is all exactly the same as described in the installation 116 section. 117 118Your system has now been upgraded to NetBSD _VER. 119 120 After a new kernel has been copied to your hard disk, your 121 machine is a complete NetBSD _VER system. However, that 122 doesn't mean that you're finished with the upgrade process. 123 There are several things that you should do, or might have to 124 do, to insure that the system works properly. 125 126 You will probably want to get the etc distribution, 127 extract it, and compare its contents with those in your /etc 128 directory. You will probably want to replace some of your 129 system configuration files, or incorporate some of the changes 130 in the new versions into yours. 131 132 You will want to delete old binaries that were part 133 of the version of NetBSD that you upgraded from and have since 134 been removed from the NetBSD distribution. If upgrading from 135 a NetBSD version older than 1.0, you might also want to 136 recompile any locally-built binaries, to take advantage of the 137 shared libraries. (Note that any new binaries that you build 138 will be dynamically linked, and therefore take advantage of 139 the shared libraries, by default. For information on how to 140 make statically linked binaries, see the cc(1) and ld(1) 141 manual pages.) 142