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