一,grub的安裝
cd /usr/ports/sysutils/grub
make install clean
mkdir /boot/grub
cp /usr/local/share/grub/i386-freebsd/* /boot/grub
cp /usr/local/sbin/grub /boot/grub
二,安裝到mbr
find /boot/grub/stage1
root (hd1,0,a)
setup (hd1)
OK,GRUB成功安裝
三,編輯menu.lst
default=0
timeout=30
title windows xp
root (hd0,0)
makeactive
chainloader +1
title FreeBSD 6.2
root (hd0,1,a)
kernel /boot/loader
如果是雙硬盤,根據需求改成相應的hd,如:
freebsd:
root (hd1,0,a)
kernel /boot/loader
win:
rootnoverify (hd0,0)
chainloader +1