152 lines
4.3 KiB
HTML
152 lines
4.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of S2DISK</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>S2DISK</H1>
|
|
Section: s2disk (8)<BR>Updated: Feb 29, 2012<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
s2disk - program to suspend to disk (hibernate)
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>s2disk</B> [-h, --help] [-V, --version] [-f, --config <I>config_file</I>] [-r, --resume_device <I>device</I>] [-o, --resume_offset <I>offset</I>] [-s, --image_size <I>size</I>] [-P, --parameter <I>parameter</I>]
|
|
<DT id="2">
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<DD>This manual page documents briefly the <B>s2disk</B>, <B>s2both</B> and <B>resume</B> commands.
|
|
<P>
|
|
|
|
<B>s2disk</B> 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).
|
|
<P>
|
|
|
|
<B>s2both</B> will do precisly the same as <B>s2disk</B> 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 <B>s2both</B> command also inherits all command line arguments from <B>s2ram</B>.
|
|
<P>
|
|
|
|
You will need to set up an initramfs which calls the <B>resume</B> 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.
|
|
<P>
|
|
|
|
The uswsusp system supports encrypting the image written to disk and features a splash system, see <A HREF="/cgi-bin/man/man2html?5+uswsusp.conf">uswsusp.conf</A>(5) for more information.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>-f, --config [file]</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Specify alternate configuration file.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h, --help</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Display help.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-r, --resume_device [device]</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Device that contains swap area.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-o, --resume_offset [offset]</B>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Offset of swap file in resume device.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-s, --image_size [size]</B>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Desired size of the image.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-P, --parameter [key=value]</B>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Override any config file parameter (see <A HREF="/cgi-bin/man/man2html?5+uswsusp.conf">uswsusp.conf</A>(5)).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
For the meaning and use of the resume_size, resume_offset and image_size options see <A HREF="/cgi-bin/man/man2html?5+uswsusp.conf">uswsusp.conf</A>(5).
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?5+uswsusp.conf">uswsusp.conf</A>(5), <A HREF="/cgi-bin/man/man2html?8+suspend-keygen">suspend-keygen</A>(8), <A HREF="/cgi-bin/man/man2html?8+s2ram">s2ram</A>(8)
|
|
<P>
|
|
|
|
For more information see the README file.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<P>
|
|
|
|
This manual page was written by Tim Dijkstra <<A HREF="mailto:tim@famdijkstra">tim@famdijkstra</A>>.org for the Debian(TM) system (but may be used by others). Was updated by Rodolfo García <<A HREF="mailto:kix@kix.es">kix@kix.es</A>>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
<BR>
|
|
|
|
Copyright © 2006 Tim Dijkstra
|
|
Copyright © 2012 Rodolfo García (kix)
|
|
<BR>
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="12"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="13"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="14"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
<DT id="15"><A HREF="#lbAH">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:15 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|