I have cloned my (perfectly running ) Endeavour installation to an USB disk of same size with “dd”. Original Endeavour is fully encrypted including grub. I also got hibernation running. Works like a charm.
I then put the cloned ssd into an external USB case.
I then attached the USB disk to another laptop (to avoind double UUIDs) and booted up from that disk. I had to enter the grub boot password. Grub is launching and showing the grub menu. But whatever I select then I always run into this error:
Not sure if this might help but perhaps you could boot up your EnOS live usb, mount and unlock partiotions on your cloned drive and check if the UUID for the swap device corresponds to the one in fstab.
Or just disable/remove swap/hibernation on the cloned system and see if it boots up correctly. You might need to this in chroot and rebuild initrd by running mkinitcpio.
I have no personal experience on this, but there is no luks2 hook. Could that matter?
I think it isn’t that easy to just clone an existing device to a usb drive and it just works.
Have you followed some online guide, or how did you come up of the proper procedure?
Anyway, you should explain/post how the original system was set up regarding encryption method. There are more than one approach IIRC.
yea I thought that, too at first. But as it’s a 1:1 clone from the working disk initramfs and all that should contain all that matters. I’ll just grab some more information and post it here.
Do you use a swapfile for hibernation?
Doesn’t it have to show in fstab?
I don’t have much experience with encryption, so sorry if this is irrelevant.
I just find the issue intriguing.
I added all drivers I found in dmesg when connecting the external disk to my laptop to the MODULES in /etc/mkinicpio.conf one by one and ran mkinitcpio -p linux. usb-storage other usb stuff, a realtek driver for the case, uas, …
About 10 approaches and now obviously have a maximum of modules in initramfs. The error still is the same.
I give up for now.
The disk is intended as a complete backup disk I can swap back int my laptop in case of a failure but I thought it would have been nice if I easily could have booted up from that disk without opening the case…
May be I’ll try another external USB box if nobody elase has an idea.
EDIT
one more thing I noticed when dropped to the shell during boot process. I could see in dmesg that all my drivers added to the modules section were loaded AND I could mount the “missing” luks device manually from there with cryptsetup luksopen … and a mount … after that.
that’s what I did. I tried both kernels (5.15… and the lts, with regular and fallback option)
the initram has been recreated with chroot and mkinitcpio while I added all the modules. I didn’t reinstall grub yet. But I have doubt that it will help as the boot process already has passed the grub part and scree displays the “Starting arch …” message. Something to the initramfs … No clue…