[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hibernate / ACPI suspend: help needed



On Tuesday 22 March 2005 16:05, you wrote:
> --- Sebastian Kügler <lists@vizZzion.org> wrote:
> > That's because the swappartition contains the memory
> > image. It's highly
> > recommended that you add mkswap to your init
> > scripts, otherwise your risking
> > severe filesystem corruption of you suspend, then
> > boot a non-suspend aware
> > kernel and then try to resume afterwards. That's
> > because the filesystem is in
> > inconsistent state during hibernate, booting and
> > mounting it will modify it,
> > but a resumed kernel won't notice that it has been
> > booted and modified in the
> > meantime and will thus cause corruption.

> So you're saying that for swsusp you need an
> additional swap partition to "hibernate" to in
> addition of your default swap partition?

No, you can use your 'normal' swap partition, you just can't use it while the 
suspend image is stored in there until it's cleaned up. Cleaning up is done 
post-resume by swsusp or manually by using mkswap. Since the image is useless 
- even dangerous - and only consumes all your swapspace after a normal boot, 
it's safe and sensible to mkswap it on normal boot, e.g. by means of an 
initscript.

Cheers,

sebas
-- 
  http://vizZzion.org   |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
So many beautiful women and so little time. - John Barrymore

Attachment: pgpN2MIk6keuD.pgp
Description: PGP signature


Reply to: