Re: Suspend to disk

From: Rolf Arne Schulze (raskall_at_gmail.com)
Date: 04/22/05


Date: Fri, 22 Apr 2005 10:23:46 +0200

On Thu, 21 Apr 2005 22:36:57 GMT, Augustus SFX van Dusen wrote:
> I understand that some Linux kernels support a suspend-to-disk utility,
> whereby a Linux session can be saved to disk, so that one can continue
> with it on rebooting the next time. I have read some documentation on this
> subject, and I would like to have clarification on some aspects:
>
> 1) If, after suspending to disk, the computer is turned completely off
> (possibly even unplugged) is it still possible to retrieve the Linux
> session?

With suspend-to-disk, yes. Suspend to disk means that it writes all
the contents of the memory to the swap partition. You have to tell
your kernel on boot (from lilo.conf or menu.lst in grub) the partition
it should resume the session from, that is the swap partition. Suspend
to disk is the same as turning of your computer completeley, with the
difference that it writes the content of your memory to swap.

> 2) Is it necessary to have a swap partition specifically devoted to the
> suspend-to-disk job, or can the swap partition used by the OS itself be
> used for that purpose?

No, its not necessary. Just make sure your swap partition is bigger
than your amount of memory.

> 3) Do all vanilla 2.4 and 2.6 kernels support suspend-to-disk? Is it
> necessary to apply patches to some particular releases?

I never got it to work until I installed Ubuntu hoary on my laptop. I
guess I could have gotten it to work on other distros, but I didn't
bother to patch, compile and install a kernel myself. So I guess the
ubuntu team has done what's necessary for me in their kernel patches.

-- 
Rolf Arne Schulze
Trans-atlantic weightloss challenge: http://tawlc.net/
Min Weblog: http://rolfas.net/


Relevant Pages

  • Re: KFest 2009 Report
    ... Ryan Suenaga held a live podcast recording session with audience ... which negates the boring disk swapping the game previously ... We'll be leaving for dinner soon, and if anything exciting happens, I ...
    (comp.sys.apple2)
  • Re: adding an extra hard disk and adding space to /usr
    ... ADD this new disk onto the already existing /usr partition. ... I am no expert on freebsd, but in my opinion tar is a good choice. ... Comment out your existing SWAP partition in /etc/fstab. ...
    (freebsd-stable)
  • Re: GRUB/LILO problem
    ... |hda2 -- swap partition for XP, also NTFS ... using LILO instead of GRUB. ... mismatch (e.g. bad disk parameters, ...
    (alt.os.linux.suse)
  • Re: [opensuse] OpenSUSE 11.1 on PS3
    ... Could it be that because I had previously installed OpenSUSE, ... installer saw a swap partition on the disk and used it by default? ... It is definitely using disk for swap at the moment so something went ... The ps3vram device might be there (I'm not near the system at the ...
    (SuSE)
  • RE: adding an extra hard disk and adding space to /usr
    ... ADD this new disk onto the already existing /usr partition. ... the safest way is to copy /usr to /mnt is via the ... Comment out your existing SWAP partition in /etc/fstab. ...
    (freebsd-stable)