[dm-crypt] Determining which slot was used to unlock a LUKS device

Milan Broz gmazyland at gmail.com
Thu Dec 22 08:41:12 CET 2016


On 12/21/2016 10:53 PM, Kamran Khan wrote:
> Is it possible to figure out which slot was used to unlock a LUKS device?

Only during unlocking - add verbose option (-v) to the command, it should print:
Key slot X unlocked.

After this command this information is no longer available.

What is the problem you are trying to solve?


> ("cryptsetup status" shows dm-crypt level information, nothing LUKS
> related yet.)

Because here it is only dm-crypt (in-kernel) device info, the information displayed
is the same as for a plain dm-crypt device.

Milan


More information about the dm-crypt mailing list