upgrade revision 1.9 1 1.8 mikel The upgrade to NetBSD _VER is a binary upgrade; it would be prohibitive
2 1.8 mikel to make users upgrade by compiling and installing the _VER sources, and
3 1.1 cgd it would be very difficult to even compile a set of instructions that
4 1.4 jtc allowed them to do so. Because of the many changes to the system, it
5 1.8 mikel is difficult and impractical to upgrade by recompiling from the sources
6 1.4 jtc and installing.
7 1.1 cgd
8 1.9 perry To do the upgrade, you must have the boot floppy image (boot-13.fs)
9 1.9 perry available. You must also have at least the "base13" and "kern13"
10 1.7 perry binary distribution sets available, so that you can upgrade with it,
11 1.7 perry using one of the upgrade methods described above. Finally, you must
12 1.7 perry have sufficient disk space available to install the new binaries.
13 1.7 perry Since the old binaries are being overwritten in place, you only need
14 1.7 perry space for the new binaries, which weren't previously on the system.
15 1.7 perry If you have a few megabytes free on each of your root and /usr
16 1.7 perry partitions, you should have enough space.
17 1.1 cgd
18 1.1 cgd Since upgrading involves replacing the boot blocks on your NetBSD
19 1.1 cgd partition, the kernel, and most of the system binaries, it has the
20 1.1 cgd potential to cause data loss. You are strongly advised to BACK UP ANY
21 1.1 cgd IMPORTANT DATA ON YOUR DISK, whether on the NetBSD partition or on
22 1.1 cgd another operating system's partition, before beginning the upgrade
23 1.1 cgd process.
24 1.1 cgd
25 1.1 cgd To upgrade your system, follow the following instructions:
26 1.1 cgd
27 1.6 perry Boot your machine using of the appropriate upgrade floppy.
28 1.6 perry The boot loader will start, and will print a countdown and
29 1.6 perry begin booting. You will likely see one "file not found"
30 1.6 perry warning from the boot loader -- ignore this as it is normal,
31 1.6 perry and indicates the boot loader failed to find a normal kernel
32 1.6 perry to boot before trying to boot a compressed kernel.
33 1.6 perry
34 1.6 perry If the boot loader messages do not appear in a reasonable
35 1.6 perry amount of time, you either have a bad boot floppy or a
36 1.6 perry hardware problem. Try writing the install floppy image to
37 1.6 perry a different disk, and using that.
38 1.1 cgd
39 1.1 cgd While booting, you will probably see several warnings. You
40 1.1 cgd should be warned that no swap space is present, and that
41 1.1 cgd init(8) cannot find /etc/rc. Do not be alarmed, these are
42 1.1 cgd completely normal. When you reach the prompt asking you for a
43 1.1 cgd shell name, just hit return.
44 1.1 cgd
45 1.7 perry You will be asked if you wish to install or upgrade your
46 1.7 perry system or go to a shell prompt. Enter "upgrade".
47 1.7 perry
48 1.1 cgd You will be presented with some information about the upgrade
49 1.1 cgd process and a warning message, and will be asked if you wish
50 1.1 cgd to proceed with the upgrade process. If you answer
51 1.1 cgd negatively, the upgrade process will stop, and your disk will
52 1.1 cgd not be modified. If you answer affirmatively, the upgrade
53 1.1 cgd process will begin, and your disk will be modified. You may
54 1.1 cgd hit Control-C to stop the upgrade process at any time.
55 1.1 cgd However, if you hit it at an inopportune moment, your system
56 1.1 cgd may be left in an inconsistent (and possibly unusable) state.
57 1.1 cgd
58 1.1 cgd You will be asked if you wish to upgrade your file systems to
59 1.1 cgd the new file system format. If you do, reply affirmatively.
60 1.1 cgd If you don't have your file systems upgraded now, you should
61 1.1 cgd probably do it manually after the install process is complete,
62 1.1 cgd by using "fsck -c 2". Read the fsck(8) manual page for more
63 1.6 perry details. NOTE: ONLY UPGRADE YOUR FILE SYSTEMS IF YOU ARE
64 1.7 perry UPGRADING FROM A PRE-NetBSD 1.0 RELEASE.
65 1.1 cgd
66 1.6 perry If you choose to upgrade your file systems, the upgrade
67 1.6 perry program will then check your root file system, and, if you
68 1.6 perry approved, will upgrade it to the new file system format. It
69 1.6 perry will then mount your root file system on /mnt.
70 1.1 cgd
71 1.1 cgd If your file systems are being upgraded, the upgrade script
72 1.1 cgd will copy the new fsck(8) program to your hard disk and
73 1.1 cgd upgrade your remaining file systems.
74 1.1 cgd
75 1.1 cgd The upgrade program will then automatically replace the boot
76 1.1 cgd blocks on your disk with newer versions, and mount all of your
77 1.1 cgd file systems under /mnt. (In other words, your root partition
78 1.1 cgd will be mounted on /mnt, your /usr partition on /mnt/usr, etc.)
79 1.1 cgd
80 1.1 cgd If you don't already have the NetBSD distribution sets on your
81 1.1 cgd disk, look in the installation section for information on how
82 1.2 glass to transfer them to your disk.
83 1.2 glass
84 1.2 glass Once the distribution sets are transferred to your disk,
85 1.2 glass continue here. (Obviously, if the NetBSD distribution sets
86 1.3 cgd are already on your disk, because you've transferred them
87 1.3 cgd before starting the upgrade process, you don't need to
88 1.3 cgd transfer them again now!)
89 1.1 cgd
90 1.1 cgd After the software has been transferred to the machine (or
91 1.1 cgd mounted, in the case of upgrading via NFS), change into the
92 1.9 perry directory containing the "base13" distribution set. Once you
93 1.3 cgd are there, run the "Set_tmp_dir" command, and hit return at
94 1.3 cgd the prompt to select the default answer for the temporary
95 1.1 cgd directory's path name. (It should be the path name of the
96 1.1 cgd directory that you're in.)
97 1.1 cgd
98 1.9 perry Run the command "Extract base13" to upgrade the base
99 1.1 cgd distribution.
100 1.1 cgd
101 1.1 cgd Repeat the above two steps for all of the sets you wish to
102 1.1 cgd upgrade. (For each, change into the directory containing the
103 1.1 cgd set, run "Set_tmp_dir" and accept the default path name, then
104 1.1 cgd run the "Extract <setname>" command.)
105 1.1 cgd
106 1.9 perry NOTE: YOU MUST INSTALL THE "kern13" DISTRIBUTION, AS IT
107 1.8 mikel CONTAINS THE NEW NetBSD _VER KERNEL! This step is different
108 1.6 perry from previous netbsd upgrade procedures, which installed the
109 1.6 perry kernel from a boot floppy using a special procedure.
110 1.6 perry
111 1.1 cgd If you were previously using the security distribution set,
112 1.1 cgd you MUST upgrade to the new version, or you will not be able
113 1.1 cgd to log in when the upgrade process is complete. Similarly, if
114 1.1 cgd you were not previously using the security set, you must NOT
115 1.1 cgd upgrade to the new version.
116 1.1 cgd
117 1.1 cgd When you are done upgrading all of the distribution sets you
118 1.1 cgd wish to upgrade, issue the command "Cleanup". It will clean
119 1.1 cgd up the installation, by remaking some system databases. When
120 1.6 perry it is complete, you should use "halt" to halt the system, or
121 1.6 perry "reboot" to reboot it.
122 1.1 cgd
123 1.8 mikel Your system has now been upgraded to NetBSD _VER.
124 1.1 cgd
125 1.4 jtc After a new kernel has been copied to your hard disk, your
126 1.8 mikel machine is a complete NetBSD _VER system. However, that
127 1.1 cgd doesn't mean that you're finished with the upgrade process.
128 1.1 cgd There are several things that you should do, or might have to
129 1.1 cgd do, to insure that the system works properly.
130 1.1 cgd
131 1.1 cgd First, if you did not upgrade your file systems to the new
132 1.4 jtc file system format during the upgrade process, and you are
133 1.4 jtc upgrading from a pre-1.0 NetBSD, you may want to do so now,
134 1.4 jtc with "fsck -c 2". If you are unsure about the process, it's
135 1.4 jtc suggested that you read the fsck(8) manual page.
136 1.1 cgd
137 1.9 perry Second, you will probably want to get the etc13 distribution,
138 1.1 cgd extract it, and compare its contents with those in your /etc/
139 1.1 cgd directory. You will probably want to replace some of your
140 1.1 cgd system configuration files, or incorporate some of the changes
141 1.1 cgd in the new versions into yours.
142 1.1 cgd
143 1.1 cgd Third, you will probably want to update the set of device
144 1.1 cgd nodes you have in /dev. If you've changed the contents of
145 1.1 cgd /dev by hand, you will need to be careful about this, but if
146 1.1 cgd not, you can just cd into /dev, and run the command "sh
147 1.1 cgd MAKEDEV all".
148 1.1 cgd
149 1.1 cgd Fourth, you must deal with certain changes in the formats of
150 1.1 cgd some of the configuration files. The most notable change is
151 1.1 cgd that the "options" given to many of the file systems in
152 1.1 cgd /etc/fstab or by hand have changed, and some of the file
153 1.4 jtc systems have changed names. *IMPORTANT*: ANY INSTANCES OF "ufs"
154 1.4 jtc IN /etc/fstab MUST BE CHANGED TO "ffs". To find out what the
155 1.4 jtc new options are, it's suggested that you read the manual page
156 1.4 jtc for the file systems' mount commands, for example mount_nfs(8)
157 1.4 jtc for NFS. (Note that the information for mounts of type "ffs",
158 1.1 cgd i.e. Fast File Systems, are contained in the mount(8) man
159 1.1 cgd page.)
160 1.1 cgd
161 1.1 cgd Finally, you will want to delete old binaries that were part
162 1.1 cgd of the version of NetBSD that you upgraded from and have since
163 1.4 jtc been removed from the NetBSD distribution. If you are
164 1.4 jtc upgrading from a pre-1.0 NetBSD, you might also
165 1.1 cgd want to recompile any locally-built binaries, to take
166 1.1 cgd advantage of the shared libraries. (Note that any new
167 1.1 cgd binaries that you build will be dynamically linked, and
168 1.1 cgd therefore take advantage of the shared libraries, by default.
169 1.1 cgd For information on how to make statically linked binaries,
170 1.1 cgd see the cc(1) and ld(1) manual pages.)
171