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