I have attempted to restore my external timeshift snapshot of my system to a new and empty drive using the following steps:
- Install Manjaro KDE on btrfs, with luks encrytion (same as snapshot)
- Start system and restore snapshot (from external drive)
This was a bit of a naive approach and would never have worked in the first place. Now I was getting the following error while booting the system:
error: no such cryptodisk found, perhaps a needed disk or cryptodisk module is not loaded.
error: disk âcryptouuid/844[âŠ]â not found.
Entering rescue modeâŠ
Noting that the cyptouuid was the one from the snapshot and not the freshly installed system, that I restored it to.
My problem is similar to this this and this forum post, but only at first glance.
My idea was, that I try to save all the files, that were important to the new system before the restore, than restore the snapshot and afterwards overwrite the saved files. (because the snapshot also restores the old crypto_keyfile.bin for example, which can only open its associated drive)
Files that I saved:
- /crypto_keyfile.bin
- /etc/crypttab
- /etc/fstab
- /etc/default/grub
So I did install Manjaro again and copied all the files to an external drive, restored the snapshot and overwrote these files.
After that, I went with a live USB to chroot this system to update-grub
and run the following command: mkinitcpio -P
Now I checked, that the old cryptouuid (844[âŠ]) was nowhere to be found (at least where I searched) and had been replaced by the cryptouuid of the installed system.
But the error still remains the same.
I know that timeshift snapshots are technically not designed to work in this way, but they contain all the files that are needed to setup a new system.
If you have any idea how to fix my situation, or how to restore a timeshift snapshot (with luks encryption) on a new system/drive, please share your thoughts under this topic.
Thank you very much