📄 install-steps.html
字号:
<th>Filesystem</th><th>Size</th><th>Description</th></tr></thead><tbody><tr><td><var class="LITERAL">b</var></td><td>N/A</td><td>See description</td><td>As already discussed, you can split swap space across each disk. Even though the <varclass="LITERAL">a</var> partition is free, convention dictates that swap space stays onthe <var class="LITERAL">b</var> partition.</td></tr><tr><td><var class="LITERAL">e</var></td><td>/disk<var class="REPLACEABLE">n</var></td><td>Rest of disk</td><td>The rest of the disk is taken up with one big partition. This could easily be put onthe <var class="LITERAL">a</var> partition, instead of the <var class="LITERAL">e</var>partition. However, convention says that the <var class="LITERAL">a</var> partition on aslice is reserved for the filesystem that will be the root (<tt class="FILENAME">/</tt>)filesystem. You do not have to follow this convention, but <bclass="APPLICATION">sysinstall</b> does, so following it yourself makes the installationslightly cleaner. You can choose to mount this filesystem anywhere; this example suggeststhat you mount them as directories <tt class="FILENAME">/disk<varclass="REPLACEABLE">n</var></tt>, where <var class="REPLACEABLE">n</var> is a number thatchanges for each disk. But you can use another scheme if you prefer.</td></tr></tbody></table></div><p>Having chosen your partition layout you can now create it using <bclass="APPLICATION">sysinstall</b>. You will see this message:</p><pre class="SCREEN"> Message Now, you need to create BSD partitions inside of the fdisk partition(s) just created. If you have a reasonable amount of disk space (200MB or more) and don't have any special requirements, simply use the (A)uto command to allocate space automatically. If you have more specific needs or just don't care for the layout chosen by (A)uto, press F1 for more information on manual layout. [ OK ] [ Press enter or space ]</pre><p>Press <b class="KEYCAP">Enter</b> to start the FreeBSD partition editor, called <bclass="APPLICATION">Disklabel</b>.</p><p><a href="install-steps.html#SYSINSTALL-LABEL">Figure 2-21</a> shows the display whenyou first start <b class="APPLICATION">Disklabel</b>. The display is divided in to threesections.</p><p>The first few lines show the name of the disk you are currently working on, and theslice that contains the partitions you are creating (at this point <bclass="APPLICATION">Disklabel</b> calls this the <var class="LITERAL">Partitionname</var> rather than slice name). This display also shows the amount of free spacewithin the slice; that is, space that was set aside in the slice, but that has not yetbeen assigned to a partition.</p><p>The middle of the display shows the partitions that have been created, the name of thefilesystem that each partition contains, their size, and some options pertaining to thecreation of the filesystem.</p><p>The bottom third of the screen shows the keystrokes that are valid in <bclass="APPLICATION">Disklabel</b>.</p><div class="FIGURE"><a id="SYSINSTALL-LABEL" name="SYSINSTALL-LABEL"></a><p><b>Figure 2-21. Sysinstall Disklabel Editor</b></p><p><img src="install/disklabel-ed1.png" /></p></div><p><b class="APPLICATION">Disklabel</b> can automatically create partitions for you andassign them default sizes. Try this now, by Pressing <b class="KEYCAP">A</b>. You willsee a display similar to that shown in <ahref="install-steps.html#SYSINSTALL-LABEL2">Figure 2-22</a>. Depending on the size of thedisk you are using, the defaults may or may not be appropriate. This does not matter, asyou do not have to accept the defaults.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> Beginning with FreeBSD 4.5, the default partitioning assigns the <ttclass="FILENAME">/tmp</tt> directory its own partition instead of being part of the <ttclass="FILENAME">/</tt> partition. This helps avoid filling the <ttclass="FILENAME">/</tt> partition with temporary files.</p></blockquote></div><div class="FIGURE"><a id="SYSINSTALL-LABEL2" name="SYSINSTALL-LABEL2"></a><p><b>Figure 2-22. Sysinstall Disklabel Editor with Auto Defaults</b></p><p><img src="install/disklabel-auto.png" /></p></div><p>If you choose to not use the default partitions and wish to replace them with yourown, use the arrow keys to select the first partition, and press <b class="KEYCAP">D</b>to delete it. Repeat this to delete all the suggested partitions.</p><p>To create the first partition (<var class="LITERAL">a</var>, mounted as <ttclass="FILENAME">/</tt> -- root), make sure the proper disk slice at the top of thescreen is selected and press <b class="KEYCAP">C</b>. A dialog box will appear promptingyou for the size of the new partition (as shown in <ahref="install-steps.html#SYSINSTALL-LABEL-ADD">Figure 2-23</a>). You can enter the sizeas the number of disk blocks you want to use, or as a number followed by either <varclass="LITERAL">M</var> for megabytes, <var class="LITERAL">G</var> for gigabytes, or<var class="LITERAL">C</var> for cylinders.</p><div class="NOTE"><blockquote class="NOTE"><p><b>Note:</b> Beginning with FreeBSD 5.X, users can: select <acronymclass="ACRONYM">UFS2</acronym> using the <var class="LITERAL">Custom Newfs</var> (<bclass="KEYCAP">Z</b>) option, create labels with <var class="LITERAL">Auto Defaults</var>and modify them with the <var class="LITERAL">Custom Newfs</var> option or add <varclass="OPTION">-O 2</var> during the regular creation period. Do not forget to add <varclass="OPTION">-U</var> for SoftUpdates if you use the <var class="LITERAL">CustomNewfs</var> option!</p></blockquote></div><div class="FIGURE"><a id="SYSINSTALL-LABEL-ADD" name="SYSINSTALL-LABEL-ADD"></a><p><b>Figure 2-23. Free Space for Root Partition</b></p><p><img src="install/disklabel-root1.png" /></p></div><p>The default size shown will create a partition that takes up the rest of the slice. Ifyou are using the partition sizes described in the earlier example, then delete theexisting figure using <b class="KEYCAP">Backspace</b>, and then type in <kbdclass="USERINPUT">64M</kbd>, as shown in <ahref="install-steps.html#SYSINSTALL-LABEL-ADD2">Figure 2-24</a>. Then press <spanclass="GUIBUTTON">[ OK ]</span>.</p><div class="FIGURE"><a id="SYSINSTALL-LABEL-ADD2" name="SYSINSTALL-LABEL-ADD2"></a><p><b>Figure 2-24. Edit Root Partition Size</b></p><p><img src="install/disklabel-root2.png" /></p></div><p>Having chosen the partition's size you will then be asked whether this partition willcontain a filesystem or swap space. The dialog box is shown in <ahref="install-steps.html#SYSINSTALL-LABEL-TYPE">Figure 2-25</a>. This first partitionwill contain a filesystem, so check that <span class="GUIMENUITEM">FS</span> is selectedand press <b class="KEYCAP">Enter</b>.</p><div class="FIGURE"><a id="SYSINSTALL-LABEL-TYPE" name="SYSINSTALL-LABEL-TYPE"></a><p><b>Figure 2-25. Choose the Root Partition Type</b></p><p><img src="install/disklabel-fs.png" /></p></div><p>Finally, because you are creating a filesystem, you must tell <bclass="APPLICATION">Disklabel</b> where the filesystem is to be mounted. The dialog boxis shown in <a href="install-steps.html#SYSINSTALL-LABEL-MOUNT">Figure 2-26</a>. The rootfilesystem's mount point is <tt class="FILENAME">/</tt>, so type <kbdclass="USERINPUT">/</kbd>, and then press <b class="KEYCAP">Enter</b>.</p><div class="FIGURE"><a id="SYSINSTALL-LABEL-MOUNT" name="SYSINSTALL-LABEL-MOUNT"></a><p><b>Figure 2-26. Choose the Root Mount Point</b></p><p><img src="install/disklabel-root3.png" /></p></div><p>The display will then update to show you the newly created partition. You shouldrepeat this procedure for the other partitions. When you create the swap partition, youwill not be prompted for the filesystem mount point, as swap partitions are nevermounted. When you create the final partition, <tt class="FILENAME">/usr</tt>, you canleave the suggested size as is, to use the rest of the slice.</p><p>Your final FreeBSD DiskLabel Editor screen will appear similar to <ahref="install-steps.html#SYSINSTALL-LABEL4">Figure 2-27</a>, although your values chosenmay be different. Press <b class="KEYCAP">Q</b> to finish.</p><div class="FIGURE"><a id="SYSINSTALL-LABEL4" name="SYSINSTALL-LABEL4"></a><p><b>Figure 2-27. Sysinstall Disklabel Editor</b></p><p><img src="install/disklabel-ed2.png" /></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="using-sysinstall.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="install-choosing.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Introducing Sysinstall</td><td width="34%" align="center" valign="top"><a href="install.html"accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Choosing What to Install</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 + -