Saturday, July 11, 2009

构建Grub多重引导系统

下载 GRUB for DOS
下载地址 http://download.gna.org/grub4dos/
参考教程 http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial


打开一个命令提示符
或在(开始-运行)中键入cmd
连续使用cd ..退到系统根目录
使用attrib更改boot.ini属性
attrib boot.ini -a -s -h -r

编辑boot.ini文件
修改 timeout=10
修改 default=C:/grldr
追加 C:/grldr="Go to Grub"
保存并退出

这样系统启动时就会去引导grub

释放menu.lst和grldr到c盘根目录下
这部很关键 很多中文配置上都没有写
编辑menu.lst文件 在末尾添加以下你所需要的代码





title Boot from ISO
map --mem (hd0,2)/acronis.iso (hd32)
map --hook
chainloader (hd32)
boot

#安装Ubuntu系统 Grub将指向并引导Linux核心
#下载并复制initrd.gz和vmlinuz两个文件到c盘根目录下
#下载路径: http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/hd-media/
#此处的(hd0,2)就是你Windows下的C盘
title Install-Ubuntu
kernel (hd0,2)/vmlinuz root=/dev/ram ramdisk_size=65536 devfs=mount,dall vga=771
initrd (hd0,2)/initrd.gz
boot

#启动Ubuntu系统 这里请注意 是(hd0,4)
#也就是你安装Ubuntu的分区(用Acronis DDS看)
#我开始不知道 填(hd0,0)一直无法启动
#sda5是在Linux下观察到的标号
#如果你希望开机直接进入linux
#请将此段放置在最前端
title ubuntu 8.04
kernel (hd0,4)/vmlinuz root=/dev/sda5
initrd (hd0,4)/initrd.img

10:02 Posted in Studies | Permalink | Comments (0) | Email this | Tags: grub

Post a comment