星期三, 八月 23, 2006

GRUB的基本用法

很N的一句话:启动你的电脑中所安装的任何操作系统

使用方法:
GRUB [ --config-file=FILE ]
这里的FILE,例如,可以是(hd0,0)/boot/grub/menu.lst
The FILE, for example, can be (hd0,0)/boot/grub/menu.lst
在CONFIG.SYS,命令行如下:
In CONFIG.SYS, the line looks like:

install=c:\some\where\grub.exe --config-file=FILE
如果没有提供选项,GRUB.EXE 简单地使用如下文件
If no options present, GRUB.EXE simply uses

(hd0,0)/boot/grub/menu.lst
作为配置文件,只要这个文件存在。
as the configure file, if it exists.
分区 (hd0,0)可以是Windows 分区或者是Linux分区
The partition (hd0,0) can be a Windows partition or a Linux
或者是GRUB所支持的其它任何的分区
partition, or any other partition type supported by GRUB.
更新:FILE 可以是菜单的内容。使用分号来分格开嵌入FILE的命令。
Update: FILE can be the contents of a menu. Use semi-colon
to delimitate the embedded commands here in FILE. The FIL
FILE可以放入一对双引号,例如:
can be enclosed with a pair of double-quotes. For example:

GRUB --config-file="root (hd0,0);chainloader +1"
这个命令将引导(hd0,0)分区中的系统
This command will boot the system in (hd0,0).
另一个例子
Another example:

GRUB --config-file="reboot"
这个命令将重新启动计算机。
This command will reboot the machine.
另一个例子:
One more example:

GRUB --config-file="halt"
这个命令将停止计算机。
This command will halt the machine.

没有评论: