On Tue, May 09, 2006 at 07:48:26PM +0000, Warren Wilder wrote:
> I have followed the encrypted swap hint:
> 
> http://www.linuxfromscratch.org/hints/downloads/files/eswap.txt
> 
> Now that I have it working, I am wondering how I can test whether it
> really is working.
> In other words, how can I read data from the swap partition by the aid
> of say, a running live-cd or something?

 as root, dd if=/dev/wherever of=~/something

 Of course, it just contains pages (4KiB) of data.  Since we can't
tell what is in it, and therefore what you might look for, try
running 'strings' on it and seeing if *any* text in the result makes
sense.

> I can't just mount it, right? Since it is a swap filesystem.
> (Yes, I could mount it as swap, but that would be fairly pointless.)
> So, how can I get the data off of it and into a single file, so I can
> grep it and such?
> 
> I would also like to use 'software suspend'. Or rather version2, which
> seems to be better but requires kernel patches etcetera.
> I am a bit timid about starting that though. I am not sure what is
> actually stored into the swap file when the machnine suspends.
> Can it reboot if the swap is encrypted?
> If it can, then either my swap is not encrypted or the kernel is loaded
> like usual(which can read encrypted swap), and only usermemory like
> having openoffice open or whatever is stored. Ehm... right?
> 
 On this one, I'm in the dark - I like the sound of software
suspend, but as Linus said a while ago, what people really want is
suspend to ram.  On my ibook, suspend to ram has worked for a long
while without any funny requirements (just close the lid).  On a
desktop (or are you using a laptop ?) you need *something* to
suspend it, and to make it resume.  That part seems to be rarely
discussed!

Ken
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to