On Sun, 5 Nov 2006 12:20:55 -0800
Vagrant Cascadian <[EMAIL PROTECTED]> wrote:

> Package: uswsusp
> Version: 0.3~cvs20060928-1
> Severity: wishlist
> 
> when i tried to use s2disk, it wouldn't work, because the swap partition
> is encrypted.
> 
> so then i configured it to use an un-used swap partition, but i get the
> following:
> 
> s2disk
> suspend: libgcrypt version: 1.2.3
> suspend: Could not use the resume device (try swapon -a)
> 
> is there any way to configure uswsusp to use an un-mounted swap
> partition?

No, not at the moment. 

> i don't want to mount the swap partition just to use uswsusp, as
> something might swap data out to it.

I understand...
 
> and it seems impractical to be able to support encrypted swap partitions
> (especially with a dynamically generated encryption key).

I presume you also encrypt other partitions, right? Can't you just use a
regular key for swap too? That way you can use your encrypted-swap for
s2disk to. You should just make sure swap is set up before resume runs.

> the ugly workaround i've done is:
> 
> swapon /dev/hda1 ; s2disk ; swapoff /dev/hda1
> 
> but that doesn't seem real great.

No it doesn't, but it works;) But seriously, I don't think it it is a
good idea to make it possible for s2disk to write to a random unmounted 
partition. The fact that a partition is used as swap gives reassurance that it
doesn't have any valuable data on it and can be written to without and risk
of whipping out some unmounted parition.


grts Tim


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to