You are not logged in.

#1 2012-10-10 08:58:21

Pafrapé
Member
Registered: 2010-10-25
Posts: 12

[dmcrypt] Unable to encrypt a new installation

Hello,

I am currently doing a fresh install of Archlinux, with the latest version, October 2010.

This system is a laptop containing confidential data, so I use a gift encrypted lvm and dmcryp
I create two partitions on my hard drive:
- sda1  formatted in Ext4 with / boot order to boot the system
- sda2 will be encrypted lvm and formatted itself contain two sub-scores:
      - Swap
      - / Root formatted in ext4

After formatting my hard drive into two partitions and created the boot with cfdisk, I set what is necessary :

modprobe dm-crypt
modprobe dm-mod

Then I start cryptography / sda2

cryptsetup luksFormat -c aes-xts-plain -y -s 512  /dev/sda2

Then the system asks me to confirm "yes", what I'm doing.

But then, big problem when it should ask me for my password, nothing, it does not ask for password!

So I continue to see what it will give. maybe the password will be asked later.

cryptsetup luksOpen /dev/sda2 sda2crypt

And not surprisingly, I get the answer

Device /dev/sda2 is not a valid LUKS device.

Did I forget something? would I mistaken somewhere?

Thank you for your help to guide me to the solution

Offline

#2 2012-10-10 10:19:04

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [dmcrypt] Unable to encrypt a new installation

But then, big problem when it should ask me for my password, nothing, it does not ask for password!

that's because you didn't type what cryptsetup asked you to type. I highlighted the relevant word for you. wink
not blaming you, I did the same mistake the first time. big_smile

# cryptsetup luksFormat /dev/sda2
WARNING!
========
This will overwrite data on /dev/sda2 irrevocably.

Are you sure? (Type --------->!!! uppercase !!!<--------- yes):

Offline

#3 2012-10-18 06:48:04

Pafrapé
Member
Registered: 2010-10-25
Posts: 12

Re: [dmcrypt] Unable to encrypt a new installation

Thank you very much for your help.

The solution is really simple, but we had to know it.

Just write not

yes

but

YES

Offline

Board footer

Powered by FluxBB