Ubuntu drops to emergency mode after cloning LUKS-root to a new SSD — cryptsetup mapping not found
Environment
Desktop: Ubuntu 22.04 LTS, original boot drive (NVMe) cloned bit-for-bit to a second NVMe using dd; both NVMe present in system and boot order set to new NVMe; system uses LUKS-encrypted root with a separate /home LVM logical volume.
Symptoms
After moving the cloned drive into the machine and selecting the new NVMe in BIOS, boot process stops and systemd drops to emergency mode showing 'cryptsetup: couldn't find key for ...' and 'mount: mounting / on /dev/mapper/ubuntu--vg-root failed'.
Observations
From emergency shell: 'blkid' shows different UUIDs for the partitions compared to entries in /etc/crypttab and /etc/fstab. /etc/crypttab inside root filesystem (on the cloned drive) refers to original device UUIDs from the source disk. Running 'ls /dev/disk/by-uuid' shows the new NVMe partitions have new UUIDs (expected after cloning to a different device). update-initramfs was not run after cloning. cryptsetup luksOpen fails with 'No such device' for UUID listed in crypttab.
Already attempted
Attempted to edit /etc/crypttab and /etc/fstab from emergency shell to match new UUIDs, then run 'mount -a' — cannot because initramfs still expects original mapping. Booted from live USB, chrooted into cloned root, edited crypttab/fstab to match blkid output, ran 'update-initramfs -u' and 'grub-install' to the new NVMe. Rebooted — still drops into emergency mode with same cryptsetup error.
Question
After cloning an encrypted LUKS root to a different NVMe and updating crypttab/fstab, why does the system still fail to unlock the LUKS mapping during early initramfs, and which steps will reliably rebuild initramfs/boot so the cloned disk boots without requiring repair-mode intervention for each boot?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags