I have an old PC which has two internal hard drives of 80GB in a mdadm
RAID1 configuration with LVM on top of it.
I wanted to migrate this PC to a virtual machine, so I booted both, the PC and the VM, with Clonezilla and cloned both disks into two separate disk images on the VM.
First, it seems like the VM loads the bootloader, but then stops showing the error "Gave up waiting for the root device" and "ALERT! /dev/mapper/system-root does not exist."
It then presents an initramfs shell where I can run various commands such as blkid
or mdadm
. Interestingly, blkid
does not list any disks, but when I boot the VM with Clonezilla or Gparted, I can see both disks.
I assume that for some reason, the LVM or the mdadm RAID gets corrupted when the clone is created, so I wonder whether it would be possible to clone those disks?
Would it make sense to try the clone with dd
?
update-grub
if you do this – roaima Jun 15 '20 at 8:43