creatingpartition.html

来自「CLFS(Cross-Compiled Linux From Scratch)的」· HTML 代码 · 共 139 行

HTML
139
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <meta http-equiv="Content-Type" content=    "application/xhtml+xml; charset=iso-8859-1" />    <title>      2.2.&nbsp;Creating a New Partition    </title>    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />    <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=    "text/css" media="print" />  </head>  <body id="lfs" class="CLFS-SVN-20060417-PowerPC">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version          CLFS-SVN-20060417-PowerPC        </h4>        <h3>          Chapter&nbsp;2.&nbsp;Preparing a New Partition        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="chapter.html" title=          "Preparing a New Partition">Prev</a>          <p>            Preparing a New Partition          </p>        </li>        <li class="next">          <a accesskey="n" href="creatingfilesystem.html" title=          "Creating a File System on the Partition">Next</a>          <p>            Creating a File System on the Partition          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;2.&nbsp;Preparing a New Partition">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-PowerPC">          Home</a>        </li>      </ul>    </div>    <div class="sect1" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          2.2. Creating a New Partition        </h1>      </div>      <p>        Like most other operating systems, LFS is usually installed on a        dedicated partition. The recommended approach to building an LFS        system is to use an available empty partition or, if you have enough        unpartitioned space, to create one. However, an LFS system (in fact        even multiple LFS systems) may also be installed on a partition        already occupied by another operating system and the different        systems will co-exist peacefully. The document <a href=        "http://www.linuxfromscratch.org/hints/downloads/files/lfs_next_to_existing_systems.txt">        <i>http://www.linuxfromscratch.org/hints/downloads/files/lfs_next_to_existing_systems.txt</i></a>        explains how to implement this, whereas this book discusses the        method of using a fresh partition for the installation.      </p>      <p>        A minimal system requires a partition of around 1.3 gigabytes (GB).        This is enough to store all the source tarballs and compile the        packages. However, if the LFS system is intended to be the primary        Linux system, additional software will probably be installed which        will require additional space (2-3 GB). The LFS system itself will        not take up this much room. A large portion of this requirement is to        provide sufficient free temporary storage. Compiling packages can        require a lot of disk space which will be reclaimed after the package        is installed.      </p>      <p>        Because there is not always enough Random Access Memory (RAM)        available for compilation processes, it is a good idea to use a small        disk partition as swap space. This is used by the kernel to store        seldom-used data and leave more memory available for active        processes. The swap partition for an LFS system can be the same as        the one used by the host system, in which case it is not necessary to        create another one.      </p>      <p>        Start a disk partitioning program such as <span><strong class=        "command">cfdisk</strong></span> or <span><strong class=        "command">fdisk</strong></span> with a command line option naming the        hard disk on which the new partition will be created&mdash;for        example <tt class="filename">/dev/hda</tt> for the primary Integrated        Drive Electronics (IDE) disk. Create a Linux native partition and a        swap partition, if needed. Please refer to <tt class=        "filename">cfdisk(8)</tt> or <tt class="filename">fdisk(8)</tt> if        you do not yet know how to use the programs.      </p>      <p>        Remember the designation of the new partition (e.g., <tt class=        "filename">hda5</tt>). This book will refer to this as the LFS        partition. Also remember the designation of the swap partition. These        names will be needed later for the <tt class=        "filename">/etc/fstab</tt> file.      </p>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="chapter.html" title=          "Preparing a New Partition">Prev</a>          <p>            Preparing a New Partition          </p>        </li>        <li class="next">          <a accesskey="n" href="creatingfilesystem.html" title=          "Creating a File System on the Partition">Next</a>          <p>            Creating a File System on the Partition          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;2.&nbsp;Preparing a New Partition">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-PowerPC">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?