2002-06-29 12:32:30 +04:00
|
|
|
.\" $NetBSD: upgrade,v 1.15 2002/06/29 08:32:32 lukem Exp $
|
1999-01-13 11:18:44 +03:00
|
|
|
.\"
|
2002-06-29 12:32:30 +04:00
|
|
|
.\" Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
|
1999-01-13 11:18:44 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.
|
|
|
|
.
|
|
|
|
.Pp
|
|
|
|
The upgrade to
|
|
|
|
.Nx \*V
|
|
|
|
is a binary upgrade; it can be quite difficult
|
|
|
|
to advance to a later version by recompiling from source due primarily
|
|
|
|
to interdependencies in the various components.
|
|
|
|
.Pp
|
2002-06-20 14:44:07 +04:00
|
|
|
.ie r_atari \{\
|
|
|
|
To do the upgrade, you must first boot the system as described in the
|
|
|
|
.Sx Booting the installer
|
|
|
|
section.
|
|
|
|
.\}
|
|
|
|
.el \{\
|
2000-11-02 19:40:45 +03:00
|
|
|
.ie \n[macppc]:\n[sparc] \{\
|
|
|
|
To do the upgrade, you must boot from the installer kernel using one of
|
|
|
|
the methods described above.
|
|
|
|
.\}
|
2002-06-20 14:44:07 +04:00
|
|
|
.el \{\
|
|
|
|
.ie r_pmax \{\
|
1999-05-04 07:37:09 +04:00
|
|
|
To do the upgrade, you must install new bootblocks and boot off
|
|
|
|
the
|
|
|
|
.Ic install
|
|
|
|
kernel as described in the
|
|
|
|
.Sx Installing from an existing system
|
|
|
|
section.
|
|
|
|
.\}
|
2002-06-20 14:44:07 +04:00
|
|
|
.el \{\
|
|
|
|
.ie r_x68k \{\
|
2000-10-02 05:07:06 +04:00
|
|
|
As noted above, you must have the
|
2000-08-22 19:34:00 +04:00
|
|
|
.Pa loadbsd.x
|
|
|
|
utility and the installation kernel you chose, or, the
|
2001-04-08 06:49:17 +04:00
|
|
|
boot floppies available to do the upgrade.
|
2000-08-22 19:34:00 +04:00
|
|
|
.\}
|
1999-05-04 07:37:09 +04:00
|
|
|
.el \{\
|
1999-01-13 11:18:44 +03:00
|
|
|
To do the upgrade, you must have the boot floppy
|
|
|
|
.if r_alpha set
|
1999-05-04 07:37:09 +04:00
|
|
|
available.
|
2002-06-20 14:44:07 +04:00
|
|
|
.\}\}\}\}
|
1999-05-04 07:37:09 +04:00
|
|
|
You must also have at least the
|
2000-10-29 15:32:23 +03:00
|
|
|
.Sy base
|
|
|
|
and
|
|
|
|
.Sy kern
|
1999-01-13 11:18:44 +03:00
|
|
|
binary distribution sets available, so that you can upgrade with them,
|
2002-06-29 12:32:30 +04:00
|
|
|
using one of the upgrade methods described above.
|
|
|
|
Finally, you must have sufficient disk space available to install the
|
|
|
|
new binaries.
|
1999-01-13 11:18:44 +03:00
|
|
|
Since the old binaries are being overwritten in place, you only need
|
|
|
|
space for the new binaries, which weren't previously on the system.
|
2000-10-29 15:32:23 +03:00
|
|
|
If you have a few megabytes free on each of your root
|
|
|
|
.Pq Pa /
|
|
|
|
and
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pa /usr
|
|
|
|
partitions, you should have enough space.
|
|
|
|
.Pp
|
|
|
|
Since upgrading involves replacing the boot blocks on your
|
|
|
|
.Nx
|
|
|
|
partition, the kernel, and most of the system binaries, it has the
|
2002-06-29 12:32:30 +04:00
|
|
|
potential to cause data loss.
|
|
|
|
You are strongly advised to .Em back up any important data on your disk,
|
1999-01-13 11:18:44 +03:00
|
|
|
whether on the
|
|
|
|
.Nx
|
|
|
|
partition or on
|
|
|
|
another operating system's partition, before beginning the upgrade
|
|
|
|
process.
|
2001-05-25 12:04:13 +04:00
|
|
|
.if r_macppc \{\
|
|
|
|
Since installation of the bootloader will prevent
|
|
|
|
.Tn MacOS
|
|
|
|
from using the disk and will prevent Open Firmware 3 machines from
|
2002-06-29 12:32:30 +04:00
|
|
|
booting, there is an option to bypass this step.
|
|
|
|
Make sure you know whether or not to install the bootloader.
|
2001-05-25 12:04:13 +04:00
|
|
|
.\}
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pp
|
|
|
|
The upgrade procedure using the
|
2000-12-23 03:09:05 +03:00
|
|
|
.Ic sysinst
|
|
|
|
tool is similar to an installation, but without the hard disk partitioning.
|
|
|
|
The original
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pa /etc
|
2000-12-23 03:09:05 +03:00
|
|
|
directory is renamed to
|
|
|
|
.Pa /etc.old ,
|
|
|
|
and no attempt is made to merge any of the previous configuration into
|
|
|
|
the new system except that the previous
|
|
|
|
.Pa /etc/fstab
|
|
|
|
file is copied into the new configuration.
|
|
|
|
Getting the binary
|
1999-01-13 11:18:44 +03:00
|
|
|
sets is done in the same manner as the installation procedure;
|
|
|
|
refer to the installation part of the document
|
2002-06-29 12:32:30 +04:00
|
|
|
for how to do this.
|
|
|
|
Also, some sanity checks are done, i.e.
|
2000-10-29 15:32:23 +03:00
|
|
|
file systems are checked before unpacking the sets.
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pp
|
|
|
|
After a new kernel has been copied to your hard disk, your
|
|
|
|
machine is a complete
|
|
|
|
.Nx \*V
|
2002-06-29 12:32:30 +04:00
|
|
|
system.
|
|
|
|
However, that doesn't mean that you're finished with the upgrade process.
|
1999-01-13 11:18:44 +03:00
|
|
|
You will probably want to update the set of device
|
|
|
|
nodes you have in
|
|
|
|
.Pa /dev .
|
|
|
|
If you've changed the contents of
|
|
|
|
.Pa /dev
|
|
|
|
by hand, you will need to be careful about this, but if
|
|
|
|
not, you can just cd into
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pa /dev ,
|
2001-04-07 19:19:59 +04:00
|
|
|
and run the command:
|
2000-10-29 15:32:23 +03:00
|
|
|
.Pp
|
|
|
|
.Dl # Ic "sh MAKEDEV all"
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pp
|
|
|
|
You must also deal with certain changes in the formats of
|
2002-06-29 12:32:30 +04:00
|
|
|
some of the configuration files.
|
|
|
|
The most notable change is that the options given to many of the
|
|
|
|
file systems in
|
1999-01-13 11:18:44 +03:00
|
|
|
.Pa /etc/fstab
|
|
|
|
have changed, and some of the file
|
2002-06-29 12:32:30 +04:00
|
|
|
systems have changed names.
|
|
|
|
To find out what the new options are,
|
|
|
|
it's suggested that you read the manual page
|
2000-10-29 15:32:23 +03:00
|
|
|
for the file system's mount commands, for example
|
1999-01-13 11:18:44 +03:00
|
|
|
.Xr mount_nfs 8
|
|
|
|
for NFS.
|
|
|
|
.Pp
|
|
|
|
Finally, you will want to delete old binaries that were part
|
|
|
|
of the version of
|
|
|
|
.Nx
|
|
|
|
that you upgraded from and have since been removed from the
|
|
|
|
.Nx
|
2000-10-10 16:24:27 +04:00
|
|
|
distribution.
|