# create device for partitioning gpart create -s gpt /dev/ada0 # create bootloader and boot partition gpart add -t freebsd-boot -a 4k -s 512k /dev/ada0 gpart add -t freebsd-ufs -a 1m -s 1g -l boot1 /dev/ada0 # show partitions to verify gpart show -l ada0 # add home and root partition on first disk gpart add -t freebsd-ufs -a 1m -s 7g -l root1 /dev/ada0 gpart add -t freebsd-ufs -a 1m -s 1g -l home1 /dev/ada0 # add swap partition on first disk gpart add -t freebsd-swap -a 1m -l swap1 /dev/ada0 # show partition layout gpart show -l ada0 # mirror partition layout to second disk gpart backup ada0 | gpart restore ada1 # show partition layout of both disks gpart show -l ada0 ada1 # change labels on second disk gpart modify -i 2 -l boot2 ada1 gpart modify -i 3 -l root2 ada1 gpart modify -i 4 -l home2 ada1 gpart modify -i 5 -l swap2 ada1 # verify proper partition layout gpart show -l ada0 ada1 # write bootloader gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 # create striped partitions gstripe label root /dev/gpt/root1 /dev/gpt/root2 gstripe label home /dev/gpt/home1 /dev/gpt/home2 ls /dev/stripe # create encrypted partitions (-b asks for password during boot) geli init -b /dev/stripe/root geli init -b /dev/stripe/home geli attach /dev/stripe/root geli attach /dev/stripe/home ls /dev/stripe # create file systems newfs -U -j -L boot /dev/gpt/boot1 newfs -U -j -L root /dev/stripe/root.eli newfs -U -j -L home /dev/stripe/home.eli # use swap partitions swapon /dev/gpt/swap1 /dev/gpt/swap2 # mount partitions mount /dev/stripe/root.eli /mnt mkdir -p /mnt/usr/home mount /dev/stripe/home.eli /mnt/usr/home mkdir /mnt/boot.real mount /dev/gpt/boot1 /mnt/boot.real mkdir /mnt/boot.real/boot mkdir /mnt/boot mount -t nullfs /mnt/boot.real/boot /mnt/boot # create fstab vi /tmp/bsdinstall_etc/fstab /dev/stripe/root.eli / ufs rw,noatime 1 1 /dev/stripe/home.eli /usr/home ufs rw,noatime 2 2 /dev/gpt/boot1 /boot.real ufs rw,noatime 3 3 /boot.real/boot /boot nullfs rw 0 0 tmpfs /tmp tmpfs rw 0 0 /dev/gpt/swap1 none swap sw 0 0 /dev/gpt/swap2 none swap sw 0 0 CTRL-D # boot loader config vi /boot/loader.conf geom_stripe_load="YES" geom_eli_load="YES" vfs.root.mountfrom="ufs:stripe/root.eli" aesni_load="YES" tmpfs_load="YES" nullfs_load="YES" --- man pkg man ports man tuning freebsd-update fetch install portsnap fetch extract /boot/defaults/loader.conf /etc/defaults/rc.conf FreeBSD online man pages/apropos --> http://www.freebsd.org/cgi/man.cgi OpenBSD online man pages/apropos --> http://www.openbsd.org/cgi-bin/man.cgi