What
What I'm trying to do is to run FreeBSD STABLE on a encrypted Geli partition, while having a different installed version on a clear partition. Is this possible without messing up either install?
How
I used to have a similar setup with windows 8 installed on the computer, with it's own boot loader and everything, and FreeBSD 9.0 installed on a single Geli encrypted partition with /boot/ on a usb stick. It worked seamlessly, with windows booting normally and not recognizing the FreeBSD partition, and when booting from the usb, FreeBSD booting and mounting the encrypted root partition.
I tried to replicate the setup when I got rid of windows, with a FreeBSD installation with a ZFS root along side the installation on the Geli encrypted partition, each with their separate boot loaders and /boot/ folders. The actual disk setup is:
I thought it should work the same way it worked before, but I ran into a couple of errors.
When I boot the clear install from the hdd it asks for ada0p4's password to mount the root partition, despite having set otherwise on the /boot/loader.conf file. I thought it was due to the -b flag on the command
Still, running the geli init command without the -b flag yielded the same result, even after destroying the partition and Geli metadata, which was odd. On the other hand wouldn't not having the -b flag break the encrypted root install?
Am I missing some feature of Geli or the boot loader?
Why
On the very possible question of why I'm doing this, it's because I currently have only one PC, a notebook with a single hard drive and like to have a clean system for work with sensitive data to avoid any leaks during normal use or unauthorized access if the PC ever gets stolen.
Currently, I'm accessing the information on a encrypted (non-bootable) storage from the system installed on the clear partitions, but I'm still worried some third party programs (word processors, browsers etc) as well as the OS will leak information or store sensitive data/metadata on the clear.
As to why I don't just run everything on a encrypted system, it's because the processor lacks the AES instruction set and the pc gets quite sluggish for normal use.
With these reasons in mind, am I going about this in the wrong way?
Should I be using jails and other security measures instead of running an entire autonomous installation?
Any help, advice, how-to, relevant section in the manuals will be greatly appreciated.
What I'm trying to do is to run FreeBSD STABLE on a encrypted Geli partition, while having a different installed version on a clear partition. Is this possible without messing up either install?
How
I used to have a similar setup with windows 8 installed on the computer, with it's own boot loader and everything, and FreeBSD 9.0 installed on a single Geli encrypted partition with /boot/ on a usb stick. It worked seamlessly, with windows booting normally and not recognizing the FreeBSD partition, and when booting from the usb, FreeBSD booting and mounting the encrypted root partition.
I tried to replicate the setup when I got rid of windows, with a FreeBSD installation with a ZFS root along side the installation on the Geli encrypted partition, each with their separate boot loaders and /boot/ folders. The actual disk setup is:
Code:
ada0p1: disk boot partition installed with
[CMD="#"]gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0[/CMD]
ada0p2: encrypted swap partition
ada0p3: freebsd-zfs partition with base system
ada0p4: Geli encrypted partition
ada0p4.elia: UFS root slice
ada0p4.elib: swap slice
ada0p4.eli[d-f]: UFS slices
I thought it should work the same way it worked before, but I ran into a couple of errors.
When I boot the clear install from the hdd it asks for ada0p4's password to mount the root partition, despite having set otherwise on the /boot/loader.conf file. I thought it was due to the -b flag on the command
# geli init -b -l 256 -s 4096 /dev/ada0p4
Still, running the geli init command without the -b flag yielded the same result, even after destroying the partition and Geli metadata, which was odd. On the other hand wouldn't not having the -b flag break the encrypted root install?
Am I missing some feature of Geli or the boot loader?
Why
On the very possible question of why I'm doing this, it's because I currently have only one PC, a notebook with a single hard drive and like to have a clean system for work with sensitive data to avoid any leaks during normal use or unauthorized access if the PC ever gets stolen.
Currently, I'm accessing the information on a encrypted (non-bootable) storage from the system installed on the clear partitions, but I'm still worried some third party programs (word processors, browsers etc) as well as the OS will leak information or store sensitive data/metadata on the clear.
As to why I don't just run everything on a encrypted system, it's because the processor lacks the AES instruction set and the pc gets quite sluggish for normal use.
With these reasons in mind, am I going about this in the wrong way?
Should I be using jails and other security measures instead of running an entire autonomous installation?
Any help, advice, how-to, relevant section in the manuals will be greatly appreciated.