Cannot Hibernate with GRUB2 and CryptSwap

Bug #484373 reported by Jose M. Albarrán
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: grub2

I'm a newbie with Grub2, but I think the problem is here

I have a crypted personal directory. Then, the swap partition in /dev/mapper/cryptswap1 is crypted too.

When I try to hibernate my laptop, it seems doing well, but when it boots again, it doesn't resume (it start a fresh session).

Googling, I have found I need a resume file with my UUID partition in /etc/initramfs-tools/conf.d, but when I try to create it, I got

myuser@myhost:/etc/initramfs-tools/conf.d$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.31-14-generic
cryptsetup: WARNING: target cryptswap1 has a random key, skipped

Any suggestion or workaround will be welcomed (Is it easy to eliminate crypted directory and partititon?).

ProblemType: Bug
Architecture: i386
Date: Tue Nov 17 19:32:30 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate i386 (20091020.3)
Package: grub2 (not installed)
ProcEnviron:
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: grub2
Uname: Linux 2.6.31-14-generic i686
XsessionErrors:
 (gnome-settings-daemon:3212): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:3310): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:3333): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnotime:3315): GLib-CRITICAL **: g_tree_destroy: assertion `tree != NULL' failed

Revision history for this message
papukaija (papukaija) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It is currently a known issue that Hibernation will fail to resume due to an encrypted swap. Developers are hoping to resolve this issue for the Lucid Lynx 10.04 release. Please refer to https://help.ubuntu.com/community/EncryptedHome for more information. We will tag this bug "encrypted-swap" so that we can track this issue going forward and possibly request additional testing. Thanks in advance for your patience and cooperation.

tags: added: encrypted-swap
Revision history for this message
Edward Edwardson (edward-edwardson) wrote :

looks to melike the problem is here:

> cryptsetup: WARNING: target cryptswap1 has a random key, skippe

solution use a fixed key.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.