upgrade revision 1.6 1 1.4 chopps The upgrade to NetBSD 1.2 is a binary upgrade; it would be prohibitive
2 1.4 chopps to make users upgrade by compiling and installing the 1.2 sources, and
3 1.2 chopps it would be very difficult to even compile a set of instructions that
4 1.2 chopps allowed them to do so. Because of the various changes to the system,
5 1.2 chopps it is impractical to upgrade by recompiling from the sources and
6 1.2 chopps installing.
7 1.2 chopps
8 1.3 jtc To do the upgrade, you must have the NetBSD kernel on AmigaDOS and
9 1.4 chopps you must transfer the upgrade file system upgr-12.fs onto the swap
10 1.3 jtc partition of the NetBSD hard disk. You must also have at least the
11 1.4 chopps "base12" binary distribution set available, so that you can upgrade
12 1.3 jtc with it, using one of the upgrade methods described above. Finally,
13 1.3 jtc you must have sufficient disk space available to install the new
14 1.3 jtc binaries. Since the old binaries are being overwritten in place,
15 1.3 jtc you only need space for the new binaries, which weren't previously
16 1.3 jtc on the system. If you have a few megabytes free on each of your
17 1.3 jtc root and /usr partitions, you should have enough space.
18 1.2 chopps
19 1.2 chopps Since upgrading involves replacing the kernel, and most of the system
20 1.2 chopps binaries, it has the potential to cause data loss. You are strongly
21 1.2 chopps advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the
22 1.2 chopps NetBSD partition or on another operating system's partition, before
23 1.2 chopps beginning the upgrade process.
24 1.2 chopps
25 1.2 chopps To upgrade your system, follow the following instructions:
26 1.2 chopps
27 1.4 chopps Transfer the upgrade miniroot file system onto the hard disk
28 1.3 jtc partition used by NetBSD for swapping, as described in the
29 1.3 jtc "Preparing your System for NetBSD Installation" section above.
30 1.3 jtc
31 1.4 chopps Now boot up NetBSD using the 1.2 kernel using the loadbsd
32 1.3 jtc command:
33 1.3 jtc
34 1.3 jtc loadbsd -b netbsd
35 1.3 jtc
36 1.5 jtc If you machine has a split memory space, like, e.g., DraCo
37 1.4 chopps machines, use this instead:
38 1.4 chopps
39 1.4 chopps loadbsd -bn2 netbsd
40 1.4 chopps
41 1.6 is * Directly booting NetBSD, with boot blocks installed:
42 1.6 is
43 1.6 is [This description is for V41 (OS 3.1) ROMs. For older ROMs,
44 1.6 is there might be small differences. Check your AmigaOS documentation
45 1.6 is to learn about the exact procedure.]
46 1.6 is
47 1.6 is Reboot your machine, holding down both mouse buttons if you
48 1.6 is have a 2-button mouse, the outer mouse buttons if you have
49 1.6 is a 3-button mouse. On the DraCo, press the left mouse button
50 1.6 is instead, when the boot screen prompts you for it.
51 1.6 is
52 1.6 is From the boot menu, select "Boot Options".
53 1.6 is Select the swap partition with the miniroot, and then "ok".
54 1.6 is Select "Boot" now. The machine will boot the bootblock, which
55 1.6 is will prompt your for a command line. You have a few seconds time
56 1.6 is to change the default. Entering an empty line will accept the
57 1.6 is default.
58 1.6 is
59 1.6 is The bootblock uses command lines of the form:
60 1.6 is
61 1.6 is file options
62 1.6 is
63 1.6 is where file is the kernel file name on the partition where the
64 1.6 is boot block is on, and options are the same as with loadbsd.
65 1.6 is E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2".
66 1.6 is
67 1.6 is * Once your kernel boots:
68 1.6 is
69 1.3 jtc You should see the screen clear and some information about
70 1.3 jtc your system as the kernel configures the hardware. Note which
71 1.3 jtc hard disk device is configured that contains your root and
72 1.3 jtc swap partition. When prompted for the root device, type
73 1.3 jtc 'sd0*' (replacing 0 with the disk number that NetBSD used for
74 1.3 jtc your root/swap device). The '*' character indicates that the
75 1.4 chopps root file system is contained on the swap partition.
76 1.3 jtc When you reach the prompt asking you for a shell name, just
77 1.3 jtc hit return.
78 1.2 chopps
79 1.2 chopps You will be presented with some information about the upgrade
80 1.2 chopps process and a warning message, and will be asked if you wish
81 1.2 chopps to proceed with the upgrade process. If you answer
82 1.2 chopps negatively, the upgrade process will stop, and your disk will
83 1.2 chopps not be modified. If you answer affirmatively, the upgrade
84 1.2 chopps process will begin, and your disk will be modified. You may
85 1.2 chopps hit Control-C to stop the upgrade process at any time.
86 1.2 chopps However, if you hit it at an inopportune moment, your system
87 1.2 chopps may be left in an inconsistent (and possibly unusable) state.
88 1.2 chopps
89 1.2 chopps You will be asked if you wish to upgrade your file systems to
90 1.2 chopps the new file system format. If you do, reply affirmatively.
91 1.2 chopps If you don't have your file systems upgraded now, you should
92 1.2 chopps probably do it manually after the install process is complete,
93 1.2 chopps by using "fsck -c 2". Read the fsck(8) manual page for more
94 1.2 chopps details.
95 1.2 chopps
96 1.2 chopps The upgrade program will then check your root file system,
97 1.2 chopps and, if you approved, will upgrade it to the new file system
98 1.2 chopps format. It will then mount your root file system on /mnt.
99 1.2 chopps
100 1.2 chopps If your file systems are being upgraded, the upgrade script
101 1.2 chopps will copy the new fsck(8) program to your hard disk and
102 1.2 chopps upgrade your remaining file systems.
103 1.2 chopps
104 1.2 chopps The upgrade program will then mount all of your file systems
105 1.2 chopps under /mnt. (In other words, your root partition will be
106 1.2 chopps mounted on /mnt, your /usr partition on /mnt/usr, etc.)
107 1.2 chopps
108 1.2 chopps If you don't already have the NetBSD distribution sets on your
109 1.2 chopps disk, look in the installation section for information on how
110 1.2 chopps to transfer them to your disk.
111 1.2 chopps
112 1.2 chopps Once the distribution sets are transferred to your disk,
113 1.2 chopps continue here. (Obviously, if the NetBSD distribution sets
114 1.2 chopps are already on your disk, because you've transferred them
115 1.2 chopps before starting the upgrade process, you don't need to
116 1.2 chopps transfer them again now!)
117 1.2 chopps
118 1.2 chopps After the software has been transferred to the machine (or
119 1.2 chopps mounted, in the case of upgrading via NFS), change into the
120 1.4 chopps directory containing the "base12" distribution set. Once you
121 1.2 chopps are there, run the "Set_tmp_dir" command, and hit return at
122 1.2 chopps the prompt to select the default answer for the temporary
123 1.2 chopps directory's path name. (It should be the path name of the
124 1.2 chopps directory that you're in.)
125 1.2 chopps
126 1.4 chopps Run the command "Extract base12" to upgrade the base
127 1.2 chopps distribution.
128 1.2 chopps
129 1.2 chopps Repeat the above two steps for all of the sets you wish to
130 1.2 chopps upgrade. (For each, change into the directory containing the
131 1.2 chopps set, run "Set_tmp_dir" and accept the default path name, then
132 1.2 chopps run the "Extract <setname>" command.)
133 1.2 chopps
134 1.2 chopps If you were previously using the security distribution set,
135 1.2 chopps you MUST upgrade to the new version, or you will not be able
136 1.2 chopps to log in when the upgrade process is complete. Similarly, if
137 1.2 chopps you were not previously using the security set, you must NOT
138 1.2 chopps upgrade to the new version.
139 1.2 chopps
140 1.2 chopps When you are done upgrading all of the distribution sets you
141 1.2 chopps wish to upgrade, issue the command "Cleanup". It will clean
142 1.6 is up the installation, by remaking some system databases, and
143 1.6 is install the kernel and a bootblock onto the root partition.
144 1.6 is When it is complete, you should use "halt" to halt the system.
145 1.2 chopps
146 1.4 chopps Your system has now been upgraded to NetBSD 1.2.
147 1.2 chopps
148 1.4 chopps After a new kernel has been copied to your hard disk, your
149 1.4 chopps machine is a complete NetBSD 1.2 system. However, that
150 1.2 chopps doesn't mean that you're finished with the upgrade process.
151 1.2 chopps There are several things that you should do, or might have to
152 1.2 chopps do, to insure that the system works properly.
153 1.2 chopps
154 1.2 chopps First, if you did not upgrade your file systems to the new
155 1.2 chopps file system format during the upgrade process, you may want to
156 1.2 chopps do so now, with "fsck -c 2". If you are unsure about the
157 1.2 chopps process, it's suggested that you read the fsck(8) manual page.
158 1.2 chopps
159 1.4 chopps Second, you will probably want to get the etc12 distribution,
160 1.2 chopps extract it, and compare its contents with those in your /etc/
161 1.2 chopps directory. You will probably want to replace some of your
162 1.2 chopps system configuration files, or incorporate some of the changes
163 1.2 chopps in the new versions into yours.
164 1.2 chopps
165 1.2 chopps Third, you will probably want to update the set of device
166 1.2 chopps nodes you have in /dev. If you've changed the contents of
167 1.2 chopps /dev by hand, you will need to be careful about this, but if
168 1.2 chopps not, you can just cd into /dev, and run the command "sh
169 1.2 chopps MAKEDEV all".
170 1.2 chopps
171 1.2 chopps Fourth, you must deal with certain changes in the formats of
172 1.2 chopps some of the configuration files. The most notable change is
173 1.2 chopps that the "options" given to many of the file systems in
174 1.2 chopps /etc/fstab or by hand have changed, and some of the file
175 1.2 chopps systems have changed names. To find out what the new options
176 1.4 chopps are, it's suggested that you read the manual page for the file
177 1.4 chopps systems' mount commands, for example mount_nfs(8) for NFS.
178 1.4 chopps (Note that the information for mounts of type "ffs", i.e. Fast
179 1.4 chopps File Systems, are contained in the mount_ffs(8) man page.)
180 1.2 chopps
181 1.2 chopps Finally, you will want to delete old binaries that were part
182 1.2 chopps of the version of NetBSD that you upgraded from and have since
183 1.4 chopps been removed from the NetBSD distribution. If upgrading from
184 1.4 chopps a NetBSD version older than 1.0, you might also want to
185 1.4 chopps recompile any locally-built binaries, to take advantage of the
186 1.4 chopps shared libraries. (Note that any new binaries that you build
187 1.4 chopps will be dynamically linked, and therefore take advantage of
188 1.4 chopps the shared libraries, by default. For information on how to
189 1.4 chopps make statically linked binaries, see the cc(1) and ld(1)
190 1.4 chopps manual pages.)
191