📄 552.html
字号:
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=98
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=79
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=103
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=26
border=0></TD>
<TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1
border=0></TD></TR>
<TR>
<TD colSpan=3><A title=linux知识宝库
href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83
src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0
name=header_r1_c1></A></TD>
<TD colSpan=3>
<form action="http://www.linuxhero.com/docs/search.html" method=get>
<table
style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid"
cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
<tbody>
<tr>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif">
<div align=center><font class=normalfont>搜索文章:
<input type=hidden value=result name=action2>
<input type=radio checked value=title name=type>标题
<input type=radio value=content name=type>内容
<input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
</font></div>
</td>
</tr>
<tr>
<td noWrap>
<div align="center">
<input maxlength=100 size=30 name=keyword2>
</div>
</td>
</tr></tbody>
</table>
</form>
</TD>
<TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
<TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
<TR>
<TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22
src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0
name=header_r2_c1></TD>
<TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
<DIV align=right><FONT class=normalfont>当前位置:
<A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
<font color="#FF6699">>></font>
<A href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</A> | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
</TD>
<TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1
border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff
border=0>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TR>
<TD vAlign=top align=middle width="60%">
<TABLE cellSpacing=0 cellPadding=0 width="100%"
background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
<TBODY>
<TR>
<TD vAlign=top width="80%">
<DIV align=center>
<FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
</FORM>
<TABLE cellSpacing=0 cellPadding=0 width="95%"
border=0><TBODY>
<TR>
<TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif"
height=30></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=3 width="95%"
align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD vAlign=top>
<p><FONT class=normalfont><B><font color=blue>dos下用grub.exe修复启动故障</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>GRUB.EXE 完全就是 GRUB,只不过重新包装,使得它能够在 DOS 下运行。所以,GRUB.EXE 具有你先前所熟悉的 GRUB 的所有优良特性。目前,grub_for_dos 的最新版(V0.0.7)可以从这里得到:<br>
ftp://ftp.cosoft.org.cn/incoming/grub_for_dos-0.0.7.tar.gz<br>
或者进入目录查看: ftp://ftp.cosoft.org.cn/incoming/<br>
<br>
解压后,把 grub.exe 文件拷贝到 DOS 的硬盘分区或者 DOS 软盘即可。用法:<br>
<br>
grub --config-file=(hd0,0)/boot/grub/menu.lst<br>
<br>
<br>
或者不带参数:<br>
<br>
grub<br>
<br>
默认的配置文件是 (hd0,0)/boot/grub/menu.lst<br>
<br>
如果 Linux 安装之后不能启动,可能的原因是 Lilo 的故障。这时候,用一张 grub 引导软盘启动,可保证启动成功。如果你没有 grub 启动软盘,那么用一张 DOS 启动软盘,再加上一个 grub.exe 文件,同样可以很简单地获得 grub 强大的多重启动功能。<br>
<br>
顺便说,用“DOS启动盘+GRUB.EXE”的方法所制作的软盘,能够用来启动 DOS 和其它操作系统,是真正的“万能引导软盘”。这张软盘在硬盘不能引导 DOS/Windows 的时候还可以引导 DOS,而用其他方法制作的 GRUB 软盘,不能再重复用作 DOS 启动盘。这里所说的“DOS启动盘”可以是 MS-DOS 的,也可以是 FreeDOS 的(顺便说,FreeDOS build 2029 已经支持 Win98 的 FAT32 大分区格式了)。<br>
<br>
另外一种情形:当你重新安装 Windows 的时候,Windows 会重写 MBR,从而把 LILO 或 GRUB 的启动代码抹掉。用 GRUB.EXE, 你不需软盘就可以启动其他操作系统(假定你的Windows是9x,或者硬盘上安装有DOS)。<br>
<br>
用 loadlin.exe 也能启动 Linux,但是 loadlin 需要一个内核文件(vmlinuz),这个内核文件必须处在 DOS/Windows 的分区,有时候这个内核文件不适合作为你新近安装的 Linux 系统的内核。GRUB.EXE 就没有这样的限制,它可以给你很大的自由,它从 DOS 下启动,而能够从 Linux 分区找到任何文件(包括内核文件),你很容易知道这个内核跟你将要引导的系统是匹配的,从而引导 Linux 系统。<br>
<br>
请在搜索引擎( http://www.google.com/ )中搜索有关 GRUB 的详细资料。这里只是举一个很常用的简单例子,命令行操作:<br>
<br>
grub> find /boot/vmlinuz<br>
(hd0,7)<br>
<br>
grub> root (hd0,7)<br>
grub> kernel /boot/vmlinuz root=/dev/hda8<br>
grub> boot<br>
<br>
简单的几个 grub 命令,就可以启动 Linux 了,很方便吧?顺便说,grub 的 find 命令很好,grub 甚至还有一个 cat 命令可以显示一个文件的内容。在 grub 的提示符下敲入 help 命令,可以获得在线帮助。<br>
<br>
当然 GRUB 也支持菜单操作。GRUB.EXE 默认的菜单配置文件是 (hd0,0)/boot/grub/menu.lst ,正如前面所说,这个配置文件的位置可以由 DOS 命令行参数来重新指定。这个文件所处的分区(默认是(hd0,0))的类型可以是 DOS/Windows 的 FAT12,FAT16,FAT32,也可以是 Linux 的 ext2 等类型,还可以是 GRUB 所支持的其他分区类型。顺便说,GRUB 的新版本将要支持 iso9660 光盘格式、NTFS 文件系统,以及用软盘映象 img 文件来引导机器(特别适合于没有软盘又想用软盘来启动机器的用户)。<br>
提醒一下,google 很强大: 在 http://www.google.com/ 的搜索框中敲入 grub.exe 可以快速找到本文的网页。<br>
附: RedHat 和 Mandrake 的硬盘安装方法<br>
<br>
假定你的 (hd0,0) [也就是 /dev/hda1 分区] 是 DOS 分区,你的那些 ISO 文件都已经处在这个分区之中。你已经在这个 DOS 分区的根目录下创建了一个 boot 子目录, 在 boot 目录下创建了一个 grub 子目录,并在 grub 目录中添加一个名字叫做 menu.lst 的文件,内容如下:<br>
<br>
<br>
<br>
default=0<br>
<br>
<br>
timeout=30<br>
<br>
<br>
title Red Hat 9 hard disk install<br>
<br>
<br>
root (hd0,0)<br>
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -