Ovaj document pretpostavlja da je Windows XP instaliran na prvoj particiji (tj. /dev/ad0s1 govoreci freebsd jezikom) i da je FreeBSD na drugoj particiji (tj. /dev/ad1s1), barem su to podesavanja na mom laptopu :)
Prvo instalirajte port:
cd /usr/ports/sysutils/grub make install
Sada kreirajte “menu.lst” fajl:
vi /boot/grub/menu.lst --------snip------------- # Za podizanje FreeBSD title FreeBSD root (hd0,1,a) kernel /boot/loader # Za podizanje Windows XP title Windows XP root (hd0,0) makeactive chainloader +1 boot --------snip-------------
BELESKA: Ovo ce uciniti FreeBSD podrazumevanim OS-om
Omogucite pisanje u MBR:
sysctl kern.geom.debugflags=16
BELESKA: Ako ne koristite ovu komandu, onda necete moci da koristite grub-install script, izbacice vam gresku slicnu ovom:
--------snip------------- [zaphod] /boot/grub# grub-install hd0 GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub> root (hd0,1,a) Filesystem type is ufs2, partition type 0xa5 grub> setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/ufs2_stage1_5" exists... yes Running "embed /boot/grub/ufs2_stage1_5 (hd0)"... failed (this is not fatal) Running "embed /boot/grub/ufs2_stage1_5 (hd0,1,a)"... failed (this is not fatal) Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/ menu.lst "... failed Error 29: Disk write error grub> quit --------snip-------------
grub-install script
Koristeci grub-install script necete morati da instalirate razne komponente rucno koristeci grub interfejs u komandnoj liniji.
grub-install hd0
BELESKA: hd0 je izlistan u /boot/grub/device.map fajlu da bi mapirao tacan uredjaj (tj. /dev/ad0)
Vise informacija je dostupno ovde: http://www.gnu.org/software/grub/
Izvor: http://www.ubergeek.co.uk/howtos/grub-freebsd-windowsxp.html