Messages in this thread | | | From | "Rafael J. Wysocki" <> | Subject | Re: Which is simpler? (Was Re: [Suspend2-devel] Re: [ 00/10] [Suspend2] Modules support.) | Date | Wed, 8 Feb 2006 10:43:11 +0100 |
| |
Hi,
On Wednesday 08 February 2006 09:28, Pavel Machek wrote: > > > Suspend-to-disk HOWTO > > > ~~~~~~~~~~~~~~~~~~~~ > > > Copyright (C) 2006 Pavel Machek <pavel@suse.cz> > > > > > > > > > You'll need /dev/snapshot for these to work: > > > > > > crw-r--r-- 1 root root 10, 231 Jan 13 21:21 /dev/snapshot > > > > > Then compile userspace tools in usual way. You'll need an -mm kernel > > > for now. To suspend-to-disk, run > > I actually added -mm warning here.
Oh, I didn't notice, sorry.
> > > ./suspend /dev/<your_swap_partition> > > > > > > . (There should be just one, for now.) Suspend is easy, resume is > > > slightly harder. Resume application has to be ran without any > > > filesystems mounted rw, and without any journalling filesystems > > > mounted at all, preferably from initrd (but read-only ext2 should do > > > the trick, too). Resume is then as easy as running > > > > > > ./resume /dev/<your_swap_partition> > > > > > > . You probably want to create script that attempts to resume with > > > above command, and if that fails, fall back to init. > > > > If it's run fron an initrd, it'll fall back automatically. Also you can set > > the name of the resume partition in the header file swsusp.h and > > you'll be able to use the tools without any command line > > parameters (useful if you want to start resume from an initrd). > > I know a little about initrd. I've just commited HOWTO file, can you > edit it to describe that?
OK, I will, but when I have some time for that (today in the night, probably).
Greetings, Rafael - 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/
| |