You are not logged in.

#1 2008-08-20 13:21:28

ekerazha
Member
Registered: 2007-02-27
Posts: 290

/etc/crypttab doesn't create /dev/mapper/swap

I'm not lucky with encryption these days: keyfile on USB stick doesn't work ( http://bbs.archlinux.org/viewtopic.php?id=52507 ), so revert to the passphrase thing.

I had swap encryption working using the old rc.local way etc. now there's a new way... "SWAP" keyword inside /etc/crypttab and no rc.local changes, wonderful right? Wrong. It doesn't work, if you put (example)

swap /dev/sda3 SWAP -c aes-xts-plain -h whirlpool -s 512

inside /etc/crypttab and reboot, it doesn't create any /dev/mapper/swap device (so it can't swapon).

Where's the issue?

Last edited by ekerazha (2008-08-20 13:22:35)

Offline

#2 2008-08-23 10:38:43

dw
Member
From: Vienna, Austria
Registered: 2006-11-25
Posts: 160

Re: /etc/crypttab doesn't create /dev/mapper/swap

hi ekerazha.

i am playing around with system encryption a bit lately and i am experiencing exactly the same. my question. were you able to solve this?

Offline

#3 2008-08-23 16:35:56

ekerazha
Member
Registered: 2007-02-27
Posts: 290

Re: /etc/crypttab doesn't create /dev/mapper/swap

dw wrote:

hi ekerazha.

i am playing around with system encryption a bit lately and i am experiencing exactly the same. my question. were you able to solve this?

No... maybe reverting to the "old" way (no SWAP keyword etc.)

Last edited by ekerazha (2008-08-23 16:36:41)

Offline

#4 2008-08-23 16:44:14

ekerazha
Member
Registered: 2007-02-27
Posts: 290

Re: /etc/crypttab doesn't create /dev/mapper/swap

Opened a bug report: http://bugs.archlinux.org/task/11295

Last edited by ekerazha (2008-08-23 16:45:03)

Offline

#5 2009-03-06 21:38:38

kiloecho7
Member
Registered: 2007-08-24
Posts: 25

Re: /etc/crypttab doesn't create /dev/mapper/swap

It does that on purpose apparently.  Your swap partition probably has a luks header already and the SWAP statement in /etc/crypttab will not over write anything with a luks header.

dd if=/dev/zero of=/dev/whateveryourswapis

e.g. (dd if=/dev/zero of=/dev/sda3)

and then reboot, should do the trick.

Offline

#6 2009-03-07 23:36:38

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: /etc/crypttab doesn't create /dev/mapper/swap

Very good idea, killecho7!

I have this working myself.

Offline

Board footer

Powered by FluxBB