SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-06-08 21:57:58

bedhead
Member
Registered: 2012-06-05
Posts: 21

Hibernation fails with encrypted 3.81gb swap - memory 8gb

Hibernation fails with encrypted 3.81gb swap - memory 8gb

Suspend works well but hibernation fails.

The hibernation process shuts the laptop down but it never comes backup until its shut down again via holding the power button down for 4 seconds.

On restart orphan files are found by the system in /home and automatically deleted. The system boots normally.

Within GParted the swap partition is displayed as unknown. The desktop info screen screen states that swap usage is 0b out of 3.81gb available.

Any ideas please as hibernation is a useful function?

Offline

Help fund CrunchBang, donate to the project!

#2 2012-06-09 01:08:15

Rudolph
Member
From: IE, CA, US, Earth
Registered: 2012-02-23
Posts: 26

Re: Hibernation fails with encrypted 3.81gb swap - memory 8gb

If your swap is encrypted the hibernated image is encrypted. Therefore the OS cannot boot an encrypted image to be able to decrypt the image to boot it.

This page, though ubuntu-specific, describes it well enough and offers a workaround that should be tweakable to work with #!/Debian. I wouldn't blindly follow the instruction there, you may end up with an unbootable system. Google "hibernate encrypted swap" and read as much as you can stand first smile

Offline

#3 2012-06-09 07:14:16

bedhead
Member
Registered: 2012-06-05
Posts: 21

Re: Hibernation fails with encrypted 3.81gb swap - memory 8gb

This link looks great: https://we.riseup.net/debian/encrypted-swap


Taken from  '/etc/fstab' before any changes made:

# swap was on /dev/sda7 during installation
#UUID=30c5fbdb-c021-4d97-9938-404e8f0d3ee9 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/mapper/cryptswap1 none swap sw 0 0


Taken from '/etc/crypttab' before any changes made:

# <target name>    <source device>        <key file>    <options>
cryptswap1 /dev/sda7 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

Last edited by bedhead (2012-06-09 07:24:17)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo