Sysadmin > FreeBSD > ReplaceLinuxWithFreeBSD

Replace Linux with FreeBSD on a root-Server

edit /boot/grub/grub.cfg

...
menuentry "mfsbsd-se-11.2-RELEASE-amd64.iso" --class freebsd --class bsd --class os {
# insmod ufs2
# insmod bsd
#insmod loopback
#insmod iso9660
# Path to the iso
        set isofile=/mfsbsd-se-11.2-RELEASE-amd64.iso
# (hd0,1) here may need to be adjusted of course depending where the partition is
        loopback loop (hd0,1)$isofile
        kfreebsd (loop)/boot/kernel/kernel.gz -v
#       kfreebsd_loadenv (loop)/boot/device.hints
#       kfreebsd_module (loop)/boot/kernel/geom_uzip.ko
        kfreebsd_module (loop)/boot/kernel/ahci.ko
        kfreebsd_module (loop)/mfsroot.gz type=mfs_root
        set kFreeBSD.vfs.root.mountfrom="ufs:/dev/md0"
        set kFreeBSD.mfsbsd.autodhcp="YES"
# Define a new root password
#       set kFreeBSD.mfsbsd.rootpw="foobar"
# Alternatively define hashed root password
#       set kFreeBSD.mfsbsd.rootpwhash=""
}
menuentry "FreeBSD 11.2" {
 set isofile="/boot/mfsbsd-se-11.2-RELEASE-amd64.iso"
 loopback loop $isofile
 kfreebsd (loop)/boot/kernel/kernel
 kfreebsd_module (loop)/boot/mfsroot.gz type=mfs_root
 set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0
}
...

set kFreeBSD.console=comconsole
set kFreeBSD.comconsole_speed=57600