Home | History | Annotate | Line # | Download | only in i386
xfer revision 1.3
      1  1.1      cgd Installation is supported from several media types, including:
      2  1.1      cgd 
      3  1.1      cgd 	DOS floppies
      4  1.1      cgd 	Tape
      5  1.1      cgd 	Remote NFS partition
      6  1.1      cgd 	FTP
      7  1.1      cgd 
      8  1.1      cgd No matter which installation medium you choose, you'll need to have
      9  1.1      cgd two floppy disks available (either 1.2M or 1.44 will work, though
     10  1.1      cgd both should be the same type).  On the first, you'll put the
     11  1.1      cgd kernel-copy image that's appropriate for your system.  On the second,
     12  1.1      cgd you'll put the install or upgrade floppy image, depending on whether
     13  1.1      cgd you're installing NetBSD for the first time, or upgrading a previous
     14  1.1      cgd installation.
     15  1.1      cgd 
     16  1.1      cgd If you are using an Adaptec AHA-154x or Buslogic BT-54x SCSI host
     17  1.1      cgd adapter, you need the kcaha-10.fs kernel-copy image.  If you're using
     18  1.1      cgd a Buslogic BT-445, BT-74x, or BT-9xx SCSI host adapter, you'll need
     19  1.1      cgd the kcbt-10.fs image.  If you're using a disk controller other than
     20  1.1      cgd those mentioned above, either kernel-copy disk image will work for
     21  1.1      cgd you.
     22  1.1      cgd 
     23  1.1      cgd If you are using a UN*X-like system to write the floppy images to
     24  1.1      cgd disks, you should use the "dd" command to copy the file system images
     25  1.1      cgd (.fs files) directly to the raw floppy disks.  It is suggested that
     26  1.1      cgd you read the dd(1) manual page or ask your system administrator to
     27  1.1      cgd determine the correct set of arguments to use; it will be slightly
     28  1.1      cgd different from system to system, and a comprehensive list of the
     29  1.1      cgd possibilities is beyond the scope of this document.
     30  1.1      cgd 
     31  1.1      cgd If you are using DOS to write the floppy images to disks, you should
     32  1.1      cgd use the "rawrite" utility, provided in the "i386/utilities" directory
     33  1.1      cgd of the NetBSD distribution.  It will write the file system images (.fs
     34  1.1      cgd files) to disks.
     35  1.1      cgd 
     36  1.1      cgd Note that, when installing, the kernel-copy floppy can be write-protected
     37  1.1      cgd (i.e. read-only), but the install floppy MUST not be write-protected.
     38  1.1      cgd The install program needs to write some temporary files, and if the
     39  1.1      cgd disk is write-protected, it can't.  If you're upgrading your system,
     40  1.1      cgd both the kernel-copy and upgrade floppies may be write-protected.
     41  1.1      cgd 
     42  1.1      cgd Obviously, the steps necessary to prepare the distribution sets for
     43  1.1      cgd installation or upgrade depend on which installation medium you
     44  1.1      cgd choose.  The steps for the various media are outlined below.
     45  1.1      cgd 
     46  1.1      cgd To install or upgrade NetBSD using DOS floppies, you need to do the
     47  1.1      cgd following:
     48  1.1      cgd 
     49  1.2      cgd 	Count the number of "set_name.xx" files that make up the
     50  1.1      cgd 	distribution sets you want to install or upgrade.  You will
     51  1.1      cgd 	need one fifth that number of 1.2M floppies, or one sixth that
     52  1.1      cgd 	number of 1.44M floppies.  You should only use one size of
     53  1.1      cgd 	floppy for the install or upgrade procedure; you can't use
     54  1.3  mycroft 	some 1.2M floppies and some 1.44M floppies.
     55  1.1      cgd 
     56  1.1      cgd 	Format all of the floppies with DOS.  DO NOT make any of them
     57  1.1      cgd 	bootable DOS floppies, i.e. don't use "format/s" to format
     58  1.1      cgd 	them.  (If the floppies are bootable, then the DOS system
     59  1.1      cgd 	files that make them bootable will take up some space, and you
     60  1.1      cgd 	won't be able to fit as many distribution set parts per disk.)
     61  1.1      cgd 	If you're using floppies that are formatted for DOS by their
     62  1.1      cgd 	manufacturers, they probably aren't bootable, and you can use
     63  1.1      cgd 	them out of the box.
     64  1.1      cgd 
     65  1.1      cgd 	Place all of the "set_name.xx" files on the DOS disks, five
     66  1.1      cgd 	per disk if you're using 1.2M disks, six per disk if you're
     67  1.1      cgd 	using 1.44M disks.  How you do this is up to you; there are
     68  1.1      cgd 	many possibilities.  You could, for instance, use a DOS
     69  1.1      cgd 	terminal program to download them on to the floppies, or use
     70  1.1      cgd 	a UN*X-like system capable of reading and writing DOS file
     71  1.1      cgd 	systems (either with "mtools" or a real DOS file system)
     72  1.1      cgd 	to place them on the disk.
     73  1.1      cgd 
     74  1.1      cgd 	Once you have the files on DOS disks, you can proceed to the
     75  1.1      cgd 	next step in the installation or upgrade process.  If you're
     76  1.1      cgd 	installing NetBSD from scratch, go to the section on preparing
     77  1.1      cgd 	your hard disk, below.  If you're upgrading an existing
     78  1.1      cgd 	installation, go directly to the section on upgrading.
     79  1.1      cgd 
     80  1.1      cgd To install or upgrade NetBSD using a tape, you need to do the
     81  1.1      cgd following:
     82  1.1      cgd 
     83  1.1      cgd 	To install NetBSD from a tape, you need to make a tape that
     84  1.1      cgd 	contains the distribution set files, in "tar" format.  If
     85  1.1      cgd 	you're making the tape on a UN*X-like system, the easiest way
     86  1.1      cgd 	to do so is probably something like:
     87  1.1      cgd 
     88  1.1      cgd 		tar cf <tape_device> <dist_directories>
     89  1.1      cgd 
     90  1.1      cgd 	where "<tape_device>" is the name of the tape device that
     91  1.1      cgd 	describes the tape drive you're using (possibly /dev/rst0, or
     92  1.1      cgd 	something similar, but it will vary from system to system.
     93  1.1      cgd 	(If you can't figure it out, ask your system administrator.)
     94  1.1      cgd 	In the above example, "<dist_directories>" are the
     95  1.1      cgd 	distribution sets' directories, for the distribution sets you
     96  1.1      cgd 	wish to place on the tape.  For instance, to put the "base10"
     97  1.1      cgd 	and "etc10" distributions on tape (in order to do the absolute
     98  1.1      cgd 	minimum installation to a new disk), you would do the
     99  1.1      cgd 	following:
    100  1.1      cgd 
    101  1.1      cgd 		cd .../NetBSD-1.0		# the top of the tree
    102  1.1      cgd 		cd i386/binary
    103  1.1      cgd 		tar cf <tape_device> base10 etc10
    104  1.1      cgd 
    105  1.1      cgd 	(Note that you still need to fill in "<tape_device>" in the
    106  1.1      cgd 	example.)
    107  1.1      cgd 
    108  1.1      cgd 	Once you have the files on the tape, you can proceed to the
    109  1.1      cgd 	next step in the installation or upgrade process.  If you're
    110  1.1      cgd 	installing NetBSD from scratch, go to the section on preparing
    111  1.1      cgd 	your hard disk, below.  If you're upgrading an existing
    112  1.1      cgd 	installation, go directly to the section on upgrading.
    113  1.1      cgd 
    114  1.1      cgd To install or upgrade NetBSD using a remote partition, mounted via
    115  1.1      cgd NFS, you must do the following:
    116  1.1      cgd 
    117  1.1      cgd 	NOTE:	This method of installation is recommended only for
    118  1.1      cgd 		those already familiar with using BSD network
    119  1.1      cgd 		configuration and management commands.  If you aren't,
    120  1.1      cgd 		this documentation should help, but is not intended to
    121  1.1      cgd 		be all-encompassing.
    122  1.1      cgd 
    123  1.1      cgd 	Place the NetBSD distribution sets you wish to install into a
    124  1.1      cgd 	directory on an NFS server, and make that directory mountable
    125  1.1      cgd 	by the machine on which you are installing or upgrading NetBSD.
    126  1.1      cgd 	This will probably require modifying the /etc/exports file on
    127  1.1      cgd 	of the NFS server and resetting its mount daemon (mountd).
    128  1.1      cgd 	(Both of these actions will probably require superuser
    129  1.1      cgd 	privileges on the server.)
    130  1.1      cgd 
    131  1.1      cgd 	You need to know the the numeric IP address of the NFS server,
    132  1.1      cgd 	and, if the server is not on a network directly connected to
    133  1.1      cgd 	the machine on which you're installing or upgrading NetBSD,
    134  1.1      cgd 	you need to know the numeric IP address of the router closest
    135  1.1      cgd 	to the NetBSD machine.  Finally, you need to know the numeric
    136  1.1      cgd 	IP address of the NetBSD machine itself.
    137  1.1      cgd 
    138  1.1      cgd 	Once the NFS server is set up properly and you have the
    139  1.1      cgd 	information mentioned above, you can proceed to the next step
    140  1.1      cgd 	in the installation or upgrade process.  If you're installing
    141  1.1      cgd 	NetBSD from scratch, go to the section on preparing your hard
    142  1.1      cgd 	disk, below.  If you're upgrading an existing installation, go
    143  1.1      cgd 	directly to the section on upgrading.
    144  1.1      cgd 
    145  1.1      cgd To install or upgrade NetBSD by using FTP to get the installation
    146  1.1      cgd sets, you must do the following:
    147  1.1      cgd 
    148  1.1      cgd 	NOTE:	This method of installation is recommended only for
    149  1.1      cgd 		those already familiar with using BSD network
    150  1.1      cgd 		configuration and management commands.  If you aren't,
    151  1.1      cgd 		this documentation should help, but is not intended to
    152  1.1      cgd 		be all-encompassing.
    153  1.1      cgd 
    154  1.1      cgd 	The preparations for this installation/upgrade method are
    155  1.1      cgd 	easy; all you make sure that there's some FTP site from which
    156  1.1      cgd 	you can retrieve the NetBSD distribution when you're about to
    157  1.1      cgd 	install or upgrade.  You need to know the numeric IP address
    158  1.1      cgd 	of that site, and, if it's not on a network directly connected
    159  1.1      cgd 	to the machine on which you're installing or upgrading NetBSD,
    160  1.1      cgd 	you need to know the numeric IP address of the router closest
    161  1.1      cgd 	to the NetBSD machine.  Finally, you need to know the numeric
    162  1.1      cgd 	IP address of the NetBSD machine itself.
    163  1.1      cgd 
    164  1.1      cgd 	Once you have this information, you can proceed to the next
    165  1.1      cgd 	step in the installation or upgrade process.  If you're
    166  1.1      cgd 	installing NetBSD from scratch, go to the section on
    167  1.1      cgd 	preparing your hard disk, below.  If you're upgrading an
    168  1.1      cgd 	existing installation, go directly to the section on
    169  1.1      cgd 	upgrading.
    170  1.1      cgd 
    171  1.1      cgd If you are upgrading NetBSD, you also have the option of installing
    172  1.1      cgd NetBSD by putting the new distribution sets somewhere in your existing
    173  1.1      cgd file system, and using them from there.  To do that, you must do the
    174  1.1      cgd following:
    175  1.1      cgd 
    176  1.1      cgd 	Place the distribution sets you wish to upgrade somewhere in
    177  1.1      cgd 	your current file system tree.  At a bare minimum, you must
    178  1.1      cgd 	upgrade the "base" binary distribution, and so must put the
    179  1.1      cgd 	"base10" set somewhere in your file system.  If you wish,
    180  1.1      cgd 	you can do the other sets, as well, but you should NOT upgrade
    181  1.1      cgd 	the "etc" distribution; the "etc" distribution contains system
    182  1.1      cgd 	configuration files that you should review and update by hand.
    183  1.1      cgd 
    184  1.1      cgd 	Once you have done this, you can proceed to the next step in
    185  1.1      cgd 	the upgrade process, actually upgrading your system.
    186