I tried removing LUKS encryption on my home directory using the following command:
cryptsetup luksRemoveKey /dev/mapper/luks-3fd5-235-26-2625-2456f-4353fgdgd
But it gives me an error saying:
Device /dev/mapper/luks-3fd5-235-26-2625-2456f-4353fgdgd is not a
valid LUKS device.
Puzzled, I tried the following:
cryptsetup status luks-3fd5-235-26-2625-2456f-4353fgdgd
And it says:
/dev/mapper/luks-3fd5-235-26-2625-2456f-4353fgdgd is active and is in use.
type: LUKS1
cipher: ...
It seems the encrypted device is active, but not valid. What could be wrong here?
Best Answer
cryptsetup luksRemoveKey
would only remove an encryption key if you had more than one. The encryption would still be there.The Fedora Installation_Guide Section C.5.3 explains how
luksRemoveKey
works.That it's "impossible" to remove the encryption while keeping the contents is just an educated guess. I base that on two things: