From ncunningham@crca.org.au  Fri Jul 25 12:53:16 2008
Return-Path: <ncunningham@crca.org.au>
X-Original-To: tuxonice-users@lists.tuxonice.net
Delivered-To: tuxonice-users@crca.org.au
X-Bogosity: Ham, spamicity=0.000000
Received: from [10.1.1.3] (home.nigel.suspend2.net [203.171.70.205])
	by crca.org.au (Postfix) with ESMTP id DDE15138005
	for <tuxonice-users@lists.tuxonice.net>;
	Fri, 25 Jul 2008 12:53:14 +0000 (UTC)
From: Nigel Cunningham <ncunningham@crca.org.au>
To: TuxOnIce users' list <tuxonice-users@lists.tuxonice.net>
In-Reply-To: <20080725123729.GA6137@legolas.on.net.mk>
References: <48889752.4070805@nagafix.co.uk>
	<1216966753.6194.47.camel@nigel-laptop>
	<20080725123729.GA6137@legolas.on.net.mk>
Content-Type: text/plain
Organization: Christian Reformed Churches of Australia
Date: Fri, 25 Jul 2008 22:53:12 +1000
Message-Id: <1216990392.8430.2.camel@nigel-laptop>
Mime-Version: 1.0
X-Mailer: Evolution 2.22.3.1 
Content-Transfer-Encoding: 7bit
Subject: Re: [TuxOnIce-users] read-only swap for keep-image-mode
	(on	flash	disk)
X-BeenThere: tuxonice-users@lists.tuxonice.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: TuxOnIce users' list <tuxonice-users@lists.tuxonice.net>
List-Id: TuxOnIce users' list <tuxonice-users.lists.tuxonice.net>
List-Unsubscribe: <http://lists.tuxonice.net/mailman/listinfo/tuxonice-users>, 
	<mailto:tuxonice-users-request@lists.tuxonice.net?subject=unsubscribe>
List-Archive: <http://lists.tuxonice.net/pipermail/tuxonice-users>
List-Post: <mailto:tuxonice-users@lists.tuxonice.net>
List-Help: <mailto:tuxonice-users-request@lists.tuxonice.net?subject=help>
List-Subscribe: <http://lists.tuxonice.net/mailman/listinfo/tuxonice-users>,
	<mailto:tuxonice-users-request@lists.tuxonice.net?subject=subscribe>
X-List-Received-Date: Fri, 25 Jul 2008 12:53:16 -0000

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


