Encrypted swap no longer mounted at bootup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
High
|
Dustin Kirkland | ||
systemd |
Fix Released
|
Medium
|
|||
ecryptfs-utils (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
Trusty |
Triaged
|
High
|
Unassigned | ||
Vivid |
Fix Released
|
High
|
Martin Pitt | ||
systemd (Debian) |
Fix Released
|
Unknown
|
|||
systemd (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
Vivid |
Fix Released
|
High
|
Martin Pitt | ||
ubiquity (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Triaged
|
High
|
Unassigned | ||
Vivid |
Fix Released
|
High
|
Unassigned |
Bug Description
SUMMARY
=======
During installation with "encrypt my home folder" mode, a broken /etc/crypttab gets created which defines a non-existing swap device (usually "cryptswap1") with a UUID. This will also be put into /etc/fstab. As after installation the UUID does not exist, such systems don't have any actual swap.
UPGRADE FIX
===========
An upgrade to Ubuntu 15.04 ("vivid") will detect and comment out these broken swap devices from /etc/fstab and /etc/crypttab. If you actually want to use those, do these steps:
- Find the swap device that was meant to be used in "sudo fdisk -l" (it should say "Linux swap" in the last column), remember the device name (something like "/dev/sda5")
- Find the UUID in /etc/crypttab (the long alphanumeric ID after UUID=)
- Run "sudo mkswap -U 1234... /dev/sda5", replacing "1234" with the above UUID, and /dev/sda5 with the device name from step 1.
- Edit /etc/crypttab to append ",offset=1024" in the fourth (last) column of the cryptswap1 line; ensure that there is *no space* between the "cipher=
- If there is a leading "#" in /etc/fstab in the line starting with /dev/mapper/
- Run "sudo update-initramfs -u".
ORIGINAL REPORT
===============
Clean install of 12.04 and with encrypted home for my user. Did all updates and now the bootup hangs waiting for swap to become available and it never seems to ever finish. The 200GB SSD below is my boot drive and root filesystem.
alan@mesh:~$ sudo swapon -a
[sudo] password for alan:
swapon: /dev/mapper/
alan@mesh:~$ grep swap /etc/fstab
# swap was on /dev/sdg5 during installation
#UUID=22d3f7f0-
/dev/mapper/
alan@mesh:~$ sudo fdisk -l
Disk /dev/sda: 115.0 GB, 115033153536 bytes
255 heads, 63 sectors/track, 13985 cylinders, total 224674128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ba2ed
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 224671743 112232448 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0fa0806
Device Boot Start End Blocks Id System
/dev/sdb1 2048 349304831 174651392 7 HPFS/NTFS/exFAT
/dev/sdb2 374722558 390721535 7999489 5 Extended
/dev/sdb3 * 349304832 374720511 12707840 83 Linux
/dev/sdb5 374722560 390721535 7999488 82 Linux swap / Solaris
Partition table entries are not in disk order
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libecryptfs0 96-0ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-18-generic x86_64
NonfreeKernelMo
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Tue Mar 13 09:56:56 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120215)
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: ecryptfs-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ecryptfs-utils (Ubuntu): | |
status: | Expired → Confirmed |
tags: | added: utopic |
tags: | added: iso-testing |
Changed in ecryptfs-utils (Ubuntu): | |
milestone: | none → ubuntu-15.03 |
description: | updated |
Changed in ecryptfs-utils (Ubuntu Vivid): | |
status: | Triaged → In Progress |
Changed in ecryptfs: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in ecryptfs: | |
status: | In Progress → Fix Released |
Changed in ecryptfs-utils (Ubuntu Vivid): | |
status: | In Progress → Fix Committed |
Changed in ecryptfs-utils (Ubuntu Vivid): | |
status: | Fix Committed → Fix Released |
Changed in ecryptfs-utils (Ubuntu Vivid): | |
status: | Fix Released → Confirmed |
milestone: | ubuntu-15.03 → ubuntu-15.04 |
tags: | added: rls-v-incoming vivid |
Changed in ubiquity (Ubuntu Vivid): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Martin Pitt (pitti) |
milestone: | none → ubuntu-15.04 |
Changed in ecryptfs-utils (Ubuntu Vivid): | |
status: | Confirmed → Fix Released |
Changed in ubiquity (Ubuntu Vivid): | |
assignee: | Martin Pitt (pitti) → nobody |
status: | In Progress → Fix Committed |
Changed in ubiquity (Ubuntu Vivid): | |
status: | Fix Committed → Fix Released |
Changed in systemd (Ubuntu Vivid): | |
assignee: | nobody → Martin Pitt (pitti) |
tags: | removed: rls-v-incoming |
Changed in systemd (Ubuntu Vivid): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Vivid): | |
milestone: | none → ubuntu-15.04 |
status: | In Progress → Fix Committed |
Changed in systemd (Debian): | |
status: | Unknown → Confirmed |
Changed in systemd: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in systemd (Debian): | |
status: | Confirmed → Fix Released |
Changed in systemd: | |
status: | Confirmed → Fix Released |
Changed in ecryptfs-utils (Ubuntu): | |
milestone: | ubuntu-15.04 → none |
Changed in systemd (Ubuntu): | |
milestone: | ubuntu-15.04 → none |
Changed in ubiquity (Ubuntu): | |
milestone: | ubuntu-15.04 → none |
Changed in ubiquity (Ubuntu Trusty): | |
milestone: | ubuntu-14.04.3 → ubuntu-14.04.4 |
Changed in ecryptfs-utils (Ubuntu Trusty): | |
milestone: | none → ubuntu-14.04.4 |
tags: | added: mate xenial |
tags: | removed: mate precise trusty utopic vivid |
Status changed to 'Confirmed' because the bug affects multiple users.