cryptdisks hangs on message "stop/waiting"

Bug #1409677 reported by Helder
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I tried to switch from a normal swap to an encrypted one but the command freezes after the message "cryptdisks stop/waiting":
----
$ sudo ecryptfs-setup-swap
[sudo] password for <user>:

WARNING:
An encrypted swap is required to help ensure that encrypted files are not leaked to disk in an unencrypted format.

HOWEVER, THE SWAP ENCRYPTION CONFIGURATION PRODUCED BY THIS PROGRAM WILL BREAK HIBERNATE/RESUME ON THIS SYSTEM!

NOTE: Your suspend/resume capabilities will not be affected.

Do you want to proceed with encrypting your swap? [y/N]: y

INFO: Setting up swap: [/dev/sda2]
WARNING: Commented out your unencrypted swap from /etc/fstab
cryptdisks stop/waiting
----

Revision history for this message
Helder (he7d3r) wrote :

So, I tried to execute
$ sudo /etc/init.d/cryptdisks stop
and got
cryptdisks stop/waiting
instantaneously. So stopping works fine. In fact, when I tried it for a second time, I got
$ sudo /etc/init.d/cryptdisks stop
stop: Unknown instance:

On the other hand, starting freezes:
$ sudo /etc/init.d/cryptdisks start
(nothing is shown after that is executed)

See also:
http://askubuntu.com/a/552965/98873

FYI: this is on Ubuntu Studio 14.10.

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

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

Changed in cryptsetup (Ubuntu):
status: New → Confirmed
Revision history for this message
Ville Ranki (ville-ranki) wrote :

Got the same as #1 on fresh Ubuntu 14.10 install after creating a encrypted home.

Revision history for this message
Maciek (jalum) wrote :

I enabled swap successfully running:

$/etc/init.d/cryptdisks force-start

and
$ free -m
returned:

             total used free shared buffers cached
Mem: 992 901 91 58 52 378
-/+ buffers/cache: 470 522
Swap: 1012 5 1007

Revision history for this message
battletux (andrew-opensauce) wrote :

I get the same issue as #1, however +Maciek's solution to force-start cryptdisks doesn't quite work.

It starts the service however when I run 'free -m' it shows my swap file size as 0, despite it being 1gb in size.

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

Other bug subscribers