/usr/share/doc/cryptsetup
NameSizeModeActions
examples/-0755rm
AUTHORS1370644editdlrm
changelog.Debian.gz20570644editdlrm
copyright87020644editdlrm
FAQ.gz434210644editdlrm
Keyring.txt27240644editdlrm
LUKS2-locking.txt27110644editdlrm
NEWS.Debian.gz10570644editdlrm
README.Debian.gz55170644editdlrm
README.debug27310644editdlrm
README.gnupg18480644editdlrm
README.gnupg-sc23480644editdlrm
README.keyctl35830644editdlrm
README.opensc.gz22760644editdlrm
v1.0.7-ReleaseNotes29210644editdlrm
v1.1.0-ReleaseNotes.gz22750644editdlrm
v1.1.1-ReleaseNotes17960644editdlrm
v1.1.2-ReleaseNotes15940644editdlrm
v1.1.3-ReleaseNotes4820644editdlrm
v1.2.0-ReleaseNotes.gz21240644editdlrm
v1.3.0-ReleaseNotes.gz21340644editdlrm
v1.3.1-ReleaseNotes4210644editdlrm
v1.4.0-ReleaseNotes.gz22530644editdlrm
v1.4.1-ReleaseNotes8890644editdlrm
v1.4.2-ReleaseNotes16300644editdlrm
v1.4.3-ReleaseNotes23590644editdlrm
v1.5.0-ReleaseNotes.gz33200644editdlrm
v1.5.1-ReleaseNotes12950644editdlrm
v1.6.0-ReleaseNotes.gz38180644editdlrm
v1.6.1-ReleaseNotes10410644editdlrm
v1.6.2-ReleaseNotes9850644editdlrm
v1.6.3-ReleaseNotes18590644editdlrm
v1.6.4-ReleaseNotes20360644editdlrm
v1.6.5-ReleaseNotes24790644editdlrm
v1.6.6-ReleaseNotes10930644editdlrm
v1.6.7-ReleaseNotes33330644editdlrm
v1.6.8-ReleaseNotes20610644editdlrm
v1.7.0-ReleaseNotes31010644editdlrm
v1.7.1-ReleaseNotes13710644editdlrm
v1.7.2-ReleaseNotes14870644editdlrm
v1.7.3-ReleaseNotes8110644editdlrm
v1.7.4-ReleaseNotes6570644editdlrm
v1.7.5-ReleaseNotes8330644editdlrm
v2.0.0-ReleaseNotes.gz97280644editdlrm
v2.0.1-ReleaseNotes.gz22260644editdlrm
v2.0.2-ReleaseNotes.gz19920644editdlrm
v2.0.3-ReleaseNotes.gz24480644editdlrm
v2.0.4-ReleaseNotes.gz23250644editdlrm
v2.0.5-ReleaseNotes.gz20680644editdlrm
v2.0.6-ReleaseNotes.gz19600644editdlrm
v2.1.0-ReleaseNotes.gz34840644editdlrm
v2.2.0-ReleaseNotes.gz45820644editdlrm
v2.2.1-ReleaseNotes14130644editdlrm
v2.2.2-ReleaseNotes21510644editdlrm
Edit: /usr/share/doc/cryptsetup/README.debug (2731B)
Debugging Cryptsetup issues =========================== Cryptsetup is responsible for unlocking dm-crypt devices. The cryptsetup Debian provide a whole slew of helper scripts that integrate cryptsetup into the Debian operating system. The most important ones are the `cryptdisks` init script and the `cryptroot` initramfs scripts, both implementing support for the `/etc/crypttab` configuration file and for automatic unlocking of encrypted devices during the boot process. This page collects information on debugging different features of the Debian cryptsetup packages in case of problems. Debug cryptroot initramfs script -------------------------------- In order to debug the cryptroot initramfs script during initramfs stage, the following steps are required: * Boot into the initramfs rescue shell by adding `break=premount` as kernel option during boot In grub, this can be done interactively from the grub boot menu: `` to edit, and `+` to boot once you've edited the kernel line. See for details. * Append `-x` to the shebang (first line) of cryptroot initramfs script: sed -i -e '1s,^#!/bin/sh,& -x,' /scripts/local-top/cryptroot * Run the cryptroot initramfs script manually, redirecting output to a log file: /scripts/local-top/cryptroot 2>&1 | tee /run/initramfs/cryptroot.debug **Please note:** if the boot process is broken, you might need to mount an external storage device (e.g. a USB flash drive) inside the initramfs and redirect the output to a log files on this external device. * Continue the boot process (by pressing `+`) and save a copy of the debug log file to `/run/initramfs/cryptroot.debug`. The content of `/run/` will be lost after reboot. Sometimes, debugging the initramfs directly can be helpful as well. See for details. Gather debugging information in the initramfs rescue shell ---------------------------------------------------------- Useful commands to gather information from initramfs rescue shell: * Check for device-mapper support (these directories/symlinks exist only if kernel has device-mapper support): ls -l /sys/class/misc/device-mapper /sys/devices/virtual/misc/device-mapper * Check whether dm-crypt kernel module is loaded: lsmod | grep dm-crypt * Display cryptroot configuration and list loaded kernel modules: cat /cryptroot/crypttab lsmod * Gather information about the available block devices: blkid ls -l /dev/disk/by-*/ -- Jonas Meurer , Wed 25 Dec 2019 02:58:00 PM CET