Suspending to swap with two OS's

Luciano Rocha strange at nsk.no-ip.org
Mon Jul 16 11:37:09 UTC 2007


On Mon, Jul 16, 2007 at 12:18:06PM +0930, Tim wrote:
> On Sun, 2007-07-15 at 17:53 +0100, Luciano Rocha wrote:
> > The problem with hibernation would be that when resuming
> > the kernel will have an erroneous idea of the state of the filesystems
> > it was using. 
> 
> I would have thought that, other than for the swap drive, the system
> would flush caches and sync drives on its way down.  I think it'd be
> foolish not to.

It flushes dirty buffers, yes, but there are data not part of cache:
open inodes (even if just directories), deleted but in use inodes,
superblock data and journal state, that could have changed/will change
between the hibernation and resume.

The suspending OS doesn't umount the filesystem (or it didn't last time
I checked). This is easy to check. Save all your data, sync, and
suspend. Then, instead of resuming, boot normally. The OS should
complain about mounting an unchecked filesystem and replaying the
journal.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070716/2a34c467/attachment-0001.sig>


More information about the fedora-list mailing list