Reimage/Upgrade failure when having multiple partition encrypted using LUKS

ecarbonfiber

New Member
Joined
Jul 12, 2025
Messages
1
Reaction score
0
Credits
12
Hi,

I am on a custom distro which is based on RHEL9 with the root partition and a non-root partition encrypted. I am encrypting through the ks.cfg. When I try to do a reimage, I get the error:

Error: Expected exactly one lukshdr backup file, but found 2.

How do I resolve this issue?
 


this may be a bit off topic and may not answer your question but I have to ask it... Why are you encrypting the drives? You will find that encryption is usually not necessary and often causes far more problems than it causes. It does not stop hacking if that is what you are hoping for. It only prevents recovery of information from a drive being removed from the computer or the computer itself stolen. nothing else. So if you don't truly need encryption, then you can save yourself many headaches by not doing it.

Now to the problem, what are you using to image the drive in the first place? things like clonezilla or redo should image it in a way that when you write the image it is exact and not looking for anything special at all because it already has it. I think a little more information may help but keep in mind that encrypted stuff makes it far more difficult because encryption is made to foil doing exactly what you seem to be trying to do.
 


Follow Linux.org

Members online


Top