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

📄 系统引导管理器grub,为初学者指南 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0040)http://www.linuxsir.org/main/?q=node/129 -->
<HTML lang=zh-hans xml:lang="zh-hans" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>系统引导管理器GRUB,为初学者指南 | LinuxSir.Org</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css media=all>@import url( misc/drupal.css );
</STYLE>



<STYLE type=text/css media=all>@import url( modules/taxonomy_context/taxonomy_context.css );
</STYLE>
<LINK media=screen 
href="系统引导管理器GRUB,为初学者指南  LinuxSir_Org.files/menuExpandable3.css" type=text/css 
rel=stylesheet>
<SCRIPT src="系统引导管理器GRUB,为初学者指南  LinuxSir_Org.files/menuExpandable3.js" 
type=text/javascript></SCRIPT>
<LINK href="系统引导管理器GRUB,为初学者指南  LinuxSir_Org.files/common.css" type=text/css 
rel=stylesheet>
<STYLE type=text/css media=all>@import url( themes/chameleon/marvin/style.css );
</STYLE>

<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV id=header><A title=Home href="http://www.linuxsir.org/main/"><IMG alt=Home 
src="系统引导管理器GRUB,为初学者指南  LinuxSir_Org.files/logo.jpg"></A></DIV>
<DIV class=navlinks>
<DIV class=primary><A href="http://www.linuxsir.org/main/?q"><FONT 
color=white>首页</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/34"><FONT 
color=white>事件</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/"><FONT 
color=white>文档</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/"><FONT 
color=white>资源</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=search"><FONT color=white>搜索</FONT></A> | 
<A href="http://www.linuxsir.org/bbs"><FONT color=white>论坛</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/38"><FONT 
color=white>贡献者</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=node/3"><FONT color=white>关于</FONT></A> | 
<A href="http://www.linuxsir.org/main/?q=user"><FONT 
color=white>注册/登录</FONT></A></DIV></DIV>
<TABLE id=content>
  <TBODY>
  <TR>
    <TD id=sidebar-left>
      <DIV class="block block-block" id=block-block-1>
      <H2 class=title>子站索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://fedora.linuxsir.org/" target?_blank?>Fedora中文</A> 
        <LI><A href="http://debian.linuxsir.org/" target?_blank?>Debian中文</A> 
        <LI><A href="http://lfs.linuxsir.org/" target?_blank?>LFS 中文</A> 
        <LI><A href="http://slack.linuxsir.org/">Slackware</A> 
        <LI><A href="http://gentoo.linuxsir.org/">Gentoo中文</A> 
        <LI><A href="http://arch.linuxsir.org/">Arch 中文</A> </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-3>
      <H2 class=title>重要资讯</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/36">本站公告</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/34">新闻事件</A> 
        <LI><A href="http://www.linuxsir.org/bbs" target=_blank>本站论坛</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/38">贡 献 者</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-7>
      <H2 class=title>项目索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.fcitx.org/" target=_blank>小企鹅输入法</A> 
        <LI><A href="http://lumaqq.linuxsir.org/" target=_blank>LumaQQ</A> 
        <LI><A href="http://openq.linuxsir.org/" target=_blank>OpenQ</A> 
        <LI><A href="http://www.relaxbsd.org/" target=_blank>RelaxBSD</A> 
      </LI></UL></DIV></DIV>
      <DIV class="block block-user" id=block-user-1>
      <H2 class=title>站点导航</H2>
      <DIV class=content>
      <DIV class=menu>
      <UL>
        <LI class=leaf><A title=注册/登录 
        href="http://www.linuxsir.org/main/?q=user">注册/登录</A> 
        <LI class=collapsed><A 
        href="http://www.linuxsir.org/main/?q=aggregator">新闻聚合</A> 
      </LI></UL></DIV></DIV></DIV>
      <DIV class="block block-aggregator" id=block-aggregator-feed-2>
      <H2 class=title>LinuxSir.Org 论坛</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267339&amp;goto=newpost">开始LFS,第一贴</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267338&amp;goto=newpost">唔,今天心情好,贴个图:)</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267337&amp;goto=newpost">Thruth请进~关于BCM 
        43xx 无线网卡支持</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267336&amp;goto=newpost">--with-pic什么意思和作用?</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=267335&amp;goto=newpost">请问suse下如何调整硬盘分区的大小?</A> 
        </LI></UL></DIV>
      <DIV class=more-link><A title=查看此feed的最新消息 
      href="http://www.linuxsir.org/main/?q=aggregator/sources/2">更多</A></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-2>
      <H2 class=title>最新注册</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI>Gavin_ygf
        <LI>warrior
        <LI>ronnyma
        <LI>norton007
        <LI>yanghaiquan</LI></UL></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-3>
      <H2 class=title>当前在线</H2>
      <DIV class=content>4 users 和 129 游客 在线
      <DIV class=item-list>
      <H3>在线用户</H3>
      <UL>
        <LI>Gavin_ygf
        <LI>wanglan0415
        <LI>warrior
        <LI>ronnyma</LI></UL></DIV></DIV></DIV></TD>
    <TD id=main>
      <DIV class=breadcrumb><A href="http://www.linuxsir.org/main/?q=">首页</A> » 
      <A href="http://www.linuxsir.org/main/?q=taxonomy/term/1">Linux</A></DIV>
      <H2>系统引导管理器GRUB,为初学者指南</H2><!-- begin content -->
      <DIV class=node>
      <DIV class=content>
      <P><B>作者:</B>北南南北<BR><B>来自:</B>LinuxSir.Org<BR><B>摘要:</B> 
      GRUB是多系统引导管理器,简单的说既能引导Linux,同时也能引导Windows;从LinuxSir.Org 
      讨论区近四年的观察来看,大多初学者并不能在短时间内掌握GRUB的用法,为了解决初学者在最短时间内掌握GRUB,重写GRUB入门文档还是有必要的;</P>
      <P>本文重点介绍了GRUB的menu.lst的写法,另外通过GRUB命令行引导系统也做了详述;这些无论是对Windows版本的WINGRUB还是Linux版本的GRUB都是适用的;</P>
      <P><FONT size=4><B>目录索引</B></FONT></P>
      <P><A 
      href="http://www.linuxsir.org/main/?q=node/129#1"><B>一、什么是多重操作系统引导管理器,什么是GRUB;</B></A></P>
      <UL><A 
        href="http://www.linuxsir.org/main/?q=node/129#1.1">1、什么是多重操作系统引导管理器及工作原理;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/129#1.2">2、什么是GRUB;为什么我要选择GRUB;</A>
        <P></P>
        <UL><A 
          href="http://www.linuxsir.org/main/?q=node/129#1.21">1)什么是GRUB;</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/129#1.22">2)“GRUB太不好用”──对GRUB的认识的误区;</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/129#1.23">3)为什么要选择GRUB;</A> 
        </UL></UL>
      <P><A 
      href="http://www.linuxsir.org/main/?q=node/129#2"><B>二、GRUB软件包版本选择和安装;</B></A></P>
      <UL><A 
        href="http://www.linuxsir.org/main/?q=node/129#2.1">1、Linux版本的GRUB及Windows版本的GRUB的说明;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/129#2.2">2、GRUB的Windows版本WINGRUB;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/129#2.3">3、GRUB的Linux版本软件包的安装;</A> 
      </UL>
      <P><A 
      href="http://www.linuxsir.org/main/?q=node/129#3"><B>三、在Linux中,GRUB的配置中的安装和写入硬盘的MBR;</B></A></P>
      <UL><A 
        href="http://www.linuxsir.org/main/?q=node/129#3.1">1、在Linux中,GRUB配置过程中的安装grub-install;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/129#3.2">2、设定GRUB的/boot分区并写入MBR;</A> 
      </UL>
      <P><A 
      href="http://www.linuxsir.org/main/?q=node/129#4"><B>四、GRUB的配置文件的menu.lst的写法;</B></A></P>
      <UL><A 
        href="http://www.linuxsir.org/main/?q=node/129#4.1">1、menu.lst的写法之一;</A>
        <P></P>
        <UL><A 
          href="http://www.linuxsir.org/main/?q=node/129#4.11">1)在menu.lst中 ,通过 
          root (hd[0-n],y)来指定/boot 所在的分区;</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/129#4.12">2)在menu.lst中,kernel 
          命令行的写法;</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/129#4.13">3)initrd 
          命令行的写法;</A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/129#4.14">4)menu.lst第一种写法的总结和实践;</A>
          <P></P>
          <UL><A 
            href="http://www.linuxsir.org/main/?q=node/129#4.141">1]用fdisk -l 
            ;df -lh ;more /etc/fstab来确认分区情况;</A><BR><A 
            href="http://www.linuxsir.org/main/?q=node/129#4.142">2]查看内核vmlinuz的和initrd文件名的全称;</A><BR><A 
            href="http://www.linuxsir.org/main/?q=node/129#4.143">3]开始写menu.lst 
            ;</A> </UL></UL>
        <P><A 
        href="http://www.linuxsir.org/main/?q=node/129#4.2">2、menu.lst的写法之二,精简型;</A></P>
        <UL><A 

⌨️ 快捷键说明

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