I am a complete noob when it comes to FreeBSD. I have been using Debian for the better part of 3 years so I decided to make the switch on my media server because ZFS sounds like something I could use. The steps I am using are a compilation of many other peoples install guides. I chose not to use some of those for various reasons.
I want a fully encrypted disk (ada4) with / and swap on a 500g hard drive using UFS. I want /boot and the boot code to be on a flash drive which is da1.
The steps I am trying
1. Boot from the FreeBSD CD.
2. get to the part where it asks about partitioning.
3. select shell.
######################################################
I set up the encrypted drive.
4.
5.
6.
7. input passphrase
8.
9.
10.
11.
12.
13.
###############################################
Now here is the flash drive.
14.
15.
16.
17.
18.
##########################################################
18. exit
At this point the install begins, when install finishes I select to go to a shell before rebooting.
19.
20.
###########################################################
I now modify /da1sa/boot/loader.conf.
##################################################################
Finally I modify fstab.
###################################################################
When I attempt to boot from flash drive I get the message "Invalid partition Table"
Thank you in advance.
I want a fully encrypted disk (ada4) with / and swap on a 500g hard drive using UFS. I want /boot and the boot code to be on a flash drive which is da1.
The steps I am trying
1. Boot from the FreeBSD CD.
2. get to the part where it asks about partitioning.
3. select shell.
######################################################
I set up the encrypted drive.
4.
gpart destroy -F ada4
5.
gpart destroy -F da1
6.
geli init -s 4096 -b -l 256 /dev/ada4
7. input passphrase
8.
geli attach /dev/ada4
9.
gpart create -s gpt /dev/ada4.geli
10.
gpart add -s 460G -t freebsd-ufs /dev/ada4.eli
11.
gpart add -s 4G -t freebsd-swap /dev/ada4.eli
12.
newfs -E -U -m 0 -j /dev/ada4.elip1
13.
mount /dev/ada4 /mnt
###############################################
Now here is the flash drive.
14.
gpart create -s mbr /dev/da1
15.
gpart add -s 500M -t freebsd-boot /dev/da1
16.
newfs -E -U -m 0 -j /dev/da1s1
17.
mount /dev/da1s1 /boot
18.
gpart bootcode -b /boot/pmbr /dev/da1
##########################################################
18. exit
At this point the install begins, when install finishes I select to go to a shell before rebooting.
19.
mv boot /da1s1/boot
20.
ln -fs /da1s1/boot
###########################################################
I now modify /da1sa/boot/loader.conf.
Code:
vfs.root.mountfrom=”ufs:/dev/ada4.elip1”
aesni_load=”YES”
geom_eli_load=”YES”
Finally I modify fstab.
Code:
/dev/ada4.elip1 / ufs rw 0 0
/dev/da1s1 /boot ufs rw 1 1
When I attempt to boot from flash drive I get the message "Invalid partition Table"
Thank you in advance.