Re: [TuxOnIce-users] read-only swap for keep-image-mode (onf…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nigel Cunningham
Date:  
To: TuxOnIce users' list
Subject: Re: [TuxOnIce-users] read-only swap for keep-image-mode (onflashdisk)
Hi.

On Fri, 2008-07-25 at 14:37 +0200, Damjan wrote:
> > It sounds like using the file allocator might suit your purposes better.
> > By writing the image to a file, you don't have to worry about whether
> > swap is enabled or not, and can still use keep-image mode.
> >
> > Regarding the question "How can I ensure that no data is ever written to
> > the disk", I'd be remounting the filesystems read-only prior to
> > hibernating.
>
> well, if using the keep-image mode there's no need for hibernating.
> Just power-off imidiatelly.


Yes, that's what the kernel does if you ask it to hibernate again and an
image has been kept. But I was talking about the first time - it will be
a good idea to remount filesystems read only before hibernating to
ensure they don't get written to when you subsequently resume. I could
imagine that if something did write to the filesystem after resuming the
first time, then you poweroff and resume again and the disk doesn't
match what's in memory, that would be another potential cause for
corruption. Better safe than sorry.

TTFN

Nigel