creatingpart.html
来自「lfs3.1 从源代码构建linux。html版本。」· HTML 代码 · 共 171 行
HTML
171 行
<HTML><HEAD><TITLE>Creating a new partition</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Preparing a new partition"HREF="../chapter04/chapter04.html"><LINKREL="PREVIOUS"TITLE="Introduction"HREF="../chapter04/introduction.html"><LINKREL="NEXT"TITLE="Creating a file system on the new partition"HREF="../chapter04/creatingfs.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter04/introduction.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 4. Preparing a new partition</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter04/creatingfs.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch04-creatingpart">4.2. Creating a new partition</A></H1><P>First, let's start with telling you that it is possible to build LFS on only one partition, which is where your original distribution is installed. This is not recommended if it is the first time you try LFS, but may be useful if you are short on disk space. If you feel brave, take a look at the one partition hint at <AHREF="http://hints.linuxfromscratch.org/hints/one-partition-hint.txt"TARGET="_top">http://hints.linuxfromscratch.org/hints/one-partition-hint.txt</A>Keep in mind, this is a real hint in that sense of the word, not a finished document yet.</P><P>Before we can build our new Linux system, we need to have an empty Linuxpartition on which we can build our new system. I recommend a partition sizeof at least 750 MB. This gives enough space to store all the tarballs and to compile all packages without worrying about running out of the necessary temporary disk space. But you probably want more space than that if youplan to use the LFS system as your primary Linux system. If that's thecase you'd want more space so you can install additional software. If a Linux Native partition is already available, this subsection can be skipped.</P><P>The cfdisk program (or another fdisk like program you prefer) isto be started with the appropriate hard disk as the option (like /dev/hda if a new partition is to be created on the primary master IDE disk). It is used to create a Linux Native partition, write the partition table and exit the cfdisk program. Please refer to the documentation that comes with yourfdisk program of choice (the man pages are often a good place to start)and read the procedures about how to create a new Linux nativepartition and how to write the partition table.</P><P>The new partition's designation should be remembered. It could be something like hda11. This newly created partition will be referred to as the LFS partition in this book.</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter04/introduction.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter04/creatingfs.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Introduction</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter04/chapter04.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Creating a file system on the new partition</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?