启动grub。。。。
1让我们输入 root 分区。在提示中输入 root,但不要按 Enter 键:
grub> root (
现在,按一次 Tab 键。如果系统中有多个硬盘,GRUB 将显示可能完成的列表,从 "hd0" 开始。如果只有一个硬盘,GRUB 将插入 "hd0,"。如果有多个硬盘,继续进行,在 ("hd2") 中输入名称并在名称后紧跟着输入逗号,但不要按 Enter 键。部分完成的 root 命令看起来如下:
grub> root (hd0,
现在,继续操作,再按一次 Tab 键。GRUB 将显示特定硬盘上所有分区的列表,以及它们的文件系统类型。在我的系统中,按 Tab 键时得到以下列表:
grub> root (hd0, (tab)
Possible partitions are:
Partition num: 0, Filesystem type is ext2fs,partition type 0x83
Partition num: 1, Filesystem type unknown, partitiontype 0x82
Partition num: 2, Filesystem type unknown,partition type 0x7
Partition num: 4, Filesystem type is reiserfs,partition type 0x83
Partition num: 5, Filesystem type is reiserfs,partition type 0x83
如您所见,GRUB 的交互式硬盘和分区名称实现功能非常有条理。这些,只需要好好理解 GRUB 新奇的硬盘和分区命名语法,然后就可以继续操作了。
装入内核
2 要启动一个操作系统,首先指定引导哪个分区上的系统,例如要引导指第一个硬盘
上的第一个分区的操作系统,先键入
---------------------------------------windows------------------------------------------------------------------------
grub>root (hd0,0) --------------------------解释:root 设置grub 的根目录为(hd0,0)第一块盘的第一分区
grub>chainloader (hd0,0)+1 ----------------------恢复 windows, windows安装地址为 (hd0,0) ,链式装载
grub>boot 启动
------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------linux----------------------------------------------------------------------------
grub>kernel (hd0,0)/boot/vmlinuz-version(可以按tab) root=/dev/hda1
(hd0,0)/boot/vmlinuz-version(可以按tab) 为 内核所在位
root=/dev/hda1 为linux挂载/分区点
--------------------------------