How to install grub2, which may be useful to run multiple systems described below. Of course, previously tested by me like everyone my faq.
THE WORKS
All I do the following as root.
Install grub 2 first. I do it with packages
Prepares the directory structure
For grub.cfg adds the following entry
This is for disk 1, and freebsd FreeBSD installed on the first slice.
This is for disk 1, and freebsd installed on the third slice.
And just for themselves similarly change the parameters ...
Now copies the files to the right place to /boot/grub
Before you install grub in the MBR disk must be allowed to overwrite the MBRfreebsd FreeBSD
If we do not,freebsd FreeBSD will not be able to install grub in the MBR.
And that's it. It remains to install grub
If a message pops up like this, everything is ok
After installation, it looks like this
Now you can add other systems. windows, linux and bsd other configuration file.
THE WORKS
All I do the following as root.
Install grub 2 first. I do it with packages
Code:
pkg_add-r grub2
Prepares the directory structure
Code:
cd /boot
mkdir grub
cd grub
touch grub.cfg
For grub.cfg adds the following entry
Code:
set timeout = 3
set default = "0"
menuentry "FreeBSD 8 Server" {
insmod ufs2
set root = (hd0, 1)
chainloader 1
}
Code:
set root = (hd0, 1)
Code:
set root = (hd0, 3)
And just for themselves similarly change the parameters ...
Now copies the files to the right place to /boot/grub
Code:
cp-Rf /usr/local/lib/grub/i386-pc /boot/grub
Before you install grub in the MBR disk must be allowed to overwrite the MBR
If we do not,
Code:
sysctl kern.geom.debugflags = 16
Code:
grub-install /dev/ad0
If a message pops up like this, everything is ok
Code:
freebsdserver # grub-install /dev/ad0
Installation finished. No error reported.
freebsdserver #
After installation, it looks like this
Now you can add other systems. windows, linux and bsd other configuration file.