手机
当前位置:查字典教程网 >电脑基础 >电脑操作入门(Ubuntu) >运行 grub4dos 启动管理器
运行 grub4dos 启动管理器
摘要:

下一课gurb4dos 是一个多系统启动引导管理器,使用它可以引导多种操作系统,下面我们来看一个练习;

1、grub4dos 简介

1)grub4dos 是一个软件包,包括 grub.exe、grldr、bootloace.com、grldr.mbr、menu.lst 等重要文件;

2)grub.exe、grldr 和 grldr.mbr 都是启动管理器,bootlace.com 是MBR写入工具;

3)下载 grub4dos 软件包:http://download.gna.org/grub4dos/

http://code.google.com/p/grub4dos-chenall/downloads/list

2、纯 Dos/windows9x 系统中运行

1、在命令提示符 C:>_ 或者 A:>_ ,输入 grub.exe,然后按回车键,就可以进入grub4dos引导管理器;

2、在自动批处理 Atuoexec.bat 中,加入一行 grub.exe

3、在配置文件 Config.sys 中,加入一行 device=grub.exe

4、复制 menu.lst 文件

注意,提前要把 grub.exe 复制到磁盘的根目录下面,比如 复制到 C: 下面;

3、在 Windows 2000/XP/2003 中加载

1)复制 grldr 到 C: 盘的根目录下面,就是复制到 C: 盘里;

2)然后修改C:盘下面的 boot.ini文件,在里面加入一行 C:grldr=grub4dos

2)复制 menu.lst 文件到 C: 盘的根目录下面;

4、在 Windows Vista 中加载

1)复制 grldr.mbr 和 grldr 到 C: 盘根目录下面;

2)用 bcdedit添加一个菜单项到 vista 的启动菜单中;

3)复制 menu.lst 文件到 C: 盘的根目录下面;

5、在 Linux /Ubutnu 中加载

1)使用命令 # kexec -l grub.exe 和 # kexec -e

2)使用 syslinux,在 syslinux.cfg 中,加上 kernel grub.exe

3)在GNU Grub 中,运行 linux /grub.exe 旧版的是 kernel (DEVICE)/PATH/grub.exe 也可以添加到 menu.lst中,

例如 linux (hd0,5)/g4d/grub.exe

4)在 lilo 里,修改 lilo.conf ,添加 image=/boot/grub.exe

6、安装到 MBR

1)MBR 是主引导记录,它负责搜索操作系统所在的磁盘分区;

2)在 DOS/Windows9x下,运行 bootlace 0x80

3)在 Windows2000/XP下,运行 grubinst (hd0)

4)在 Linux 下运行 bootlace.com /dev/hda

安装到 MBR 中,还需要在分区根目录下复制 grldr 和 menu.lst

7、一个 menu.lst 范例

default 0

timeout 3

title Windows NT/2K/XP

find --set-root /ntldr

chainloader /ntldr

title Ubuntu 8.04.1, kernel 2.6.24-19-generic

root (hd0,5)

kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=e815c574-

4eec-43f0-9e05-579d82f2b5fa ro quiet splash

initrd /boot/initrd.img-2.6.24-19-generic

quiet

title qi dong ISO

find --set-root /deepinxp6.iso

map /deepinxp6.iso (hd32)

map --hook

chainloader (hd32)

title Windows 95/98/NT/2000

root (hd0,0)

makeactive

chainloader +1

title grub4dos

find --set-root /grub.exe

linux /grub.exe

也可以参考 grub4dos 软件包中的 menu.lst 范例;

本节学习了运行和安装 grub4dos 的基本操作,如果你成功地完成了练习,请继续学习下一课内容;

上一篇: 使用计算器
精品推荐
分类导航