Preparing Fedora 26 laptop with ZFS and encryption — encryption (part 3)
In this part of the series we will encrypt the two out of four partitions we created in the previous episode. For encryption we will use cryptsetup
.
We want to encrypt partitions for our binaries /dev/sda3
and for our home /dev/sda4
. You can see the encrypted parts in yellow here:
Let’s encrypt both partitions, you can use same password for both of them.
cryptsetup luksFormat /dev/sda3
cryptsetup luksFormat /dev/sda4
Check if both partitions were encrypted:
cryptsetup -v isLuks /dev/sda3
cryptsetup -v isLuks /dev/sda4
That’s all for this episode. We will setup automatic decryption of both partition after we install fedora in part 4. It’s easier that way, as we need to persist crypt key somewhere.
This post is part of the series, for more check out:
- Part 1 — introduction https://medium.com/@AndrzejRehmann/preparing-fedora-laptop-with-zfs-and-encryption-part-1-f5788dda79ab
- Part 2 — partitions https://medium.com/@AndrzejRehmann/preparing-fedora-26-laptop-with-zfs-and-encryption-part-2-partitions-7b481f381c41
- Part 3 — encryption https://medium.com/@AndrzejRehmann/preparing-fedora-26-laptop-with-zfs-and-encryption-encryption-part-3-1c32f4c9c013
- Part 4 — fedora https://medium.com/@AndrzejRehmann/preparing-fedora-26-laptop-with-zfs-and-encryption-fedora-part-4-1fceb9c8428a
- Part 5 — encryption2 https://medium.com/@AndrzejRehmann/preparing-fedora-26-laptop-with-zfs-and-encryption-encryption2-part-5-fd98d688fc40
- Part 6 — zfs https://medium.com/@AndrzejRehmann/preparing-fedora-26-laptop-with-zfs-and-encryption-zfs-part-5-1e17820b40a4
Special thanks to Marcin Skarbek for setting up my laptop and explaining all of this stuff to me with excruciating details.