Install FreeBSD 10 on gmirror/gstripe/simple UFS partitions (GPT or MBR)

Finish installation

by ross at 08:24:08 on January 29, 2012

On the last installation screen choose shell again when asked.

Create system init configs

If you use gmirror:
# echo 'geom_mirror_load="YES"' >> /boot/loader.conf

if you use gstripe:
# echo 'geom_stripe_load="YES"' >> /boot/loader.conf

Create fstab file

/etc/fstab (MBR)

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/root        /               ufs     rw              1       1
/dev/label/swap0        none            swap    sw              0       0
/dev/label/swap1        none            swap    sw              0       0
/dev/mirror/var         /var            ufs     rw              2       2
/dev/mirror/usr         /usr            ufs     rw              2       3
/dev/stripe/ports       /usr/ports      ufs     rw              2       4
/dev/mirror/home        /usr/home       ufs     rw              2       5
/dev/ufs/share          /share          ufs     rw              2       6
/dev/cd0                /media/cdrom    cd9660  ro,noauto       0       0
/dev/da0s1              /media/flash    msdosfs rw,sync,noauto,longnames,-Lru_RU.UTF-8 0 0

/etc/fstab (GPT)

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/root        /               ufs     rw              1       1
/dev/gpt/swap0          none            swap    sw              0       0
/dev/gpt/swap1          none            swap    sw              0       0
/dev/mirror/var         /var            ufs     rw              2       2
/dev/mirror/usr         /usr            ufs     rw              2       3
/dev/stripe/ports       /usr/ports      ufs     rw              2       4
/dev/mirror/home        /usr/home       ufs     rw              2       5
/dev/ufs/share          /share          ufs     rw              2       6
/dev/cd0                /media/cdrom    cd9660  ro,noauto       0       0
/dev/da0s1              /media/flash    msdosfs rw,sync,noauto,longnames,-Lru_RU.UTF-8 0 0

Create mount points:

# cd /media
# mkdir cdrom flash

Add existing UFS partitions

Create mountpoints and fstab entries for other UFS filesystems you have.

You can use /dev/ufs/label as the device. If your UFS2 filesystem does not have a label than it's time to create one:

# tunefs -L video /dev/ada3s1d
# mkdir /video
/dev/ufs/video          /video          ufs     rw              2       2

Reboot into your new system

Type exit and reboot. Set BIOS to boot from one of the mirrored drives.

Now you can start configuring your new system.

Comments
thank you for your manual
-- anonymous
Thursday, January 19, 2012, 13:01:34
Great turtorial.
-- BSDNews
Sunday, January 26, 2014, 6:00:20
After a so long time, this post continues to help... thank u so much!
-- CMS
Thursday, May 18, 2017, 2:44:15