📄 node36.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><HTML><HEAD><TITLE>The MBR, boot sectors and partition table</TITLE><META NAME="description" CONTENT="The MBR, boot sectors and partition table"><META NAME="keywords" CONTENT="sag"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><LINK REL=STYLESHEET HREF="sag.css"></HEAD><BODY LANG="EN" > <A NAME="tex2html749" HREF="node37.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html747" HREF="node35.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html741" HREF="node35.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html751" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html752" HREF="node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR><B> Next:</B> <A NAME="tex2html750" HREF="node37.html">Extended and logical partitions</A><B>Up:</B> <A NAME="tex2html748" HREF="node35.html">Partitions</A><B> Previous:</B> <A NAME="tex2html742" HREF="node35.html">Partitions</A><BR> <P><H2><A NAME="SECTION00571000000000000000">MBR(主引导记录), 启动扇区和分区表</A></H2><P>一个硬盘如何分区的信息存在它的第一个扇区(即第一面第一道第一扇区)。这个第一扇区是硬盘的<b>主引导记录</b>(MBR);这是计算机启动时BIOS读入和启动的扇区。主引导记录包括一段小程序,读入分区表,检查哪个分区是活动分区(即启动分区),并读入活动分区的第一个扇区:该分区的<b>启动扇区</b>(MBR也是启动扇区,只不过因为其特殊地位,所以使用特殊的名字)。这个启动扇区包括另一个小程序,读入这个分区(假设是可启动的)上操作系统的第一个部分,然后启动它。<P>这个分区方案不是内置于硬件和BIOS的,只是许多操作系统遵循的约定。并非所有的操作系统都遵循这个约定,也有例外。有些操作系统支持分区,但他们占领硬盘上的一个分区,然后使用他们自己的内部分区方法管理这个分区。较新的操作系统可以和其他操作系统和平共处(包括Linux),而无需特殊的措施,但不支持分区的操作系统无法在同一硬盘上与其他操作系统共存。<P>为安全预防,最好先在纸上写下分区表,这样在错误发生时不会丢失你的文件。(可以使用<tt>fdisk</tt>修复坏的分区表)。<A NAME="1522"> </A>)相关信息可用<tt>fdisk -l</tt><A NAME="1524"> </A>命令给出: <BLOCKQUOTE> <TT><code>$</code> <i>fdisk -l /dev/hda</i> <BR> <code></code> <BR> <code>Disk /dev/hda: 15 heads, 57 sectors, 790 cylinders</code> <BR> <code>Units = cylinders of 855 * 512 bytes</code> <BR> <code></code> <BR> <code> Device Boot Begin Start End Blocks Id System</code> <BR> <code>/dev/hda1 1 1 24 10231+ 82 Linux swap</code> <BR> <code>/dev/hda2 25 25 48 10260 83 Linux native</code> <BR> <code>/dev/hda3 49 49 408 153900 83 Linux native</code> <BR> <code>/dev/hda4 409 409 790 163305 5 Extended</code> <BR> <code>/dev/hda5 409 409 744 143611+ 83 Linux native</code> <BR> <code>/dev/hda6 745 745 790 19636+ 83 Linux native</code> <BR> <code>$</code> </TT></BLOCKQUOTE><HR><A NAME="tex2html749" HREF="node37.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html747" HREF="node35.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html741" HREF="node35.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html751" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html752" HREF="node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR><B> Next:</B> <A NAME="tex2html750" HREF="node37.html">Extended and logical partitions</A><B>Up:</B> <A NAME="tex2html748" HREF="node35.html">Partitions</A><B> Previous:</B> <A NAME="tex2html742" HREF="node35.html">Partitions</A><P><ADDRESS><I>Lars Wirzenius <BR>Sun Jun 29 13:31:22 EEST 1997</I></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -