📄 623.html
字号:
---- 'disk=': 此 参 数 为 某 一 特 殊 的 硬 盘 定 义 非 标 准 参 数。 <br>
<br>
---- 'append=': 为 内 核 传 递 一 个 可 选 的 参 数 行, 其 典 型 的 应 用 <br>
是 为 不 能 完 全 由 系 统 自 动 识 别 的 硬 盘 指 定 参 数, 如 <br>
append="hd=64,32,202"。 <br>
<br>
---- 'label=': 此 参 数 为 每 个 映 像 指 定 一 个 名 字, 以 供 引 导 时 <br>
选 择。 <br>
<br>
---- 'install=': 安 装 一 个 指 定 文 件 作 为 新 的 引 导 扇 区, 缺 省 为 <br>
/boot/boot.b。 <br>
<br>
---- 'table=': 说 明 包 含 分 区 表 的 设 备 名, 如 果 此 参 数 忽 略, 引 <br>
导 加 载 程 序 将 不 能 传 递 分 区 信 息 到 已 引 导 的 操 作 系 统。 <br>
<br>
三、LILO 典 型 配 置 方 法 <br>
---- 通 常 情 况 下,Linux 的 安 装 程 序 自 身 就 可 以 完 成LILO 的 安 装 <br>
配 置, 从 而 较 好 地 解 决 多 重 系 统 的 引 导 问 题, 如 果 系 统 不 能 <br>
自 动 完 成 这 种 配 置, 那 么 可 以 通 过 手 工 修 改 配 置 文 件 <br>
/etc/lilo.conf 来 实 现 不 同 条 件 下 的 引 导。 <br>
---- 1 . 当 系 统 能 自 动 完 成 配 置 时 <br>
<br>
---- 对 于 这 种 情 况, 只 有 一 个 建 议: 将LILO 安 装 到Linux 分 区 的 <br>
根 上, 而 不 是MBR。 假 设 当 前hda1 中 装 有DOS/Windows,hda2 中 安 装 <br>
Linux, 则/etc/lilo.conf 的 内 容 大 致 如 下: <br>
<br>
boot=/dev/hda2 #指定引导位置 <br>
compact <br>
delay=5 #延时5秒 <br>
root=current #根在当前分区 <br>
image=/boot/vmlinux #指定Linux的内核文件 <br>
label=linux #用Linux为代表名称 <br>
other=/dev/hda1 #其他操作系统所在的分区 <br>
table=/dev/hda #指定包含分区表的硬盘 <br>
label=dos #用dos为代表名称 <br>
---- 2 . 当 系 统 无 法 自 动 完 成 配 置 时 <br>
<br>
---- 不 外 乎 两 种 情 况: 其 一 是BIOS 不 能 直 接 看 到Linux 的 根 分 区 <br>
; 其 二 是BIOS 只 能 读 写 标 准IDE 硬 盘 的 前504MB。 这 时, 必 须 遵 循 <br>
一 个 最 基 本 的 原 则: 建 立 一 个BIOS 能 存 取 的 较 小 的Linux 分 区, <br>
其 中 包 含 内 核 文 件、 映 射 文 件 以 及 链 加 载 程 序 等 必 要 的 内 <br>
容, 而 根 则 可 以 是 另 外 一 个 独 立 的 分 区。 至 于 配 置 上 的 其 他 <br>
细 节, 从 以 下 实 例 来 说 明。 <br>
<br>
---- 例1: 主 硬 盘 为IDE 接 口, 第 二 硬 盘 为SCSI 接 口, 根 文 件 在SCSI <br>
上。 <br>
<br>
---- 对 策: 在IDE 硬 盘 上 划 分 一 个 较 小 的Linux 分 区(/dev/hda2), 其 <br>
中 包 含 基 本 文 件, 挂 接 到/u2 下, 其 配 置 文 件/etc/lilo.conf 的 主 <br>
要 内 容 为: <br>
<br>
boot=/dev/hda #LILO装在主IDE的MBR <br>
install=/u2/etc/lilo/boot.b <br>
#从boot.b安装LILO引导记录 <br>
map=/u2/etc/lilo/map <br>
#安装程序建立此映射文件, <br>
告诉引导载入程序内核块的位置 <br>
compact <br>
timeout=50 <br>
image=/u2/vmlinux <br>
#内核文件应事先拷贝到/u2下 <br>
label=linux <br>
root=/dev/sda1 <br>
#告诉内核根系统在SCSI硬盘上 <br>
read-only <br>
other=/dev/hda1 <br>
loader=/u2/etc/lilo/chain.b #指明加载程序 <br>
label=dos <br>
<br>
---- 例2: 一 个 标 准 的IDE 大 硬 盘 需 安 装Linux 和DOS/Windows。 <br>
<br>
---- BIOS 的int 13 调 用 是 采 用3 个 位 元 组 的 CHS 编 码,10 位 为 柱 面 <br>
号,8 位 为 磁 头 号,6 位 为 扇 区 号。 可 能 的 柱 面 号 码 是0 ~1023, 可 <br>
能 的 磁 头 号 码 是0 ~255, 而 磁 道 上 可 能 的 扇 区 号 码 是1 ~63, 以 <br>
这24 位 最 多 可 以 定 址7.875GB。 但 不 幸 的 是, 标 准 的IDE 界 面 容 许 <br>
256 个 扇 区 / 磁 道、 65536 个 柱 面 以 及16 个 磁 头。 它 自 己 本 身 可 <br>
以 存 取128GB, 但 是 除 去BIOS 方 面63 个 扇 区 与1024 个 柱 面 后 只 剩 <br>
504MB 可 以 定 址。 <br>
<br>
---- 对 策: 在 硬 盘 的 前500MB 中 划 分350MB(/dev/hda1) 给DOS, <br>
150MB(/dev/hda2) 给Linux, 在 相 应 的 配 置 文 件 中 应 说 明 硬 盘 的 参 <br>
数: <br>
<br>
boot=/dev/hda <br>
... <br>
disk=/dev/hda <br>
bios=0x80 <br>
sectors=63 <br>
heads=16 <br>
cylinders=2100 <br>
image=/vmlinux <br>
append="hd=2100,16,23" <br>
root=/dev/hda2 <br>
label=linux <br>
<br>
四、 LILO 的 卸 装 <br>
---- 当LILO 覆 盖 了 引 导 扇 区 时, 它 会 保 留 一 个 引 导 扇 区 的 备 份 <br>
在/boot/boot.xxyy 中, 其 中xxyy 是 十 六 进 制 的 设 备 主 / 次 号 码 <br>
(major/minor numbers), 利 用 命 令"ls -l /dev/device" 就 可 获 得 硬 盘 或 <br>
分 区 的 主 / 次 号 码。 若 要 卸 装LILO, 只 需 恢 复 初 始 的 引 导 扇 <br>
区。 例 如:LILO 安 装 在/dev/had, 对 应 的 备 份 文 件 为 <br>
/boot/boot.0300, 使 用 下 面 的 命 令 即 可: <br>
---- dd if=/boot/boot.0300 of=/dev/_had bs=446 count=1 <br>
<br>
---- ( 作 者 地 址: 巨 化 集 团 公 司 计 算 中 心,324004; 收 稿 日 期:1999年6 月
</FONT><br>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT
class=middlefont></FONT><BR>
<FONT
class=normalfont>全文结束</FONT> </TD>
</TR>
<TR>
<TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2
height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
<TD vAlign=top width="20%"
background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2>
<DIV align=center>
<table class=tableoutline cellspacing=1 cellpadding=4
width="100%" align=center border=0>
<tr class=firstalt>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
<font class=normalfont><b>所有分类</b></font></td>
</tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td> </tr> </table></td></tr> </table>
</DIV></TD></TR>
<TR vAlign=top>
<TD width="80%">
<DIV align=center><BR>
</DIV>
</TD></TR></TBODY></TABLE></TD></TR>
</TABLE></TD></TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee
border=0><TBODY>
<TR>
<TD width="50%">
<P><FONT class=middlefont>版权所有 © 2004 <A
href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
违者必究. </FONT></P>
</TD>
<TD width="50%">
<DIV align=right><FONT class=middlefont>Powered by: <A
href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
</TD></TR></TBODY></TABLE>
<CENTER></CENTER></TD></TR>
</TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -