Encrypted Swap no longer mounting

Bug #460745 reported by Martin Meredith on 2009-10-25
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
upstart (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: cryptsetup

I did an update of my system this morning, and on reboot, got errors about mounting encrypted swap.

I am unable to get this mounted via any conventional method.

ProblemType: Bug
Architecture: i386
Date: Sun Oct 25 23:47:30 2009
DistroRelease: Ubuntu 9.10
Package: cryptsetup 2:1.0.6+20090405.svn49-1ubuntu7
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: cryptsetup
Uname: Linux 2.6.31-14-generic i686
XsessionErrors:
 (gnome-settings-daemon:2055): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2089): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2120): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Martin Meredith (mez) wrote :
papukaija (papukaija) wrote :

Confirming. This bug might be caused by bug 461442.

Changed in cryptsetup (Ubuntu):
status: New → Confirmed
papukaija (papukaija) wrote :

According to gparted, the swap partiton is also broken.

The following line is used in my /etc/fstab to mount the swap partition:
/dev/mapper/cryptswap1 none swap sw 0 0

papukaija (papukaija) wrote :
Martin Meredith (mez) wrote :

This issue resolved itself for me, can you attach copys of /etc/fstab /etc/crypttab and the output of sudo swapon -s

papukaija (papukaija) wrote :

Same here; restarting my sytem solved the issue. I think that this problem was caused by bug 461442. I'm attaching the requested files (not the sudo command since the swap is now working) to prevent this from happening again.

papukaija (papukaija) wrote :
papukaija (papukaija) wrote :
papukaija (papukaija) wrote :

I got this bug once again.

papukaija (papukaija) wrote :

sudo swapon -s just shows:
Filename Type Size Used Priority

However, I could enable swap by running sudo swapon -a

gondim (gondim) wrote :

The same problem with me. :(

Neither a bug in the kernel or init daemon

Changed in upstart (Ubuntu):
status: New → Invalid
Changed in linux (Ubuntu):
status: New → Invalid
papukaija (papukaija) on 2009-11-29
tags: added: ubuntu-boot ubuntu-boot-experience
Steve Langasek (vorlon) wrote :

This is probably a race condition between the cryptsetup upstart job and the swap device becoming available (bug #454898). Marking as a duplicate.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers