I am trying to create a fully functional clone of my Linux system's hard drive - meaning I would be able to replace the original hard drive with a clone, boot from it and continue using it. I have used Rescuezilla and Clonezilla, both of which offer the disk-to-disk cloning option, but both clones - despite the cloning procedure completed successfully - fail to boot taking me to the emergency mode thus making both clones unusable :( I'm running the Rocky Linux 9.2 with KVM hosting a guest OS. I gathered some info from both the source disk:
and the cloned disk:
I do not see any difference there, but given I am new to the Linux world I could have missed some important detail.
I will be extremely grateful for any help resolving this problem.
Thank you everyone!
Mike
To answer telcoM:
Hello telcoM, and thank you so much for your explanations. I am sorry in advance for my ignorance, because like I mentioned I am totally new to the Linux world. Anyway, even though I do not have a direct access to the server now I can answer some assumptions and clarify some points as well.
- You are right: there are no other OSs on this disk (except for the virtual machine-residing guest, which is not bootable certainly) - and no other OS is planned, therefore I am not interested in multibooting;
- I believe NVRAM is not a reason here because I was trying so far to replace the original disk with the clone in the same computer, thus it is the same;
- The source disk - at least (like I said I have no access to the clone as of now) already contains the /boot/efi/EFI/BOOT/BOOTX64.efi - that is I do not need to place it there;
- I did not have both disks inserted at the same time (I tried it first time I ran cloning, but no more :)) The screenshots were taken in succession: one in the rescue mode having the clone disk inserted, while the second - after I reinserted the original drive and rebooted the system. Would you recommend anything else to check/do? I greatly appreciate you help as well as anyone else's! Mike
fdisk -lagainst both? My theory is that the cloning software chose to partition the new disk MBR instead of GPT.journalctl -bin emergency mode, does it indicate what is failing?/dev/sdb1. The rescue mode has successfully mounted all the filesystems listed in your/etc/fstab, so there should be no missing filesystems nor LVM activation issues. I'm afraid your original system disk may have had some unrelated problem waiting for to become obvious on reboot, and now the clone has it too.