Home | History | Annotate | Line # | Download | only in i386
upgrade revision 1.8
      1 The upgrade to NetBSD _VER is a binary upgrade; it would be prohibitive
      2 to make users upgrade by compiling and installing the _VER sources, and
      3 it would be very difficult to even compile a set of instructions that
      4 allowed them to do so.  Because of the many changes to the system, it
      5 is difficult and impractical to upgrade by recompiling from the sources
      6 and installing.
      7 
      8 To do the upgrade, you must have the boot floppy image (boot-12G.fs)
      9 available.  You must also have at least the "base12G" and "kern12G"
     10 binary distribution sets available, so that you can upgrade with it,
     11 using one of the upgrade methods described above.  Finally, you must
     12 have sufficient disk space available to install the new binaries.
     13 Since the old binaries are being overwritten in place, you only need
     14 space for the new binaries, which weren't previously on the system.
     15 If you have a few megabytes free on each of your root and /usr
     16 partitions, you should have enough space.
     17 
     18 Since upgrading involves replacing the boot blocks on your NetBSD
     19 partition, the kernel, and most of the system binaries, it has the
     20 potential to cause data loss.  You are strongly advised to BACK UP ANY
     21 IMPORTANT DATA ON YOUR DISK, whether on the NetBSD partition or on
     22 another operating system's partition, before beginning the upgrade
     23 process.
     24 
     25 To upgrade your system, follow the following instructions:
     26 
     27 	Boot your machine using of the appropriate upgrade floppy.
     28         The boot loader will start, and will print a countdown and
     29         begin booting. You will likely see one "file not found"
     30         warning from the boot loader -- ignore this as it is normal,
     31         and indicates the boot loader failed to find a normal kernel
     32         to boot before trying to boot a compressed kernel.
     33 
     34         If the boot loader messages do not appear in a reasonable
     35         amount of time, you either have a bad boot floppy or a
     36         hardware problem.  Try writing the install floppy image to
     37         a different disk, and using that.
     38 
     39 	While booting, you will probably see several warnings.  You
     40 	should be warned that no swap space is present, and that
     41 	init(8) cannot find /etc/rc.  Do not be alarmed, these are
     42 	completely normal.  When you reach the prompt asking you for a
     43 	shell name, just hit return.
     44 
     45 	You will be asked if you wish to install or upgrade your
     46 	system or go to a shell prompt. Enter "upgrade".
     47 
     48 	You will be presented with some information about the upgrade
     49 	process and a warning message, and will be asked if you wish
     50 	to proceed with the upgrade process.  If you answer
     51 	negatively, the upgrade process will stop, and your disk will
     52 	not be modified.  If you answer affirmatively, the upgrade
     53 	process will begin, and your disk will be modified.  You may
     54 	hit Control-C to stop the upgrade process at any time.
     55 	However, if you hit it at an inopportune moment, your system
     56 	may be left in an inconsistent (and possibly unusable) state.
     57 
     58 	You will be asked if you wish to upgrade your file systems to
     59 	the new file system format.  If you do, reply affirmatively.
     60 	If you don't have your file systems upgraded now, you should
     61 	probably do it manually after the install process is complete,
     62 	by using "fsck -c 2". Read the fsck(8) manual page for more
     63 	details. NOTE: ONLY UPGRADE YOUR FILE SYSTEMS IF YOU ARE
     64         UPGRADING FROM A PRE-NetBSD 1.0 RELEASE.
     65 
     66         If you choose to upgrade your file systems, the upgrade
     67         program will then check your root file system, and, if you
     68         approved, will upgrade it to the new file system format.  It
     69         will then mount your root file system on /mnt.
     70 
     71 	If your file systems are being upgraded, the upgrade script
     72 	will copy the new fsck(8) program to your hard disk and
     73 	upgrade your remaining file systems.
     74 
     75 	The upgrade program will then automatically replace the boot
     76 	blocks on your disk with newer versions, and mount all of your
     77 	file systems under /mnt.  (In other words, your root partition
     78 	will be mounted on /mnt, your /usr partition on /mnt/usr, etc.)
     79 
     80 	If you don't already have the NetBSD distribution sets on your
     81 	disk, look in the installation section for information on how
     82 	to transfer them to your disk.
     83 
     84 	Once the distribution sets are transferred to your disk,
     85 	continue here.  (Obviously, if the NetBSD distribution sets
     86 	are already on your disk, because you've transferred them
     87 	before starting the upgrade process, you don't need to
     88 	transfer them again now!)
     89 
     90 	After the software has been transferred to the machine (or
     91 	mounted, in the case of upgrading via NFS), change into the
     92 	directory containing the "base12G" distribution set.  Once you
     93 	are there, run the "Set_tmp_dir" command, and hit return at
     94 	the prompt to select the default answer for the temporary
     95 	directory's path name.  (It should be the path name of the
     96 	directory that you're in.)
     97 
     98 	Run the command "Extract base12G" to upgrade the base
     99 	distribution.
    100 
    101 	Repeat the above two steps for all of the sets you wish to
    102 	upgrade.  (For each, change into the directory containing the
    103 	set, run "Set_tmp_dir" and accept the default path name, then
    104 	run the "Extract <setname>" command.)
    105 
    106         NOTE: YOU MUST INSTALL THE "kern12G" DISTRIBUTION, AS IT
    107         CONTAINS THE NEW NetBSD _VER KERNEL! This step is different
    108         from previous netbsd upgrade procedures, which installed the
    109         kernel from a boot floppy using a special procedure.
    110 
    111 	If you were previously using the security distribution set,
    112 	you MUST upgrade to the new version, or you will not be able
    113 	to log in when the upgrade process is complete.  Similarly, if
    114 	you were not previously using the security set, you must NOT
    115 	upgrade to the new version.
    116 
    117 	When you are done upgrading all of the distribution sets you
    118 	wish to upgrade, issue the command "Cleanup".  It will clean
    119 	up the installation, by remaking some system databases.  When
    120 	it is complete, you should use "halt" to halt the system, or
    121 	"reboot" to reboot it.
    122 
    123 Your system has now been upgraded to NetBSD _VER.
    124 
    125         After a new kernel has been copied to your hard disk, your
    126 	machine is a complete NetBSD _VER system.  However, that
    127 	doesn't mean that you're finished with the upgrade process.
    128 	There are several things that you should do, or might have to
    129 	do, to insure that the system works properly.
    130 
    131 	First, if you did not upgrade your file systems to the new
    132 	file system format during the upgrade process, and you are
    133         upgrading from a pre-1.0 NetBSD, you may want to do so now,
    134         with "fsck -c 2".  If you are unsure about the process, it's
    135         suggested that you read the fsck(8) manual page.
    136 
    137 	Second, you will probably want to get the etc12G distribution,
    138 	extract it, and compare its contents with those in your /etc/
    139 	directory.  You will probably want to replace some of your
    140 	system configuration files, or incorporate some of the changes
    141 	in the new versions into yours.
    142 
    143 	Third, you will probably want to update the set of device
    144 	nodes you have in /dev.  If you've changed the contents of
    145 	/dev by hand, you will need to be careful about this, but if
    146 	not, you can just cd into /dev, and run the command "sh
    147 	MAKEDEV all".
    148 
    149 	Fourth, you must deal with certain changes in the formats of
    150 	some of the configuration files.  The most notable change is
    151 	that the "options" given to many of the file systems in
    152 	/etc/fstab or by hand have changed, and some of the file
    153 	systems have changed names. *IMPORTANT*: ANY INSTANCES OF "ufs"
    154         IN /etc/fstab MUST BE CHANGED TO "ffs".  To find out what the
    155         new options are, it's suggested that you read the manual page
    156         for the file systems' mount commands, for example mount_nfs(8)
    157         for NFS.  (Note that the information for mounts of type "ffs",
    158 	i.e. Fast File Systems, are contained in the mount(8) man
    159 	page.)
    160 
    161 	Finally, you will want to delete old binaries that were part
    162 	of the version of NetBSD that you upgraded from and have since
    163 	been removed from the NetBSD distribution.  If you are
    164         upgrading from a pre-1.0 NetBSD, you might also
    165 	want to recompile any locally-built binaries, to take
    166 	advantage of the shared libraries.  (Note that any new
    167 	binaries that you build will be dynamically linked, and
    168 	therefore take advantage of the shared libraries, by default.
    169 	For information on how to make statically linked binaries,
    170 	see the cc(1) and ld(1) manual pages.)
    171