Quote:
Originally Posted by bigbooty
So after creating the partitions needed: /dev/sda1 and /dev/sda2.
This is all under fdisk /dev/sda. Im trying to encrypt /dev/sda2 with cryptsetup but after executing "cryptsetup luksOpen /dev/sda2 acerluks i get the response "/dev/sda2 is not a valid LUKS device."
|
Hi,
first of all, it is recommended to fill the device with random data before you encrypt it
Code:
dd if=/dev/urandom of=/dev/sda2 bs=1M
Then you need something like,
Code:
cryptsetup luksFormat /dev/sda2 --cipher aes-cbc-essiv:sha256 --key-size 256 --verify-passphrase# THIS WILL ERASE ALL DATA ON /dev/sda2
Afterwards you can open the device with your command and then mount it. The manpage has more useful info on that matter:
It is also recommended to encrypt the swap partition. There are plenty of tutorials on how to do that.
Just google for 'cryptsetup swap tutorial'.