Encrypted home folder breaks swap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned |
Bug Description
This report it to narrow down what is apparently a pretty common bug.
I've done eight installs to cover the four normal variations with and without encrypting the home folder.
Every time the home folder is encrypted the new install has a broken swap. Each of the installs with a broken swap has a boot that includes the common error 'keys:Continue to wait, or press S to skip mounting, or M for manual recovery'.
1. LVM with encrypted home
- error on boot
2. LVM without encryption
- no error
3. LVM with LUKS with encrypted home
- error on boot
4. LVM with LUKS only
- no error
5. Standard install with encrypted home
- error on boot
6. Standard install without encryption
- no error
7. 'Something Else' with encrypted home
- error on boot
8. 'Something Else' without encryption
- no error
1 LVM with encrypted home
n@n-desktop ~ $ cat /etc/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/
# /boot was on /dev/sda1 during installation
UUID=1987f084-
/dev/mapper/
/dev/fd0 /media/floppy0 auto rw,user,
/dev/mapper/
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 814636 210616 10564 32356 476840
-/+ buffers/cache: 305440 719812
Swap: 0 0 0
n@n-desktop ~ $ cat /etc/crypttab
cryptswap1 UUID=8e2ff08e-
2 LVM without encryption
n@n-desktop ~ $ cat /etc/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/
# /boot was on /dev/sda1 during installation
UUID=17161e4d-
/dev/mapper/
/dev/fd0 /media/floppy0 auto rw,user,
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 682220 343032 10016 31856 350576
-/+ buffers/cache: 299788 725464
Swap: 1044476 0 1044476
3 LVM with LUKS with encrypted home
n@n-desktop ~ $ cat /etc/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/
# /boot was on /dev/sda1 during installation
UUID=6a2484bd-
/dev/mapper/
/dev/fd0 /media/floppy0 auto rw,user,
/dev/mapper/
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 772580 252672 8140 32932 473532
-/+ buffers/cache: 266116 759136
Swap: 0 0 0
n@n-desktop ~ $ cat /etc/crypttab
sda5_crypt UUID=13341fad-
cryptswap1 UUID=e6dd2a2c-
4 LVM with LUKS only
n@n-desktop ~ $ cat /etc/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/
# /boot was on /dev/sda1 during installation
UUID=48f71c64-
/dev/mapper/
/dev/fd0 /media/floppy0 auto rw,user,
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 636268 388984 7996 31404 348388
-/+ buffers/cache: 256476 768776
Swap: 1044476 0 1044476
n@n-desktop ~ $ cat /etc/crypttab
sda5_crypt UUID=fd926976-
5 Standard install with encrypted home
n@n-desktop ~ $ cat /etc/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>
# / was on /dev/sda1 during installation
UUID=a8c2c969-
# swap was on /dev/sda5 during installation
#UUID=903f17bc-
/dev/fd0 /media/floppy0 auto rw,user,
/dev/mapper/
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 772048 253204 8060 32700 471568
-/+ buffers/cache: 267780 757472
Swap: 0 0 0
n@n-desktop ~ $ cat /etc/crypttab
cryptswap1 UUID=903f17bc-
6 Standard install without encryption
n@n-desktop ~ $ cat /etc/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>
# / was on /dev/sda1 during installation
UUID=7e48d3f1-
# swap was on /dev/sda5 during installation
UUID=8f807608-
/dev/fd0 /media/floppy0 auto rw,user,
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 677036 348216 11048 31156 349308
-/+ buffers/cache: 296572 728680
Swap: 1045500 0 1045500
7 'Something Else' with encrypted home
n@n-desktop ~ $ cat /etc/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>
# / was on /dev/sda1 during installation
UUID=96b7d12c-
# /home was on /dev/sda6 during installation
UUID=d38974b2-
# swap was on /dev/sda5 during installation
#UUID=7c285bea-
/dev/fd0 /media/floppy0 auto rw,user,
/dev/mapper/
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 779732 245520 8164 35496 474924
-/+ buffers/cache: 269312 755940
Swap: 0 0 0
n@n-desktop ~ $ cat /etc/crypttab
cryptswap1 UUID=7c285bea-
8 'Something Else' without encryption
n@n-desktop ~ $ cat /etc/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>
# / was on /dev/sda1 during installation
UUID=76f4c186-
# /home was on /dev/sda6 during installation
UUID=f4e54f84-
# swap was on /dev/sda5 during installation
UUID=afed53bc-
/dev/fd0 /media/floppy0 auto rw,user,
n@n-desktop ~ $ free
total used free shared buffers cached
Mem: 1025252 676904 348348 8924 31572 347468
-/+ buffers/cache: 297864 727388
Swap: 975868 0 975868
Test box was
System: Host: gundam Kernel: 3.13.0-24-generic i686 (32 bit) Desktop: N/A Distro: Linux Mint 17 Qiana
Machine: Mobo: ASUSTeK model: P4R800-VM version: 1.02 Bios: American Megatrends version: 1007.003 date: 09/05/2005
CPU: Single core Intel Pentium 4 CPU (-HT-) cache: 1024 KB flags: (sse sse2 sse3)
Clock Speeds: 1: 2793.498 MHz 2: 2793.498 MHz
tags: | added: encryption home istaller swap |
tags: |
added: installer removed: istaller |
description: | updated |
Okay, I've now done the same eight installs on a different box, and using the 64bit Mate instead of 32bit. I got the same result:
Every time the home folder is encrypted the new install has a broken swap. Each of those boots includes the common error 'keys:Continue to wait, or press S to skip mounting, or M for manual recovery'.
1. LVM with encrypted home
- error on boot
2. LVM without encryption
- no error
3. LVM with LUKS with encrypted home
- error on boot
4. LVM with LUKS only
- no error
5. Standard install with encrypted home
- error on boot
6. Standard install without encryption
- no error
7. 'Something Else' with encrypted home
- error on boot
8. 'Something Else' without encryption
- no error
mint@mint ~ $ inxi -Fxz
System: Host: mint Kernel: 3.13.0-24-generic x86_64 (64 bit, gcc: 4.8.2) Desktop: N/A Distro: Linux Mint 17 Qiana
Machine: System: HP Pavilion 061 product: EL448AA-ABA a1310n version: 0nx1114RE101AMBEM00
Mobo: ASUSTek model: Amberine M version: 1.03 Bios: Phoenix version: 3.13 date: 11/15/2005
CPU: Single core AMD Athlon 64 3700+ (-UP-) cache: 1024 KB flags: (lm nx sse sse2 sse3) bmips: 1989.89 clocked at 1000.00 MHz
1. LVM with encrypted home
n@n-EL448AA- ABA-a1310n ~ $ cat /etc/fstab mint--vg- root / ext4 errors=remount-ro 0 1 d10c-4ebd- 93f1-440b3292d3 b4 /boot ext2 defaults 0 2 mint--vg- swap_1 none swap sw 0 0 noauto, exec,utf8 0 0 cryptswap1 none swap sw 0 0 ABA-a1310n ~ $ free ABA-a1310n ~ $ cat /etc/crypttab 06f4-48ef- b814-060c3c2d0a 69 /dev/urandom swap,cipher= aes-cbc- essiv:sha256
# /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/
# /boot was on /dev/sda1 during installation
UUID=cad4fe16-
/dev/mapper/
/dev/fd0 /media/floppy0 auto rw,user,
/dev/mapper/
n@n-EL448AA-
total used free shared buffers cached
Mem: 1983396 1024332 959064 8324 34152 551408
-/+ buffers/cache: 438772 1544624
Swap: 0 0 0
n@n-EL448AA-
cryptswap1 UUID=b0ba351e-
2. LVM without encryption
n@n-EL448AA- ABA-a1310n ~ $ cat /etc/fstab mint--vg- root / ext4 errors=remount-ro 0 1 7cc6-4793- bc7d-3e619ddd19 6e /boot ext2 defaults 0 2 mint--vg- swap_1 none swap sw 0 0 noauto, exec,utf8 0 0 ABA-a1310n ~ $ free
# /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/
# /boot was on /dev/sda1 during installation
UUID=6693c900-
/dev/mapper/
/dev/fd0 /media/floppy0 auto rw,user,
n@n-EL448AA-
...