On 30/07/2019 08.57, Roger Oberholtzer wrote:
I have a user (openSUSE 12.3 - I know...) that wants to clone the root disk. In fact, long ago, they did this. But apparently both they and I have forgotten exactly what we did...
The disk copy went ok. dd the entire thing from one disk to another of the same type.
Are you sure you used: dd if=/dev/sda of=/dev/sdb or equivalent? Ie, the entire hard disk? If you did that, the IDs are also cloned and no need to mess with them. If you have to change the IDs, you cloned differently. How exactly, please?
We always mount by_id since there may be multiple disks. So, after the dd, one needs to mount the new disk and edit /etc/fstab with the new disk's ID. This has been done. The boot seems to then be looking for the correct disk.
However, the boot does not happen. It just hangs. The kernel command line is the only thing printed.
I do not have the disk in my possession (it's on a different continent). So, before I tell them to send it to me, I just want to be sure that I have not missed another step. Could there be a need to remake the initial ram disk? Is the disk id in there as well?
Certainly the initrd can have a copy of the old fstab. Also, there is grub, which has references to the old IDs.
If one has to do mkinitrd, how can one do that on a mounted disk (not the system's root disk)?
Or maybe it is something else?
First let's make sure that the IDs changed and why. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)