--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: bugs.debian.org: Encrypted partition not accessible after resume
- From: Garjola Dindi <garjola@garjola.net>
- Date: Wed, 31 May 2017 21:34:59 +0200
- Message-id: <149625929989.17741.10629145325248715768.reportbug@pc-117-162.ups-tlse.fr>
Package: bugs.debian.org
Severity: serious
Justification: 4
Dear Maintainer,
Hi,
I am using Debian Stretch on a laptop with a HDD (/dev/sda) and an SSD (/dev/sdd). My swap and home partitions are encrypted with lvm. The ouput of lsblk is:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 243M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 931.3G 0 part
└─sda5_crypt 254:0 0 931.3G 0 crypt
├─pc--117--162--vg-root 254:1 0 893.6G 0 lvm /home
└─pc--117--162--vg-swap_1 254:2 0 37.7G 0 lvm [SWAP]
sdb 8:16 0 477G 0 disk
└─sdb1 8:17 0 477G 0 part /
For several weeks now I have been having issues after resume (both from RAM or from disk): my /home seems not to be accessible (at least for writing). This does not happen every time, but more something like once every 10 or 20 resume cycles.
At first, I thought this was related to an initramfs-tools (0.129) update where it was mentioned that the RESUME variable had to be set in the configuration, but this should only affect resuming from disk. I however tried to set this to different values (the /dev/XXX, auto, none) but nothing changes with my issue.
Since I also have a warning at boot time saying "Failing to connect to lvmetad" I set use_lvmetad = 0 in /etc/lvm/lvm.conf. Again, nothing changes.
My /etc/crypttab reads as follows:
sda5_crypt UUID=11a52b25-26f4-41ae-b52e-2aa5d0a4d35d none luks
which seems OK since
ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 May 31 10:45 11a52b25-26f4-41ae-b52e-2aa5d0a4d35d -> ../../sda5
lrwxrwxrwx 1 root root 10 May 31 10:45 136599d4-9b3b-4a74-a0dc-6bc48fb227f3 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 31 10:45 2b70ec10-751f-4670-8000-1c59d7307f29 -> ../../dm-2
lrwxrwxrwx 1 root root 10 May 31 10:45 98ae6177-1de0-4af2-b905-687df457f1ca -> ../../sdb1
lrwxrwxrwx 1 root root 10 May 31 10:45 d3415b5d-e1fe-4ce6-98c8-a8645f358524 -> ../../dm-1
Thanks
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64
(x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--- End Message ---