[dm-crypt] Detached headers, multiple drives and UUIDs

Robert Nichols rnicholsNOSPAM at comcast.net
Mon Apr 10 23:29:20 CEST 2017

On 04/10/2017 03:53 PM, 7heo wrote:
> On Mon Apr 10 21:10:51 2017 GMT+0200, Milan Broz wrote:

>> And the activated device-mapper UUID is something else - it is constructed
>> as LUKS prefix plus LUKS header UUID plus activated name (then cannot
>> be the same).
> Then I have to try to fetch the device mapper again, because that was what caused all this. I assumed that the device-mapper UUID was directly derivated from the LUKS UUID.

The UUID reported by "blkid" and "lsblk -f" is _exactly_ the luksUUID. The UUID reported by "dmsetup info" is the luksUUID prefixed by "CRYPT-LUKS1-" and suffixed by "-{mapper_name}". If you leave the UUID the same, the output from "blkid" and "lsblk -f" will be confusing.

Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.

More information about the dm-crypt mailing list