分类: BSD
2007-12-29 21:00:05
修改/etc/grub.conf以使它可以引导FreeBSD,
加入下面的内容到/etc/grub.conf中:
title FreeBSD
rootnoverify (hdx,y)
chainloader +1
上面的意思是定位到hdx硬盘,y分区,然后启用该分区的引导程序,由该引导程序来引导FreeBSD。
title FreeBSD 8.1
root (hdx,y,z)
kernel /boot/loader
boot
其中,x为你的FreeBSD的分区,y为FreeBSD/所在的SLICE.
例子:
title FreeBSD 8.1
root (hd0,3,a)
kernel /boot/loader
boot /boot/kernel/kernel
makeactive
savedefault
title FreeBSD 8.1
root (hd0,3,a)
kernel /boot/loader
boot
makeactive
savedefault
title FreeBSD
rootnoverify (hd0,3)
chainloader +1
makeactive
savedefault