s2disk8
Program to suspend to disk (hibernate)
Usage
s2disk [-h,
--help]
[-V,
--version]
[-f,
--config
config_file]
[-r,
--resume_device
device]
[-o,
--resume_offset
offset]
[-s,
--image_size
size]
[-P,
--parameter
parameter]
Overview
This manual page documents briefly the s2disk, s2both and resume commands.
s2disk is a program that will save the state of the whole system to disk and power off your system. After restarting your system it will be put back in the exact system state you left it (this is sometimes called hibernation).
s2both will do precisly the same as s2disk except that it will not power off the system, but will suspend it to ram (put the system in S3 mode). This has the advantage that resume will be faster, with the disadvantage that you still use batteries. If they batteries do deplete, you still have the system state saved to disk and can resume without data loss. The s2both command also inherits all command line arguments from s2ram.
You will need to set up an initramfs which calls the resume program for this to work. If you use a package distributed with your Linux distribution, the kernel package which was made with the --initrd option and you use mkinitramfs-tools, this package should include the necessary parts on your initramfs.
The uswsusp system supports encrypting the image written to disk and features a splash system, see uswsusp.conf(5) for more information.
Options
-
-f, --config [file] -
Specify alternate configuration file.
-
-h, --help -
Display help.
-
-r, --resume_device [device] -
Device that contains swap area.
-
-o, --resume_offset [offset] -
Offset of swap file in resume device.
-
-s, --image_size [size] -
Desired size of the image.
-
-P, --parameter [key=value] -
Override any config file parameter (see uswsusp.conf(5)).
For the meaning and use of the resume_size, resume_offset and image_size options see uswsusp.conf(5).
Releases
6 releases since Debian 4.0 (Etch); the text changed 3 times.
--config since Debian 7 (Wheezy);
--help since Debian 7 (Wheezy);
--image_size since Debian 7 (Wheezy);
--parameter since Debian 7 (Wheezy);
--resume_device since Debian 7 (Wheezy);
--resume_offset since Debian 7 (Wheezy);
-P since Debian 7 (Wheezy);
-f since Debian 7 (Wheezy);
-h since Debian 7 (Wheezy);
-o since Debian 7 (Wheezy);
-r since Debian 7 (Wheezy);
-s since Debian 7 (Wheezy).