歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

freebsd用grup引導雙系統


一,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
Copyright © Linux教程網 All Rights Reserved