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