1 .\" $NetBSD: upgrade,v 1.27 2008/09/07 05:08:42 tsutsui Exp $
3 .\" Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 .\" POSSIBILITY OF SUCH DAMAGE.
29 documented here is by binary sets.
31 To do the upgrade, you must have the
35 and you must transfer the miniroot file system
37 onto the swap partition of the
40 You must also have at least the
42 binary distribution set available.
43 Finally, you must have sufficient disk space available to install the new
45 Since the old binaries are being overwritten in place, you only need
46 space for the new binaries, which weren't previously on the system. This is
47 typically not more than a few megabytes.
49 Since upgrading involves replacing the kernel and most of the system
50 binaries, it has the potential to cause data loss.
51 You are strongly advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK,
54 partition or on another operating system's partition, before
55 beginning the upgrade process.
57 To upgrade your system, begin by transferring the miniroot file system
58 onto the hard disk partition used by
60 for swapping, as described in the "Preparing
63 Installation" section above.
67 with bootblocks installed
69 This description is for V40 (OS 3.1) ROMs.
70 For older ROMs, there might be small differences.
73 documentation to learn about the exact procedure.
74 Booting using bootblocks doesn't work at all on some systems, and may
75 require a mountable file system on others.
78 Reboot your machine, holding down both mouse buttons if you
79 have a 2-button mouse, the outer mouse buttons if you have
81 On the DraCo, press the left mouse button instead,
82 when the boot screen prompts you for it.
84 From the boot menu, select
86 Select the swap partition with the miniroot, and then
91 The machine will boot the bootblock, which will prompt you for a command line.
92 You have a few seconds to change the default.
93 Entering an empty line will accept the
96 The bootblock uses command lines of the form:
98 .Ar \ \ \ \ file Op Ar options
102 is the kernel file name on the partition where the
103 boot block is on, and
105 may contain the same as described in the INSTALL section.
110 If you machine has a split memory space, like, e.g., DraCo
111 machines, use this instead:
116 .Ss2 Once your kernel boots
118 You should see the screen clear and some information about
119 your system as the kernel configures the hardware.
120 Note which hard disk device is configured that contains your root
123 When prompted for the root device, type
127 with the disk number that
130 your root/swap device).
131 When prompted for a dump device, answer
134 (For a normal boot, you would tell it one of the swap devices).
135 When prompted for the root file system type, confirm
137 which will auto-detect it.
139 You will be presented with some information about the upgrade
140 process and a warning message, and will be asked if you wish
141 to proceed with the upgrade process.
142 If you answer negatively, the upgrade process will stop, and your disk will
144 If you answer affirmatively, the upgrade process will begin,
145 and your disk will be modified.
148 to stop the upgrade process at any time.
149 However, if you press it at an inopportune moment, your system
150 may be left in an inconsistent (and possibly unusable) state.
152 You will now be greeted and reminded of the fact that this is a
153 potentially dangerous procedure and that you should not upgrade the
157 When you decide to proceed, you will be prompted to enter your root disk.
158 After you've done this, it will be checked
159 automatically to make sure that the file system is in a sane
160 state before making any modifications.
161 After this is done, you will be asked if you want to configure your network.
163 You are now allowed to edit your fstab, but normally you don't have to.
164 Note that the upgrade-kit uses its own copy of the fstab.
167 affect your actual fstab.
168 After you are satisfied with your fstab, the upgrade-kit will check
169 all file systems mentioned in it.
170 When they're ok, they will be mounted.
172 You will now be asked if your sets are stored on a normally
177 you have the sets stored on a file system that was present in the fstab.
178 The actions you should take for the set extraction
179 are pretty logical (we think).
181 After you have extracted the sets, the upgrade kit will proceed
182 with setting the timezone and installing the kernel and bootcode.
183 This is all exactly the same as described in the installation
186 .Em Your system has now been upgraded to
189 After a new kernel has been copied to your hard disk, your
190 machine is a complete
193 However, that doesn't mean that you're finished with the upgrade process.
194 There are several things that you should do, or might have to
195 do, to insure that the system works properly.
197 You will probably want to get the
200 extract it, and compare its contents with those in your
203 You will probably want to replace some of your
204 system configuration files, or incorporate some of the changes
205 in the new versions into yours.
207 You will want to delete old binaries that were part
210 that you upgraded from and have since
211 been removed from the