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

📄 系统引导过程及硬盘分区结构论述 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0039)http://www.linuxsir.org/main/?q=node/82 -->
<HTML lang=zh-hans xml:lang="zh-hans" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>系统引导过程及硬盘分区结构论述 | 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="系统引导过程及硬盘分区结构论述  LinuxSir_Org.files/menuExpandable3.css" type=text/css 
rel=stylesheet>
<SCRIPT src="系统引导过程及硬盘分区结构论述  LinuxSir_Org.files/menuExpandable3.js" 
type=text/javascript></SCRIPT>
<LINK href="系统引导过程及硬盘分区结构论述  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="系统引导过程及硬盘分区结构论述  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=266922&amp;goto=newpost">如何在FvwmButtons中使用系统托盘?</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266921&amp;goto=newpost">FC5 
        root 的垃圾箱被彻底删掉了,怎么恢复?</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266920&amp;goto=newpost">我想做一个mini 
        linux 该怎么下手呢~</A> 
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266919&amp;goto=newpost">FC5体验之影音篇</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266918&amp;goto=newpost">请教高手:FEDORA 
        4 安装问题</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>horiwa
        <LI>jiechu
        <LI>emiss
        <LI>ismart
        <LI>mynamewsy</LI></UL></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-3>
      <H2 class=title>当前在线</H2>
      <DIV class=content>0 users 和 94 游客 在线</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>系统引导过程及硬盘分区结构论述</H2><!-- begin content -->
      <DIV class=node>
      <DIV class=content>
      <P><B>作者:</B> <A href="http://www.linuxsir.org/bbs/member.php?u=57037" 
      target=_blank>zhy2111314</A><BR><B>来自:</B> LinuxSir.Org 
      ouc.edu.cn<BR><B>摘要:</B> 本文是理论性文档,主要讲述系统引导过程以及硬盘的物理结构;</P>
      <P><B><BR>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<BR>正文<BR>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<BR></B></P>
      <P><FONT size=4><B><BR>一、系统引导过程简介<BR></B></FONT></P>
      <P>系统引导过程主要由以下几个步骤组成(以硬盘启动为例)<BR>1、 开机;<BR>2、 BIOS加电自检(POST---Power On 
      Self Test),内存地址为0fff:0000;<BR>3、 将硬盘第一个扇区(0头0道1扇区,也就是Boot 
      Sector)读入内存地址0000:7c00处;<BR>4、 
      检查(WORD)0000:7dfe是否等于0xaa55.若不等于则转去尝试其他介质;如果没有其他启动介质,则显示 ”No ROM BASIC” 
      ,然后死机;<BR>5、 跳转到0000:7c00处执行MBR中的程序;<BR>6、 
      MBR先将自己复制到0000:0600处,然后继续执行;<BR>7、 
      在主分区表中搜索标志为活动的分区.如果发现没有活动分区或者不止一个活动分区,则停止;<BR>8、 
      将活动分区的第一个扇区读入内存地址0000:7c00处;<BR>9、 检查(WORD)0000:7dfe是否等于0xaa55,若不等于则显示 
      “Missing Operating System”,然后停止,或尝试软盘启动;<BR>10、 
      跳转到0000:7c00处继续执行特定系统的启动程序;<BR>11、 启动系统.</P>
      <P>以上步骤中(2),(3),(4),(5)步由BIOS的引导程序完成;(6),(7),(8),(9),(10)步由MBR中的引导程序完成.<BR>一般多系统引导程序(如Smart 
      Boot Manager, BootStar, 
      PQBoot等)都是将标准主引导记录替换成自己的引导程序,在运行系统启动程序之前让用户选择想要启动的分区.而某些系统自带的多系统引导程序(如 
      LILO,NT Loader等)则可以将自己的引导程序放在系统所处分区的第一个扇区中,在Linux中即为两个扇区的SuperBlock.</P>
      <P><FONT color=red><B>注:</B></FONT>以上步骤中使用的是标准的MBR,多系统引导程序的引导过程与此不同.</P>
      <P><FONT size=4><B><BR>二、硬盘结构及参数<BR></B></FONT></P>
      <P>3D参数(Disk Geometry):CHS(Cylinder/Head/Sector) 
      C-Cylinder柱面数表示硬盘每面盘片上有几条磁道,最大为1024(用10个二进制位存储);H-Head磁头数表示硬盘总共有几个磁头,也就是几面盘片,最大为256(用8个二进制位存储);S-Sector扇区数表示每条磁道上有几个扇区,最大为63(用6个二进制位存储).<BR><FONT 
      size=3><B><BR>1、引导扇区<BR></B></FONT><BR>Boot Sector组成<BR>Boot 
      Sector也就是硬盘的第一个扇区,它由MBR(Master Boot Record), DPT(Disk Partition Table) 和 
      Boot Record ID三部分组成. MBR又称为主引导记录,占用Boot 
      Sector的前446个字节(0~0x1BD),存放系统主引导程序(它负责从活动分区中装载并且运行系统引导程序). 
      DPT即主分区表占用64个字节(0x1BE~0x1FD),记录磁盘的基本分区信息.主分区表分为四个分区项,每项16个字节,分别记录每个主分区的信息(因此最多可以有四个主分区). 
      Boot Record ID即引导区标记占用两个字节(0x1FE~0x1FF),对于合法引导区,它等于0xaa55,这是判别引导区是否合法的标志). 
      </P>
      <P>Boot Secor具体结构如图:</P>

⌨️ 快捷键说明

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