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

📄 grub.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>      10.66.&nbsp;GRUB-0.97    </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-x86_64-Multilib">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version          CLFS-SVN-20060417-x86_64-Multilib        </h4>        <h3>          Chapter&nbsp;10.&nbsp;Installing Basic System Software        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="udev.html" title="Udev-090">Prev</a>          <p>            Udev-090          </p>        </li>        <li class="next">          <a accesskey="n" href="aboutdebug.html" title=          "About Debugging Symbols">Next</a>          <p>            About Debugging Symbols          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Multilib">          Home</a>        </li>      </ul>    </div>    <div class="wrap" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          10.66. GRUB-0.97        </h1>      </div>      <div class="package" lang="en" xml:lang="en">        <p>          The GRUB package contains the GRand Unified Bootloader.        </p>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installation depends              on:</span></strong> <span class="seg">Autoconf, Bash, Binutils,              Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, and              Sed</span>            </div>          </div>        </div>      </div>      <div class="installation" lang="en" xml:lang="en">        <div class="titlepage">          <h2 class="sect2">            10.66.1. Installation of GRUB          </h2>        </div>        <p>          This package is known to have issues when its default optimization          flags (including the <tt class="option">-march</tt> and <tt class=          "option">-mcpu</tt> options) are changed. If any environment          variables that override default optimizations have been defined,          such as <tt class="envar">CFLAGS</tt> and <tt class=          "envar">CXXFLAGS</tt>, unset them when building GRUB.        </p>        <p>          Prepare GRUB for compilation:        </p>        <pre class="userinput"><kbd class="command">CC="gcc ${BUILD32}" ./configure --prefix=/usr</kbd></pre>        <p>          Compile the package:        </p>        <pre class="userinput"><kbd class="command">make</kbd></pre>        <p>          To test the results, issue: <strong class="userinput"><tt>make          check</tt></strong>.        </p>        <p>          Install the package:        </p>        <pre class="userinput"><kbd class="command">make installmkdir -v /boot/grubcp -v /usr/lib/grub/x86_64-pc/stage{1,2} /boot/grub</kbd></pre>        <p>          Replace <tt class="filename">x86_64-pc</tt> with whatever directory          is appropriate for the hardware in use.        </p>        <p>          The <tt class="filename">x86_64-pc</tt> directory contains a number          of <tt class="filename">*stage1_5</tt> files, different ones for          different file systems. Review the files available and copy the          appropriate ones to the <tt class="filename">/boot/grub</tt>          directory. Most users will copy the <tt class=          "filename">e2fs_stage1_5</tt> and/or <tt class=          "filename">reiserfs_stage1_5</tt> files.        </p>      </div>      <div class="content" lang="en" xml:lang="en">        <div class="titlepage">          <a id="contents-grub" name="contents-grub"></a>          <h2 class="sect2">            10.66.2. Contents of GRUB          </h2>        </div>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installed              programs:</span></strong> <span class="seg">grub, grub-install,              grub-md5-crypt, grub-terminfo, and mbchk</span>            </div>          </div>        </div>        <div class="variablelist">          <h3>            <a id="id3705649" name="id3705649"></a>Short Descriptions          </h3>          <table border="0">            <col align="left" valign="top" />            <tbody>              <tr>                <td>                  <a id="grub" name="grub"></a><span class=                  "term"><span><strong class=                  "command">grub</strong></span></span>                </td>                <td>                  <p>                    The Grand Unified Bootloader's command shell                  </p>                </td>              </tr>              <tr>                <td>                  <a id="grub-install" name="grub-install"></a><span class=                  "term"><span><strong class=                  "command">grub-install</strong></span></span>                </td>                <td>                  <p>                    Installs GRUB on the given device                  </p>                </td>              </tr>              <tr>                <td>                  <a id="grub-md5-crypt" name=                  "grub-md5-crypt"></a><span class=                  "term"><span><strong class="command">grub-md5-crypt</strong></span></span>                </td>                <td>                  <p>                    Encrypts a password in MD5 format                  </p>                </td>              </tr>              <tr>                <td>                  <a id="grub-terminfo" name="grub-terminfo"></a><span class=                  "term"><span><strong class=                  "command">grub-terminfo</strong></span></span>                </td>                <td>                  <p>                    Generates a terminfo command from a terminfo name; it can                    be employed if an unknown terminal is being used                  </p>                </td>              </tr>              <tr>                <td>                  <a id="mbchk" name="mbchk"></a><span class=                  "term"><span><strong class=                  "command">mbchk</strong></span></span>                </td>                <td>                  <p>                    Checks the format of a multi-boot kernel                  </p>                </td>              </tr>            </tbody>          </table>        </div>      </div>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="udev.html" title="Udev-090">Prev</a>          <p>            Udev-090          </p>        </li>        <li class="next">          <a accesskey="n" href="aboutdebug.html" title=          "About Debugging Symbols">Next</a>          <p>            About Debugging Symbols          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Multilib">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

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