You are not logged in.

#1 2010-08-21 18:29:33

vinhsynd
Member
Registered: 2010-08-05
Posts: 56

Encrypting Swap with Suspend

I was following the Arch Wiki for using Luks to encrypt disk partitions with a passphrase.

I've rebooted into my system and want to encrypt the swap file so that I may suspend/resume.

I have swap on /dev/sda2

after turning swap off the guide instructs me to create a luks partition the same way I created a luks partitions in the guide above.

When I use "cryptsetup -c aes-xts-plain -y -s512 luksFormat /dev/sda2"  it prompts for a "yes" and the directs back to the command prompt without asking for a password.

Additionally in the next setup of the wiki I'm instructed to enter "cryptsetup -c aes-xts-plain -s 512 -h sha512 -v luksFormat /dev/sda2" which after prompting for "yes" gives an error stating "invalid arguement error code 22"

When I go to check the partition with "cryptsetup luksDump /dev/sda2" is says it is not a valid luks partition.


What am I doing wrong, how do I fix this?


The older I get the less time I have.

Offline

#2 2010-08-21 22:37:08

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Encrypting Swap with Suspend

vinhsynd wrote:

When I use "cryptsetup -c aes-xts-plain -y -s512 luksFormat /dev/sda2"  it prompts for a "yes" and the directs back to the command prompt without asking for a password.

You need type YES (all upper case), yes Yes yEs dont work.

Offline

Board footer

Powered by FluxBB