upgrade revision 1.2 1 1.2 perry $NetBSD: upgrade,v 1.2 1998/01/09 18:46:56 perry Exp $
2 1.2 perry
3 1.1 scw It is possible to easily upgrade your existing NetBSD/mvme68k system
4 1.1 scw using the upgrade program in the miniroot. If you wish to upgrade
5 1.1 scw your system by this method, simply select the `upgrade' option once
6 1.1 scw the miniroot has booted. The upgrade program with then guide you
7 1.1 scw through the procedure. The upgrade program will:
8 1.1 scw
9 1.1 scw * Enable the network based on your system's current
10 1.1 scw network configuration.
11 1.1 scw
12 1.1 scw * Mount your existing filesystems.
13 1.1 scw
14 1.1 scw * Extract binary sets from the media of your choice.
15 1.1 scw
16 1.1 scw * Fixup your system's existing /etc/fstab, and if necessary,
17 1.1 scw changing the occurrences of `ufs' to `ffs' and let you
18 1.1 scw edit the resulting file.
19 1.1 scw
20 1.1 scw * Make new device nodes in your root filesystem.
21 1.1 scw
22 1.1 scw * Copy a new kernel onto your root partition.
23 1.1 scw NOTE: the existing kernel WILL NOT be backed up; doing
24 1.1 scw so would be pointless, since older kernels may not be
25 1.1 scw capable of running NetBSD _VER executables.
26 1.1 scw
27 1.1 scw * Install a new boot block.
28 1.1 scw
29 1.1 scw * Check your filesystems for integrity.
30 1.1 scw
31 1.1 scw While using the miniroot's upgrade program is the preferred method
32 1.1 scw of upgrading your system, it is possible to upgrade your system
33 1.1 scw manually. To do this, follow the following procedure:
34 1.1 scw
35 1.1 scw * Place _at least_ the `base' binary set in a filesystem
36 1.1 scw accessible to the target machine. A local filesystem
37 1.1 scw is preferred, since the NFS subsystem in the NetBSD _VER
38 1.1 scw kernel may be incompatible with your old binaries.
39 1.1 scw
40 1.1 scw * Back up your pre-existing kernel and copy the _VER
41 1.1 scw kernel into your root partition.
42 1.1 scw
43 1.1 scw * Reboot with the _VER kernel into single-user mode.
44 1.1 scw
45 1.1 scw * Check all filesystems:
46 1.1 scw
47 1.1 scw /sbin/fsck -pf
48 1.1 scw
49 1.1 scw * Mount all local filesystems:
50 1.1 scw
51 1.1 scw /sbin/mount -a -t nonfs
52 1.1 scw
53 1.1 scw * If you keep /usr or /usr/share on an NFS server, you
54 1.1 scw will want to mount those filesystems as well. To do
55 1.1 scw this, you will need to enable the network:
56 1.1 scw
57 1.1 scw sh /etc/netstart
58 1.1 scw
59 1.1 scw * Run the update(8) daemon, to ensure that new programs
60 1.1 scw are actually stored on disk.
61 1.1 scw
62 1.1 scw update
63 1.1 scw
64 1.1 scw * Make sure you are in the root filesystem and extract
65 1.1 scw the `base' binary set:
66 1.1 scw
67 1.1 scw cd /
68 1.1 scw tar --unlink -zxvpf /path/to/base.tgz
69 1.1 scw
70 1.1 scw NOTE: the `--unlink' option is _very_ important!
71 1.1 scw
72 1.1 scw * Delete system files in /sbin which now live in /usr/sbin:
73 1.1 scw
74 1.1 scw cd /sbin
75 1.1 scw rm -f mountd rtquery quotacheck dumpfs dumplfs
76 1.1 scw
77 1.1 scw * Install a new boot block (you may need to be running in
78 1.1 scw single-user mode to do this...):
79 1.1 scw
80 1.1 scw cd /usr/mdec
81 1.1 scw cp bootsd /.bootsd
82 1.1 scw ./installboot /.bootsd bootxx <root disk, e.g. /dev/rsd0a>
83 1.1 scw
84 1.1 scw * Sync the filesystems:
85 1.1 scw
86 1.1 scw sync
87 1.1 scw
88 1.1 scw * At this point you may extract any other binary sets
89 1.1 scw you may have placed on local filesystems, or you may
90 1.1 scw wish to extract additional sets at a later time.
91 1.1 scw To extract these sets, use the following commands:
92 1.1 scw
93 1.1 scw cd /
94 1.1 scw tar --unlink -zxvpf <path to set>
95 1.1 scw
96 1.1 scw NOTE: you SHOULD NOT extract the `etc' set if upgrading. Instead, you
97 1.1 scw should extract that set into another area and carefully merge the changes
98 1.1 scw by hand.
99