Re: Partition incorrectly identified as LUKS

Milan Broz <[email protected]> Thu, 11 Dec 2025 22:22:09 +0100
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
On 12/11/25 4:20 PM, Anthony Rossomano wrote:
> LUKS image is stored on XFS partition. When secondary LUKS signature
> winds up at one of the offsets checked by libblkid partition then we
> have the side effects of partition reported with crypto_LUKS fstype,
> no by-label link created by udev, mount requires fstype, etc
> 
> Don’t think that this has been addressed upstream but need to
> confirm.
LUKS2 metadata contains offset, so it is not possible to detect
it on a wrong offset.

If it is detected on partition (secondary LUKS2 header),
it probably means that partition was not properly wiped before reformat.
(wipefs -a should wipe both LUKS2 headers)

Anyway, without the reproducer image it is just guessing.

Milan