📄 install-diff-media.html
字号:
the <tt class="DEVICENAME">A:</tt> drive, and select ``Format''.</p><p>Do <span class="emphasis"><i class="EMPHASIS">not</i></span> trust factorypre-formatted floppies. Format them again yourself, just to be sure. Many problemsreported by our users in the past have resulted from the use of improperly formattedmedia, which is why we are making a point of it now.</p><p>If you are creating the floppies on another FreeBSD machine, a format is still not abad idea, though you do not need to put a DOS filesystem on each floppy. You can use the<tt class="COMMAND">disklabel</tt> and <tt class="COMMAND">newfs</tt> commands to put aUFS filesystem on them instead, as the following sequence of commands (for a 3.5"1.44 MB floppy) illustrates:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">fdformat -f 1440 fd0.1440</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">disklabel -w -r fd0.1440 floppy3</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">newfs -t 2 -u 18 -l 1 -i 65536 /dev/fd0</kbd></pre><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> Use <var class="LITERAL">fd0.1200</var> and <varclass="LITERAL">floppy5</var> for 5.25" 1.2 MB disks.</p></blockquote></div><p>Then you can mount and write to them like any other filesystem.</p><p>After you have formatted the floppies, you will need to copy the files to them. Thedistribution files are split into chunks conveniently sized so that five of them will fiton a conventional 1.44 MB floppy. Go through all your floppies, packing as manyfiles as will fit on each one, until you have all of the distributions you want packed upin this fashion. Each distribution should go into a subdirectory on the floppy, e.g.: <ttclass="FILENAME">a:\bin\bin.aa</tt>, <tt class="FILENAME">a:\bin\bin.ab</tt>, and soon.</p><p>Once you come to the Media screen during the install process, select <spanclass="GUIMENUITEM">Floppy</span> and you will be prompted for the rest.</p></div><div class="SECT2"><h2 class="SECT2"><a id="INSTALL-MSDOS" name="INSTALL-MSDOS">2.13.4 Installing from an<span class="TRADEMARK">MS-DOS</span>® Partition</a></h2><p>To prepare for an installation from an <span class="TRADEMARK">MS-DOS</span>partition, copy the files from the distribution into a directory called <ttclass="FILENAME">freebsd</tt> in the root directory of the partition. For example, <ttclass="FILENAME">c:\freebsd</tt>. The directory structure of the CDROM or FTP site mustbe partially reproduced within this directory, so we suggest using the DOS <ttclass="COMMAND">xcopy</tt> command if you are copying it from a CD. For example, toprepare for a minimal installation of FreeBSD:</p><pre class="SCREEN"><samp class="PROMPT">C:\></samp> <kbd class="USERINPUT">md c:\freebsd</kbd><samp class="PROMPT">C:\></samp> <kbdclass="USERINPUT">xcopy e:\bin c:\freebsd\bin\ /s</kbd><samp class="PROMPT">C:\></samp> <kbdclass="USERINPUT">xcopy e:\manpages c:\freebsd\manpages\ /s</kbd></pre><p>Assuming that <tt class="DEVICENAME">C:</tt> is where you have free space and <ttclass="DEVICENAME">E:</tt> is where your CDROM is mounted.</p><p>If you do not have a CDROM drive, you can download the distribution from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/"target="_top">ftp.FreeBSD.org</a>. Each distribution is in its own directory; forexample, the <span class="emphasis"><i class="EMPHASIS">base</i></span> distribution canbe found in the <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/base/"target="_top">5.2.1/base/</a> directory.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> In the 4.X and older releases of FreeBSD the ``base'' distribution iscalled ``bin''. Adjust the sample commands and URLs above accordingly, if you are usingone of these versions.</p></blockquote></div><p>For as many distributions you wish to install from an <spanclass="TRADEMARK">MS-DOS</span> partition (and you have the free space for), install eachone under <tt class="FILENAME">c:\freebsd</tt> -- the <var class="LITERAL">BIN</var>distribution is the only one required for a minimum installation.</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN3499" name="AEN3499">2.13.5 Creating an InstallationTape</a></h2><p>Installing from tape is probably the easiest method, short of an online FTP install orCDROM install. The installation program expects the files to be simply tarred onto thetape. After getting all of the distribution files you are interested in, simply tar themonto the tape:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /freebsd/distdir</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">tar cvf /dev/rwt0 dist1 ... dist2</kbd></pre><p>When you perform the installation, you should make sure that you leave enough room insome temporary directory (which you will be allowed to choose) to accommodate the <spanclass="emphasis"><i class="EMPHASIS">full</i></span> contents of the tape you havecreated. Due to the non-random access nature of tapes, this method of installationrequires quite a bit of temporary storage.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> When starting the installation, the tape must be in the drive <spanclass="emphasis"><i class="EMPHASIS">before</i></span> booting from the boot floppy. Theinstallation probe may otherwise fail to find it.</p></blockquote></div></div><div class="SECT2"><h2 class="SECT2"><a id="AEN3515" name="AEN3515">2.13.6 Before Installing over aNetwork</a></h2><p>There are three types of network installations available. Serial port (SLIP or PPP),Parallel port (PLIP (laplink cable)), or Ethernet (a standard Ethernet controller(includes some PCMCIA)).</p><p>The SLIP support is rather primitive, and limited primarily to hard-wired links, suchas a serial cable running between a laptop computer and another computer. The link shouldbe hard-wired as the SLIP installation does not currently offer a dialing capability;that facility is provided with the PPP utility, which should be used in preference toSLIP whenever possible.</p><p>If you are using a modem, then PPP is almost certainly your only choice. Make surethat you have your service provider's information handy as you will need to know itfairly early in the installation process.</p><p>If you use PAP or CHAP to connect your ISP (in other words, if you can connect to theISP in <span class="TRADEMARK">Windows</span> without using a script), then all you willneed to do is type in <tt class="COMMAND">dial</tt> at the <b class="APPLICATION">ppp</b>prompt. Otherwise, you will need to know how to dial your ISP using the ``AT commands''specific to your modem, as the PPP dialer provides only a very simple terminal emulator.Please refer to the user-ppp <a href="userppp.html">handbook</a> and <ahref="../../../../doc/en_US.ISO8859-1/books/faq/ppp.html" target="_top">FAQ</a> entriesfor further information. If you have problems, logging can be directed to the screenusing the command <tt class="COMMAND">set log local ...</tt>.</p><p>If a hard-wired connection to another FreeBSD (2.0-R or later) machine is available,you might also consider installing over a ``laplink'' parallel port cable. The data rateover the parallel port is much higher than what is typically possible over a serial line(up to 50 kbytes/sec), thus resulting in a quicker installation.</p><p>Finally, for the fastest possible network installation, an Ethernet adapter is alwaysa good choice! FreeBSD supports most common PC Ethernet cards; a table of supported cards(and their required settings) is provided in the Hardware Notes for each release ofFreeBSD. If you are using one of the supported PCMCIA Ethernet cards, also be sure thatit is plugged in <span class="emphasis"><i class="EMPHASIS">before</i></span> the laptopis powered on! FreeBSD does not, unfortunately, currently support hot insertion of PCMCIAcards during installation.</p><p>You will also need to know your IP address on the network, the netmask value for youraddress class, and the name of your machine. If you are installing over a PPP connectionand do not have a static IP, fear not, the IP address can be dynamically assigned by yourISP. Your system administrator can tell you which values to use for your particularnetwork setup. If you will be referring to other hosts by name rather than IP address,you will also need a name server and possibly the address of a gateway (if you are usingPPP, it is your provider's IP address) to use in talking to it. If you want to install byFTP via a HTTP proxy, you will also need the proxy's address. If you do not know theanswers to all or most of these questions, then you should really probably talk to yoursystem administrator or ISP <span class="emphasis"><i class="EMPHASIS">before</i></span>trying this type of installation.</p><div class="SECT3"><h3 class="SECT3"><a id="AEN3546" name="AEN3546">2.13.6.1 Before Installing viaNFS</a></h3><p>The NFS installation is fairly straight-forward. Simply copy the FreeBSD distributionfiles you want onto an NFS server and then point the NFS media selection at it.</p><p>If this server supports only ``privileged port'' (as is generally the default for Sunworkstations), you will need to set the option <var class="OPTION">NFS Secure</var> inthe Options menu before installation can proceed.</p><p>If you have a poor quality Ethernet card which suffers from very slow transfer rates,you may also wish to toggle the <var class="OPTION">NFS Slow</var> flag.</p><p>In order for NFS installation to work, the server must support subdir mounts, forexample, if your FreeBSD 5.2.1 distribution directory lives on: <ttclass="FILENAME">ziggy:/usr/archive/stuff/FreeBSD</tt>, then <ttclass="HOSTID">ziggy</tt> will have to allow the direct mounting of <ttclass="FILENAME">/usr/archive/stuff/FreeBSD</tt>, not just <tt class="FILENAME">/usr</tt>or <tt class="FILENAME">/usr/archive/stuff</tt>.</p><p>In FreeBSD's <tt class="FILENAME">/etc/exports</tt> file, this is controlled by the<var class="OPTION">-alldirs</var> options. Other NFS servers may have differentconventions. If you are getting ``<tt class="ERRORNAME">permission denied</tt>'' messagesfrom the server, then it is likely that you do not have this enabled properly.</p></div></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="install-advanced.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="basics.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Advanced Installation Guide</td><td width="34%" align="center" valign="top"><a href="install.html"accesskey="U">Up</a></td><td width="33%" align="right" valign="top">UNIX Basics</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting <<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>.<br />For questions about this documentation, e-mail <<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</small></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -