upgrade revision 1.13 1 $NetBSD: upgrade,v 1.13 1998/01/09 18:46:33 perry Exp $
2
3 The upgrade to NetBSD _VER is a binary upgrade; it would be prohibitive
4 to make users upgrade by compiling and installing the _VER sources, and
5 it would be very difficult to even compile a set of instructions that
6 allowed them to do so. Because of the many changes to the system, it
7 is difficult and impractical to upgrade by recompiling from the sources
8 and installing.
9
10 To do the upgrade, you must have the boot floppy image (boot.fs)
11 available. You must also have at least the "base" and "kern"
12 binary distribution sets available, so that you can upgrade with it,
13 using one of the upgrade methods described above. Finally, you must
14 have sufficient disk space available to install the new binaries.
15 Since the old binaries are being overwritten in place, you only need
16 space for the new binaries, which weren't previously on the system.
17 If you have a few megabytes free on each of your root and /usr
18 partitions, you should have enough space.
19
20 Since upgrading involves replacing the boot blocks on your NetBSD
21 partition, the kernel, and most of the system binaries, it has the
22 potential to cause data loss. You are strongly advised to BACK UP ANY
23 IMPORTANT DATA ON YOUR DISK, whether on the NetBSD partition or on
24 another operating system's partition, before beginning the upgrade
25 process.
26
27 The upgrade procedure using the sysinst tool is basically the
28 same as an installation, but without the hard disk partitioning.
29 Another difference is that existing configuration files in /etc
30 are backed up, and merged with the new files. Getting the binary
31 sets is done in the same manner as the installation procedure;
32 refer to the installation part of the document, section 7 and 8,
33 on how to do this. Also, some sanity checks are done, i.e.
34 filesystems are checked before unpacking the sets.
35
36 After a new kernel has been copied to your hard disk, your
37 machine is a complete NetBSD _VER system. However, that
38 doesn't mean that you're finished with the upgrade process.
39 You will probably want to update the set of device
40 nodes you have in /dev. If you've changed the contents of
41 /dev by hand, you will need to be careful about this, but if
42 not, you can just cd into /dev, and run the command "sh
43 MAKEDEV all".
44
45 You must also deal with certain changes in the formats of
46 some of the configuration files. The most notable change is
47 that the "options" given to many of the file systems in
48 /etc/fstab or by hand have changed, and some of the file
49 systems have changed names. To find out what the new options
50 are, it's suggested that you read the manual page
51 for the file systems' mount commands, for example mount_nfs(8)
52 for NFS.
53
54 Finally, you will want to delete old binaries that were part
55 of the version of NetBSD that you upgraded from and have since
56 been removed from the NetBSD distribution.
57