Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700470 - The LUKS device does not contain a LUKS header
Summary: The LUKS device does not contain a LUKS header
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2019-11-18 10:44 UTC by José Pekkarinen
Modified: 2019-11-18 11:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description José Pekkarinen 2019-11-18 10:44:13 UTC

I'm have a system with a sw raid for mirroring md0 that have
a luks device, and I'm trying to create a new md device to
boot from, md127, where to move the root of the system. I issued:

# mdadm --create --verbose /dev/md127 --level=0 --raid-devices=2 /dev/sda /dev/sdb
# cryptsetup luksFormat
# cryptsetup luksDump /dev/md127 
LUKS header information for /dev/md127

Version:       	1
Cipher name:   	aes
Cipher mode:   	xts-plain64
Hash spec:     	sha256
Payload offset:	4096
MK bits:       	512
MK digest:     	<digest>
MK salt:       	<salt>
MK iterations: 	178329
UUID:          	<UUID>

Key Slot 0: ENABLED
	Iterations:         	2837824
	Salt:               	<salt>
	Key material offset:	8
	AF stripes:            	4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED

Pointing grub to use this new device and rebooting, I expect it to
prompt the password of the luks, instead it complains saying the
device has no luks header. The may luks seems to be similar, though
using 256b instead of 512, forcing 256b in this makes no difference
cryptsetup in the initrd doesn't find it, and recreating the initrd
makes no difference.


Comment 1 José Pekkarinen 2019-11-18 11:03:08 UTC
From the initrd environment, the same luksDump reports:

# cryptsetup luksDump /dev/md127
Device /dev/md127 is not a valid LUKS device.

Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-18 11:11:31 UTC
This is not a support forum. Try our instead, or our mailing lists or IRC support channels.