cryptsetup silently fails in live environment when given a raw "bcached" block device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bcache-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
cryptsetup (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
When attempting to acccess an existing (working) LUKS partition from the LiveCD environment, cryptsetup fails silently. No exceptions are thrown, no errors displayed. The LUKS device remains completely inaccessible.
I've attached an strace with the following two commands, "cryptsetup luksDump /dev/sda3", and "cryptsetup luksOpen /dev/sda3 crypted" as there was nothing in the logs that clearly point to a problem other than the expected result being missing.
lsb-release:
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
#uname -a
Linux ubuntu 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cryptsetup 2:2.0.2-1ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CasperVersion: 1.394
Date: Wed Jan 2 03:56:27 2019
LiveMediaBuild: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)
cmdline: BOOT_IMAGE=
crypttab: # <target name> <source device> <key file> <options>
fstab:
overlay / overlay rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
Additional Information:
gdisk shows the partition type as FFFF, the drive (sda3) boots and runs without issue. Cryptsetup however; cannot access it after boot but it does properly mount and run the contents of the encrypted partition (i.e. root drive).
The drive was originally set up following the instructions found at the link below with the intention being to resize the encrypted portion later (expand) via a livecd.
https:/ /askubuntu. com/questions/ 620480/ how-to- install- ubuntu- with-both- disk-encryption -and-ssd- caching