Need help restoring OS after disaster recovery

After a catastrophic failure, I updated my motherboard and cpu from zen 1 to zen 3.
However, I never considered the fact that the new hardware might not be recognized by the Tumbleweed OS, that existed on the machine prior to the failure, and not be able to boot.

Is there any way (other than a fresh install) I can get the my system up and running using the existing disks I have?

I have 2 NVME M.2 disks that continue the information I would like to restore.
The pc recognizes the 2 disks but puts me into “emergency mode” and that gives me a command line interface as admin.

I use UEFI, both disks are encrypted and the OS is Tumbleweed (last updated about 1 month ago).

Disk1 is the boot disk and has an 2 unencrypted partitions, /boot/efi, and /boot the remainder of the disk is LVM on LUKS and contains 3 logical volumes /, /home, and swap.

Disk2 is fully encrypted LVM on LUKS and is unlocked using key file from Disk 1.

Hard to know on such little information.

Can you boot the installer (NET installer or DVD installer) to rescue mode?

If you can, then try mounting your root partition to “/mnt”

After that:


mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
mount -a ## mount anything else needed
mkinitrd
exit

If all goes well, reboot and see if it has solved the problem.

If there is an error on that “mount -a” then you might need to adjust “/etc/fstab” and perhaps “/etc/crypttab” if using crypto.

Otherwise the main point is to rebuild the “initrd” so that it fits the new hardware.

Tested my installed systems (Tumbleweed, Leap and others) by moving the drives between different boxes with different CPUs, main boards and memory sticks. This worked well for all systems. Needed to reinstall grub only. EFI needs to know about grub. Run grub-install, update-bootloader and everything is fine again.

Thank you, nrickert and karlmistelberger. :slight_smile:

I ran “mkinitrd” rebooted and had my machine up and running with both disks accessible.

It’s good to hear that you managed to recover. And thanks for reporting back.