On Mon, Nov 13, 2006 at 03:34:58PM +0100, Tim Dijkstra wrote:
> On Sun, 5 Nov 2006 12:20:55 -0800
> Vagrant Cascadian <[EMAIL PROTECTED]> wrote:
...snip...
> > 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?

could do that. though it's nice to be able to use a randomly generated
key to make it almost impossible to retrieve swap data.  i guess i could
use two swap partitions, one with a regular key and one with a randomly
generated key... and configure uswsusp to use the one with the regular
key, but arrange them so most data is usually swapped to the randomly
generated key partition...

> That way you can use your encrypted-swap for
> s2disk to. You should just make sure swap is set up before resume runs.

i don't think initramfs-tools handles the crypsetup swap devices- that
gets taken care during the init scripts. but probably wouldn't be
terribly difficult to fix.

> > 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.

i can see that.

though you could use some other partition type that is dedicated for
hibernation (such as A0), rather than a swap partition.  using a swap
partition for purposes other than swap seems kind of hackish to me.

live well,
  vagrant


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

Reply via email to