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