1.安装
有两种方法:
a.在联网的情况下,用新立德安装:
apt-get install grub
b.在没网的时候,特别是linux网卡驱动没有安装:
自己从http://packages.ubuntu.com/zh-cn/precise/amd64/grub/download上下载:grub_0.97-29ubuntu66_amd64.deb,随便选个版本就可以
sudo dpkg -i grub_0.97-29ubuntu66_amd64.deb
注意:在安装的时候要把grub-pc卸载,sudo dpkg -r grub-pc
2.引导redhat
见http://www.cnblogs.com/yanzhi123/archive/2012/12/02/2798176.html
3.在redhat中grub配置
vim /boot/grub/grub.conf
# grub.conf generated by anaconda
#
grub after making changes to this file
This means that
# eg.
(hd0,2)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title win7 #此处填写第二个系统的名称
rootnoverify (hd0,0)
chainloader +1
eg.
分区顺序(一块硬盘)如下:
/ hd0,0
swap hd0,1
系统预留 hd0,2
win主分区 hd0,3
。。