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