I can't boot normally with encrypted swap

Bug #1515414 reported by sz gy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
boot (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi!

I installed Ubuntu 15.10 64bit desktop with the following partition
schema:

szimszon@szimszon-kili:~$ sudo fdisk /dev/sda

Welcome to fdisk (util-linux 2.26.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Parancs (m = súgó): p
Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E83FD0FA-89C7-4523-A002-259C93091BE7

Eszköz Start Vége Szektorok Size Típus
/dev/sda1 2048 499711 497664 243M EFI System
/dev/sda2 499712 1499135 999424 488M Linux filesystem
/dev/sda3 1499136 974155775 972656640 463,8G Linux filesystem
/dev/sda4 974155776 976771071 2615296 1,3G Linux lapozó

fstab:
=====================================
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/sda3_crypt / btrfs defaults,subvol=@ 0 1
# /boot was on /dev/sda2 during installation
UUID=f19afe7d-3905-4e0a-aefa-6684150b15f5 /boot ext4
defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=BF13-E9D2 /boot/efi vfat umask=0077 0 1
/dev/mapper/sda3_crypt /home btrfs defaults,subvol=@home
0 2
/dev/mapper/sda4_crypt none swap sw 0 0
======================================

lsblk:
======================================
szimszon@szimszon-kili:~$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk ├─sda1 8:1 0
243M 0 part /boot/efi
├─sda2 8:2 0 488M 0 part /boot
├─sda3 8:3 0 463,8G 0 part │ └─sda3_crypt 252:0 0
463,8G 0 crypt /home
└─sda4 8:4 0 1,3G 0 part
======================================

After the second boot the system can't find the swap space and I have to
wait 1:30 minute to timeout the process to do something with the swap
space.

I have a crypt partition on sda3 (this is the root partition with btrfs
in it), and sda4 (for swap space).

Now if I try to open the sda3 I got an error that the partition is not
an encrypted one:

=======================================
szimszon@szimszon-kili:~$ sudo cryptsetup luksOpen /dev/sda4 sda4_crypt
Device /dev/sda4 is not a valid LUKS device.
=======================================
   affects ubuntu/boot

--
Üdvözlettel:
  Gyuris Szabolcs
  <email address hidden>

http://oregpreshaz.eu
https://www.facebook.com/oregpreshazpince
https://twitter.com/oregpreshaz
https://plus.google.com/101294094345126934261

Revision history for this message
sz gy (gyszabolcs) wrote :

Lines from syslog:

Nov 13 09:03:40 szimszon-kili systemd[1]: dev-disk-by\x2duuid-31375131\x2df654\x2d4c0a\x2d9872\x2d0b321cbc258c.device: Job dev-disk-by\x2duuid-31375131\x2df654\x2d4c0a\x2d9872\x2d0b321cbc258c.d
evice/start timed out.
Nov 13 09:03:40 szimszon-kili systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-31375131\x2df654\x2d4c0a\x2d9872\x2d0b321cbc258c.device.
Nov 13 09:03:40 szimszon-kili systemd[1]: Dependency failed for Cryptography Setup for sda4_crypt.
Nov 13 09:03:40 szimszon-kili systemd[1]: Dependency failed for dev-mapper-sda4_crypt.device.
Nov 13 09:03:40 szimszon-kili systemd[1]: Dependency failed for /dev/mapper/sda4_crypt.
Nov 13 09:03:40 szimszon-kili systemd[1]: dev-mapper-sda4_crypt.swap: Job dev-mapper-sda4_crypt.swap/start failed with result 'dependency'.
Nov 13 09:03:40 szimszon-kili systemd[1]: Startup finished in 18.577s (kernel) + 3min 1.120s (userspace) = 3min 55.153s.
Nov 13 09:03:40 szimszon-kili systemd[1]: dev-mapper-sda4_crypt.device: Job dev-mapper-sda4_crypt.device/start failed with result 'dependency'.
Nov 13 09:03:40 szimszon-kili systemd[1]: systemd-cryptsetup@sda4_crypt.service: Job systemd-cryptsetup@sda4_crypt.service/start failed with result 'dependency'.
Nov 13 09:03:40 szimszon-kili systemd[1]: dev-disk-by\x2duuid-31375131\x2df654\x2d4c0a\x2d9872\x2d0b321cbc258c.device: Job dev-disk-by\x2duuid-31375131\x2df654\x2d4c0a\x2d9872\x2d0b321cbc258c.d
evice/start failed with result 'timeout'.

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.