⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 creatingpartition.html

📁 CLFS(Cross-Compiled Linux From Scratch)的文档 Version CLFS-SVN-20060417
💻 HTML
字号:
<!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-MIPS">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS        </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-MIPS">          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>      <p>        On a Cobalt RaQ2/Cube2 we use the existing firmware for a boot        loader, it requires an <tt class="systemitem">ext2</tt> revision 0        partition to boot from. So here is the recommended partition for a        Cobalt RaQ2/Cube2 system:      </p>      <div class="itemizedlist">        <ul>          <li>            <p>              The first partition should be 50-100 MB.            </p>          </li>          <li>            <p>              The second partition should be all the remaining space minus              the amount of RAM in the system.            </p>          </li>          <li>            <p>              The third partition is going to be your swap partition, which              will be the same amount as the RAM installed in the system.            </p>          </li>        </ul>      </div>    </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-MIPS">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

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