RHEL 8.10 "Disk is still in use" error when converting LUKS2 to LUKS1

Posted on

I am trying to decrypt a LUKS volume for which I do not have the header file, so I can transfer it and reencrypt in a new system. To do this, I'm trying to convert down to LUKS1 and decrypt with cryptsetup. Whenever I attempt 'cryptsetup convert', I get a message that I cannot convert the volume as it is still in use.
The volume is not mounted - I have connected it as an external device in another Linux system (both an operational system and a live disk give the same error) and unlocked it with 'cryptsetup luksOpen' - but it still claims the device is in use. Neither 'mount' nor 'lsof' show anything using the device. fstab does not have an entry for the device so it should not automatically be in use.

What am I missing? I can see the device, but nothing should be using it, especially in a live disk environment. Thank you.

Responses