Discussion:
[dm-crypt] Stopped working.
Γιώργος Κωστόπουλος
2018-10-24 10:23:16 UTC
Permalink
Hi! :-)

Today, just out of the blue sky (without changing something) encrypted
swap stopped working.
It brings up an error message during boot (which I can't locate at
dmseg, probably another not related bug) and when the system starts,
there's no swap.

swapon -s returns nothing.

Trying to start it manually fails:
/etc/init.d/cryptdisks start
[....] Starting remaining crypto disks...[info] cswap (starting)...
[warn] cswap: the precheck for '/dev/sda6' failed: - The device
/dev/sda6 contains a filesystem type hfsplus. ... (warning).
[FAIL (failed)...failed.
done.

Maybe related to this: https://ubuntuforums.org/showthread.php?t=2197644 ?

PS. Seems a bit buggy to me. Or maybe the swap technology is to be blamed.
In any case, this project cries for documentation.
Having handy only the faq the rel notes and a man page which is far
from complete, is really difficult both to properly configure and to
troubleshoot it, when in need.

THANKS for all your help!!! ;-)
G.
Milan Broz
2018-10-24 12:14:15 UTC
Permalink
On 24/10/2018 12:23, Γιώργος Κωστόπουλος wrote:
...
Post by Γιώργος Κωστόπουλος
[warn] cswap: the precheck for '/dev/sda6' failed: - The device
/dev/sda6 contains a filesystem type hfsplus. ... (warning).
IIRC, the blockid check for hfs for too simple, and it detected
signature even on encrypted disk sometimes.

See
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/libblkid/src/superblocks/hfs.c?id=2b8ac985ba8a6e3aa374bdb5e3cf3268fc765609

New blkid should have it fixed.

I guess the script is just confused from this false detection.

m.

Loading...