grub.conf范例:
default=0
timout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hidden menu
title Fedora Core (2.6.35.14-96.fc14)
root (hd0,0)
kernel /vmlinuz ro root=/dev/hda2
initrd /initrd.img
titile windows xp
rootnoverify (hd1,0)
chainloader +1
1.grub-install /dev/sda
2.grub (enter)
>root (hdx,y) //此处要注意,即使是STAT硬盘,也要使用(hdx,y)
>find /grub/stage1
>find /vmlinuz
>setup.html' target='_blank'>setup (hdx) //将GRUB安装到磁盘MBR中,如果使用(hdx,y)则安装到超级块中。
>quit
以上全部假设 boot 为一个独立的分区。