Hello! Could you help me to get ahead in solving the problem installation of FreeBSD12.2 with GELI encrypt?
My installation steps:
SSD (ada0) - system will install here
HDD (ada1) - data disk
boot block
create and format boot partition
swap
create partitions for encript
SSD
HDD
Geli init couple of parts
and attach
format
mount boot and enc.eli
I want to mount gpt/enc2.eli here (in autoboot). How can I do it?:
backups geli keys
complete installation
last step - configuration files
I can mount and install system at ssd disk only, but unfortunately I can't mount additional (HDD) disk to automount at system boot.
Could you help me?
My installation steps:
SSD (ada0) - system will install here
Code:
# gpart destroy -F ada0
# gpart create -s gpt ada0
Code:
# gpart destroy -F ada1
# gpart create -s gpt ada1
Code:
# gpart add -t freebsd-boot -s 64k –l gptboot ada0
# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
create and format boot partition
Code:
# gpart add -t freebsd-ufs -s 1g -l boot ada0
# newfs -U gpt/boot
swap
Code:
gpart add -t freebsd-swap -l swap –s 20g ada0
create partitions for encript
SSD
Code:
#gpart add -t freebsd-ufs -l enc ada0
Code:
# gpart add -t freebsd-ufs -l enc2 ada1
Geli init couple of parts
Code:
# geli init -l 256 -e aes-xts -b gpt/enc gpt/enc2
and attach
Code:
# geli attach gpt/enc
# geli attach gpt/enc2
format
Code:
#newfs -U gpt/enc.eli
#newfs -U gpt/enc2.eli
mount boot and enc.eli
Code:
# mount /dev/gpt/enc.eli /mnt
# mkdir /mnt/boot2
# mount /dev/gpt/boot /mnt/boot2
# mkdir /mnt/boot2/boot
# cd /mnt
# ln -s boot2/boot boot
I want to mount gpt/enc2.eli here (in autoboot). How can I do it?:
Code:
# mkdir /mnt/HDD
# mount /dev/gpt/enc2.eli /mnt/HDD
backups geli keys
Code:
# mkdir gelibackups
# cp /var/backups/* gelibackups
complete installation
Code:
# exit
last step - configuration files
# vi /boot/loader.conf
Code:
geom_eli_load="YES"
vfs.root.mountfrom="ufs:/dev/da0p4.eli"
# vi /etc/fstab
Code:
/dev/gpt/enc.eli / ufs rw,noatime 1 1
/dev/gpt/boot /boot2 ufs rw,noatime 1 1
/dev/gpt/swap.eli none swap sw 0 0
# vi /etc/rc.conf
Code:
geli_swap_flags="-e blowfish -l 128 -s 4096 -d"
# exit
Could you help me?