You are not logged in.

#1 2014-11-22 12:50:46

macaco
Member
From: Graz, Austria
Registered: 2009-03-22
Posts: 101

[SOLVED] I did "ecryptfs-setup-swap" - how can I undo it?

Guess I comitted a misstake. I ecexuted "ecryptfs-setupt-swap", as I don't use hibernation I was okay with its flaws.

However, whenever I boot my system now, I get an output... something like "start job dev-mapper-swap.device" (sorry for not knowing the exact wording) which after trying for 1m30s finally fails.

How can I undo the mess I comitted on my system?
Which additional informations do you need?

Thanks in advance...

Last edited by macaco (2014-11-22 13:59:00)

Offline

#2 2014-11-22 13:36:25

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] I did "ecryptfs-setup-swap" - how can I undo it?

It seems obvious that an encrypted swap partition can't be mounted without a handler for the encryption. If you want to undo; execute mkswap on the file/partition you have setup to use for swap; it'll setup a new & clean swapspace

Offline

#3 2014-11-22 13:58:11

macaco
Member
From: Graz, Austria
Registered: 2009-03-22
Posts: 101

Re: [SOLVED] I did "ecryptfs-setup-swap" - how can I undo it?

Thanks!

That and "resetting" the fstab did the trick. Now the system boots normal.

Guess I will try to setup a dm-crypt swap then.

Offline

#4 2014-11-22 17:09:48

macaco
Member
From: Graz, Austria
Registered: 2009-03-22
Posts: 101

Re: [SOLVED] I did "ecryptfs-setup-swap" - how can I undo it?

Just a terminal question (although solved...)

This means that the dm-crypt swap is already working???

[user@notebook ~]$ sudo cryptsetup status /dev/dm-0
/dev/dm-0 is active and is in use.
  type:    PLAIN
  cipher:  aes-cbc-essiv:sha256
  keysize: 256 bits
  device:  /dev/sda2
  offset:  0 sectors
  size:    6142640 sectors
  mode:    read/write

Last edited by macaco (2014-11-22 17:10:40)

Offline

#5 2014-11-22 21:33:44

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] I did "ecryptfs-setup-swap" - how can I undo it?

Did you specify dm-0 as swap-device instead of sda2?

Offline

#6 2014-11-23 23:43:56

macaco
Member
From: Graz, Austria
Registered: 2009-03-22
Posts: 101

Re: [SOLVED] I did "ecryptfs-setup-swap" - how can I undo it?

It's defintely my swap.

[user@laptop ~]$ swapon -s
Nome do arquivo				Tipo		Tamanho		Usado	Prioridade
/dev/dm-0                              	partition	3071316	31880	-1

It managed to get device mapped.

As in the /etc/fstab

# Encrypted volumes
/dev/mapper/swap           	swap      	swap      	defaults  	0 0

So dev mapper gave it a name tongue

Offline

Board footer

Powered by FluxBB