Re: Problem after converting to LUKS2

Milan Broz <[email protected]> Wed, 15 Nov 2023 16:04:53 +0100
Newsgroups dev.linux.lists.cryptsetup
Message-ID <[email protected]>
On 11/15/23 15:47, Anton Avramov wrote:
> Hi,
> 
> I have 3 partitions encrypted years ago with LUKS1.
> I've decided to migrate them to LUKS2 and the first 2 there was no
> problem, but the last I can open it anymore after the conversion.
> 
> I've been using key-files for all of them, so there is no wrong password
> input issue.
> 
> The bad think is I don't have a header backup before the conversion (Yes
> I know! Lessen learned!)

Users either do not read warnings or just ignore them... :-)

> I've tried different things like converting back to luks1 and header
> repair but to no avail.

And you tried this without backup too, I guess...

Which cryptsetup version was used for conversion?

> As a last resort I'm writing here for help. Is there anything I can try
> to at least read the partition?

Please post log from failing command (luksOpen?) with --debug option, so we can see what
is failing and what exact version (toolss, kernel) you are using.

It can be trivial issue, but also something that cannot be recovered - without
logs nobody can say what's the problem.

If some devices were converted correctly - what is the difference from the failing one?

Milan