xfer revision 1.14       1  1.14    perry 	$NetBSD: xfer,v 1.14 1998/01/09 18:46:36 perry Exp $	
      2  1.14    perry 
      3   1.1      cgd Installation is supported from several media types, including:
      4   1.1      cgd 
      5  1.13     fvdl 	FTP
      6  1.13     fvdl 	Remote NFS partition
      7   1.1      cgd 	DOS floppies
      8   1.1      cgd 
      9   1.6    perry No matter which installation medium you choose, you'll need to have a
     10  1.12    perry floppy disk (either 1.2M or 1.44M will work).  You'll put the boot
     11  1.12    perry floppy image ("boot.fs" for 1.44M floppies, "boot-small.fs" for 1.2M
     12  1.12    perry floppies) onto this disk, which contains software to install or
     13  1.12    perry upgrade your NetBSD system.
     14   1.8    perry 
     15   1.8    perry [Note: previous versions of NetBSD used several floppy images,
     16   1.8    perry including several kernel/boot floppies depending on hardware
     17   1.9    mikel configuration, an install floppy, and an upgrade floppy. NetBSD _VER
     18  1.12    perry only requires a single floppy for all tasks.]
     19   1.1      cgd 
     20   1.1      cgd If you are using a UN*X-like system to write the floppy images to
     21   1.8    perry disks, you should use the "dd" command to copy the file system image
     22   1.8    perry (.fs file) directly to the raw floppy disk.  It is suggested that you
     23   1.8    perry read the dd(1) manual page or ask your system administrator to
     24   1.1      cgd determine the correct set of arguments to use; it will be slightly
     25   1.1      cgd different from system to system, and a comprehensive list of the
     26   1.1      cgd possibilities is beyond the scope of this document.
     27   1.1      cgd 
     28   1.8    perry If you are using DOS to write the floppy image to disk, you should
     29   1.1      cgd use the "rawrite" utility, provided in the "i386/utilities" directory
     30   1.8    perry of the NetBSD distribution.  It will write the file system image (.fs
     31   1.8    perry file) to disks.
     32   1.1      cgd 
     33   1.6    perry Note that, when installing or upgrading, the floppy can be
     34   1.6    perry write-protected if you wish. These systems mount ramdisks as their
     35   1.6    perry root file systems once booted, and will not need to write to the
     36   1.6    perry floppy itself at any time -- indeed, once booted, the floppy may be
     37   1.6    perry removed from the disk drive.
     38   1.1      cgd 
     39   1.1      cgd Obviously, the steps necessary to prepare the distribution sets for
     40   1.1      cgd installation or upgrade depend on which installation medium you
     41   1.1      cgd choose.  The steps for the various media are outlined below.
     42   1.1      cgd 
     43   1.1      cgd To install or upgrade NetBSD using DOS floppies, you need to do the
     44   1.1      cgd following:
     45   1.1      cgd 
     46   1.2      cgd 	Count the number of "set_name.xx" files that make up the
     47   1.1      cgd 	distribution sets you want to install or upgrade.  You will
     48   1.1      cgd 	need one fifth that number of 1.2M floppies, or one sixth that
     49   1.1      cgd 	number of 1.44M floppies.  You should only use one size of
     50   1.1      cgd 	floppy for the install or upgrade procedure; you can't use
     51   1.3  mycroft 	some 1.2M floppies and some 1.44M floppies.
     52   1.1      cgd 
     53   1.1      cgd 	Format all of the floppies with DOS.  DO NOT make any of them
     54   1.1      cgd 	bootable DOS floppies, i.e. don't use "format/s" to format
     55   1.1      cgd 	them.  (If the floppies are bootable, then the DOS system
     56   1.1      cgd 	files that make them bootable will take up some space, and you
     57   1.1      cgd 	won't be able to fit as many distribution set parts per disk.)
     58   1.1      cgd 	If you're using floppies that are formatted for DOS by their
     59   1.1      cgd 	manufacturers, they probably aren't bootable, and you can use
     60   1.1      cgd 	them out of the box.
     61   1.1      cgd 
     62   1.1      cgd 	Place all of the "set_name.xx" files on the DOS disks, five
     63   1.1      cgd 	per disk if you're using 1.2M disks, six per disk if you're
     64   1.1      cgd 	using 1.44M disks.  How you do this is up to you; there are
     65   1.1      cgd 	many possibilities.  You could, for instance, use a DOS
     66   1.1      cgd 	terminal program to download them on to the floppies, or use
     67   1.1      cgd 	a UN*X-like system capable of reading and writing DOS file
     68   1.1      cgd 	systems (either with "mtools" or a real DOS file system)
     69   1.1      cgd 	to place them on the disk.
     70   1.1      cgd 
     71  1.13     fvdl 	Once you have the files on DOS disks, you can start the
     72  1.13     fvdl 	actual installation or upgrade process.
     73   1.1      cgd 
     74  1.13     fvdl To install or upgrade NetBSD using NFS, you must do the following:
     75   1.1      cgd 
     76   1.1      cgd 	Place the NetBSD distribution sets you wish to install into a
     77   1.1      cgd 	directory on an NFS server, and make that directory mountable
     78   1.1      cgd 	by the machine on which you are installing or upgrading NetBSD.
     79   1.1      cgd 	This will probably require modifying the /etc/exports file on
     80   1.1      cgd 	of the NFS server and resetting its mount daemon (mountd).
     81   1.1      cgd 	(Both of these actions will probably require superuser
     82   1.1      cgd 	privileges on the server.)
     83   1.1      cgd 
     84   1.1      cgd 	You need to know the the numeric IP address of the NFS server,
     85   1.1      cgd 	and, if the server is not on a network directly connected to
     86   1.1      cgd 	the machine on which you're installing or upgrading NetBSD,
     87   1.1      cgd 	you need to know the numeric IP address of the router closest
     88   1.1      cgd 	to the NetBSD machine.  Finally, you need to know the numeric
     89  1.13     fvdl 	IP address of the NetBSD machine itself. The install
     90  1.13     fvdl 	program will ask you to provide this information to be able
     91  1.13     fvdl 	to access the sets.
     92   1.1      cgd 
     93   1.1      cgd 	Once the NFS server is set up properly and you have the
     94  1.13     fvdl 	information mentioned above, you can start the actual
     95  1.13     fvdl 	installation or upgrade process.
     96   1.1      cgd 
     97   1.1      cgd To install or upgrade NetBSD by using FTP to get the installation
     98   1.1      cgd sets, you must do the following:
     99   1.1      cgd 
    100   1.1      cgd 	The preparations for this installation/upgrade method are
    101   1.1      cgd 	easy; all you make sure that there's some FTP site from which
    102   1.1      cgd 	you can retrieve the NetBSD distribution when you're about to
    103   1.1      cgd 	install or upgrade.  You need to know the numeric IP address
    104   1.1      cgd 	of that site, and, if it's not on a network directly connected
    105   1.1      cgd 	to the machine on which you're installing or upgrading NetBSD,
    106   1.1      cgd 	you need to know the numeric IP address of the router closest
    107   1.1      cgd 	to the NetBSD machine.  Finally, you need to know the numeric
    108  1.13     fvdl 	IP address of the NetBSD machine itself. The install program
    109  1.13     fvdl 	will ask you to provide this information to be able to access
    110  1.13     fvdl 	the sets via ftp.
    111   1.1      cgd 
    112  1.13     fvdl 	Once you have this information, you can proceed to the actual
    113  1.13     fvdl 	installation or upgrade.
    114   1.1      cgd 
    115   1.1      cgd If you are upgrading NetBSD, you also have the option of installing
    116   1.1      cgd NetBSD by putting the new distribution sets somewhere in your existing
    117   1.1      cgd file system, and using them from there.  To do that, you must do the
    118   1.1      cgd following:
    119   1.1      cgd 
    120   1.7    perry         Place the distribution sets you wish to upgrade somewhere in
    121  1.10    perry         your current file system tree. Please note that the /dev on
    122  1.10    perry         the floppy used for upgrades only knows about wd0, wd1, sd0,
    123  1.10    perry         sd1 and sd2. If you have more than two IDE drives or more than
    124  1.10    perry         three SCSI drives, you should take care not to place the sets
    125  1.10    perry         on the high numbered drives.
    126  1.10    perry 
    127  1.10    perry         At a bare minimum, you must upgrade the "base" and "kern"
    128  1.12    perry         binary distribution, and so must put the "base" and
    129  1.12    perry         "kern" sets somewhere in your file system.  If you wish,
    130  1.10    perry         you can do the other sets, as well, but you should NOT upgrade
    131  1.10    perry         the "etc" distribution; the "etc" distribution contains system
    132  1.10    perry         configuration files that you should review and update by hand.
    133   1.1      cgd 
    134   1.1      cgd 	Once you have done this, you can proceed to the next step in
    135   1.1      cgd 	the upgrade process, actually upgrading your system.
    136