Re: [swsusp fixes] Re: Linux 2.4.19pre5-ac3

Pavel Machek (pavel@suse.cz)
Tue, 9 Apr 2002 22:54:24 +0200


Hi!

> > > My question was: can I have a system without active swap and still use
> > > swsusp? Creating a swap/suspend partition of appropriate size is not a
> > > problem. I just do not want to "swapon" it.
> >
> > You need to swapon it. If you do not want to keep it swapped on,
> > there's no problem in
> >
> > swapon /dev/swap
> > echo 4 > /proc/acpi/sleep
> > sleep 10
> > swapoff /dev/swap
> >
>
> thanks. That is what I wanted to know. That basically means that I will
> have to boot with a active swap device in order to get the resume
> functionality - correct? And then I would do a "swapoff" late in the
> boot process (maybe before starting the graphical crap :-).

You do not need swapon during boot. swsusp no longer works like that
(it used to, but not now). swapon just before suspend is okay.
Pavel

-- 
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/