📄 node67.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>An overview of boots and shutdowns</title>
<meta NAME="description" CONTENT="An overview of boots and shutdowns">
<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="tex2html1138" HREF="node68.html"><img WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" ALT="next" SRC="./next_motif.gif"></a> <a NAME="tex2html1136" HREF="node66.html"><img WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" ALT="up" SRC="./up_motif.gif"></a> <a NAME="tex2html1130" HREF="node66.html"><img WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" ALT="previous" SRC="./previous_motif.gif"></a> <a NAME="tex2html1140" HREF="node1.html"><img WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" ALT="contents" SRC="./contents_motif.gif"></a> <a NAME="tex2html1141" HREF="node108.html"><img WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" ALT="index" SRC="./index_motif.gif"></a> <br>
<b> Next:</b> <a NAME="tex2html1139" HREF="node68.html">The boot process in </a>
<b>Up:</b> <a NAME="tex2html1137" HREF="node66.html">Boots And Shutdowns</a>
<b> Previous:</b> <a NAME="tex2html1131" HREF="node66.html">Boots And Shutdowns</a>
<br> <p>
<h1><a NAME="SECTION00710000000000000000">引导和关机概述</a></h1>
<p>
开启计算机并导致其操作系统被加载的过程
<a NAME="tex2html28" HREF="footnode.html#1960"><img ALIGN="BOTTOM" ALT="gif" SRC="./foot_motif.gif" WIDTH="15" HEIGHT="15"></a>叫<b>引导</b>. The name
comes from an image of the computer pulling itself up from its
bootstraps, but the act itself slightly more realistic.
<a NAME="1962"> </a>
<a NAME="1963"> </a>
<p>
启动过程中,计算机首先加载了一小段叫
<b>bootstrap loader</b>的程序,它依次加载和启动操作系统, bootstrap loader通常存储在
硬盘或软盘的固定的位置. 这2步过程的理由是操作系统大而复杂,而计算机加载的第一段代码
很小(几百字节),以免使固件不必要地复杂化.
<a NAME="1965"> </a>
<p>
不同的计算机的bootstrap不同. 对于PC, 计算机(它的BIOS)读软盘或硬盘的第一个扇区(叫<b>
引导扇</b>). bootstrap loader包含在这个扇区中. 它加载位于磁盘(和其他)的其他地方的
操作系统.
<a NAME="1967"> </a>
<p>
Linux加载后, 它创始化硬件和设备驱动, 然后运行
<tt>init</tt><a NAME="2112"> </a>. <tt>init</tt><a NAME="2114"> </a>
启动其他进程以允许用户登录和做其他事情. 这部分的细节在下面讨论.
<p>
为了关闭一个Linux系统, 首先所有进程被告知结束(这使他们关闭所有文件, 完成必要的其他事情,
使之整齐地结束), 然后unmount文件系统和对换区, 最后打印可以关掉电源的信息到控制台.
如果没有遵循正确的过程, 可怕的事情可能发生. 最重要的, 文件系统缓冲cache可能没有回写,
这意味着其中的所有数据将丢失, 磁盘上的文件系统不完整, 并可能不可用.
<a NAME="1970"> </a>
<a NAME="1971"> </a>
<p>
<hr><a NAME="tex2html1138" HREF="node68.html"><img WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" ALT="next" SRC="./next_motif.gif"></a> <a NAME="tex2html1136" HREF="node66.html"><img WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" ALT="up" SRC="./up_motif.gif"></a> <a NAME="tex2html1130" HREF="node66.html"><img WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" ALT="previous" SRC="./previous_motif.gif"></a> <a NAME="tex2html1140" HREF="node1.html"><img WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" ALT="contents" SRC="./contents_motif.gif"></a> <a NAME="tex2html1141" HREF="node108.html"><img WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" ALT="index" SRC="./index_motif.gif"></a> <br>
<b> Next:</b> <a NAME="tex2html1139" HREF="node68.html">The boot process in </a>
<b>Up:</b> <a NAME="tex2html1137" HREF="node66.html">Boots And Shutdowns</a>
<b> Previous:</b> <a NAME="tex2html1131" HREF="node66.html">Boots And Shutdowns</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 + -