You are not logged in.

#1 2009-01-09 17:01:08

Odd-rationale
Member
Registered: 2008-02-05
Posts: 102

Encrypted Swap and Suspend to Disk (pm-utils)

Hello!

I was trying to think of an easy way to get encrypted swap to work with pm-hibernate. It seems like I can't use /dev/mapper/swap because it tries to resume from swap before trying to unlock the swap partition.

However, it does asks for the passphrase to unlock / (root) before trying to resume from swap.

So I was thinking... what if I got rid of my swap partition and used a non-encrypted swap file like in /mnt/swap, as / is encrypted anyways. Would this work?

Also, what are the main disadvantages of using a swap file?

Thanks!

Last edited by Odd-rationale (2009-01-09 17:02:38)

Offline

#2 2009-01-09 20:50:38

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Encrypted Swap and Suspend to Disk (pm-utils)

Swap files can work just as well: http://lkml.indiana.edu/hypermail/linux … /1690.html

You might get the separate swap partition to work after adding the apropriate cryptdevice=/dev/<luks-part>:<volume-group> entry for the swap partiton though.

Offline

#3 2009-01-14 22:07:05

gst
Member
Registered: 2009-01-14
Posts: 10

Re: Encrypted Swap and Suspend to Disk (pm-utils)

Edit: Sorry, I sent this posting to the wrong thread (and therefore removed it here again) :)

It was intended for this thread: http://bbs.archlinux.org/viewtopic.php?pid=480648

Last edited by gst (2009-01-14 22:13:16)

Offline

Board footer

Powered by FluxBB