OpenBSD Encrypted Install
So this is how you can have a fully encrypted OpenBSD installation.
Getting OpenBSD
Go to OpenBSD website and download the .img file for your hardware.
Creating install media
If you are on some linux or mac, you can use dd command to burn it to USB drive.
Suppose your USB drive is appearing as /dev/sdb in lsblk’s output:
|
|
Boot from install media
Plug the new install media and reboot the system. Once its starting, press the dedicated button to get the boot options screen. Select the USB drive and hit Enter.
Get command prompt
We are going to do an encrypted install so press S (shell) to get a command prompt.
Once you got a command prompt, type:
|
|
It will show you disks. First one might be your hard drive/SSD like sd0.
You can verify your drive by running:
|
|
Erase data on drive
Once you’re sure with target drive, erase data on drive. Its optional step though.
|
|
Partitioning
|
|
Encryption
|
|
Keep in mind /dev/sd1 exists:
|
|
Zero out first Megabyte
|
|
Back to installer
Type exit to get the installer screen back. Now just give it the newly encrypted device for installation.