# Cloning a Rocky disk image and restore to a new machine by using Clonezilla Live

**URL:** <https://forums.rockylinux.org/t/cloning-a-rocky-disk-image-and-restore-to-a-new-machine-by-using-clonezilla-live/12921>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [February 19, 2024, 10:42am UTC](https://forums.rockylinux.org/t/cloning-a-rocky-disk-image-and-restore-to-a-new-machine-by-using-clonezilla-live/12921 "2024-02-19T10:42:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![miko2050](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@miko2050](https://forums.rockylinux.org/u/miko2050)\
**Post date:** [February 19, 2024, 10:42am UTC](https://forums.rockylinux.org/t/cloning-a-rocky-disk-image-and-restore-to-a-new-machine-by-using-clonezilla-live/12921/1 "2024-02-19T10:42:33Z")

</div>

I am trying to backup my Rocky Linux 9 disk image and restore it to an other newer machine with same size SSD by using Clonezilla Live 3.0.3-22.

My Rocky 9 Linux was installed by default partition (divided into 3 partition: sda1 mounted to /boot/efi; sda2 mounted to /boot; sda3 there are 3 logic partitions such as: /, /home and swap)

```auto
[root@rocky9pg15m ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 238.5G 0 disk 
├─sda1 8:1 0 600M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 236.9G 0 part 
  ├─rl-root 253:0 0 70G 0 lvm /
  ├─rl-swap 253:1 0 7.8G 0 lvm [SWAP]
  └─rl-home 253:2 0 159.1G 0 lvm /home

```

When I use Clonezilla live to backup it’s disk image to my SSH server successfully.(follow instruction of [Restore disk image](https://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/02_Restore_disk_image))

But when I tried to restore it to my an other machine (similar hard ware and same disk size) from SSH server.

Restore step as:

```auto
English UTF-8
Keep default keyboard
Start Clonezilla
device-image
SSH_server ...........
use beginner mode
restoredisk
[restore to local disk] sda 256GB_MT-256
k0 - use the partition table from the image
yes, check the image before restore
[go .......]

```

The new machine only boot to emergency mode.

When I run lsblk I found some thing missing in that table:

```auto
[root@rocky9pg15m ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 238.5G 0 disk 
├─sda1 8:1 0 600M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 236.9G 0 part 
  ├─rl-root 253:0 0 70G 0 lvm /
  └─rl-swap 253:1 0 7.8G 0 lvm [SWAP]

```

if compare with original partition table, seems logic partition rl-home missed in the restored disk.

if we run command [journalctl -xb], we found there are quite few warning and error message popped up.

```auto
........
ACPI: NMI not connected to LINT 1!
........
MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details.
........
ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
........
device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
........
pmd_set_huge: Cannot satisfy [mem 0xf8000000-0xf8200000] with a huge-page mapping due to MTRR override
........
/dev/sda3 excluded: device is not in devices file
........
warning: no autoactivation for /dev/sda3: system.devices t10_ATA_______[origin disk label]____current t10_ATA _______ [new disk label] (??????seems disk label not match???????)
.......
dev-mapper-rl\x2dhome.device: Job dev-mapper-rl\x2dhome.device/start timed out
Timed out waiting for device /dev/mapper/rl-home
........
[other error related to /home]
........ 
Failed to get new runlevel, utmp update skipped.
........

```

Does any one have any idea about it? I mean clone a running Linux system to other new machine by using Clonezilla Live.

If any one do, please advise!

---

<div class="post-metadata">

**Author:** ![gregjok](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gregjok](https://forums.rockylinux.org/u/gregjok)\
**Post date:** [March 8, 2024, 1:40pm UTC](https://forums.rockylinux.org/t/cloning-a-rocky-disk-image-and-restore-to-a-new-machine-by-using-clonezilla-live/12921/2 "2024-03-08T13:40:21Z")

</div>

@miko2050 did you get any luck with your image restoration? Having the same problem using Rescuezilla. System getting stuck with error: Problem loading X.509 certificate -126 and booting into emergency mode. /home partition not present after restoring the image.

---

<div class="post-metadata">

**Author:** ![TwoXTwentyOne](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@TwoXTwentyOne](https://forums.rockylinux.org/u/TwoXTwentyOne)\
**Post date:** [March 16, 2024, 3:58pm UTC](https://forums.rockylinux.org/t/cloning-a-rocky-disk-image-and-restore-to-a-new-machine-by-using-clonezilla-live/12921/3 "2024-03-16T15:58:51Z")

</div>

If this helps try this:

1. Boot with a RL9 ISO, go to rescue mode
2. The Rescue environment will mount the file system to /mnt/systemroot
3. sudo chroot /mnt/sysemroot
4. dracut -f /boot/initframs-“ **your-kernel version here** ” “ **your kernel version here again** ”
5. Reboot

I created a VM to create a drive agnostic master image, once I tried to clone I kept messing up, the above saved it, it’s as if clonezilla does something to initramfs… On a VM the restore worked and on baremetal I had to do the above…

Once the fixed was applied, I cloned that OS and restored to other systems flawlessly.

---

<div class="post-metadata">

**Author:** ![mfaynberg](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mfaynberg](https://forums.rockylinux.org/u/mfaynberg)\
**Post date:** [May 5, 2024, 10:17pm UTC](https://forums.rockylinux.org/t/cloning-a-rocky-disk-image-and-restore-to-a-new-machine-by-using-clonezilla-live/12921/4 "2024-05-05T22:17:49Z")

</div>

Hello TwoXTwentyOne,  
sorry for the belated “thank you” - I am in a midst of a number of projects 😊 these days, or acually, these months.  
Thus thank you! However, being ashamed of my ignorance - I am totally new to the Linux world - I would like requesting you to elaborate giving me more detailed instructions.  
Given I now have two disks: the source, which boots and runs fine - and the clone, which does neither boot nor is visible when is inserted while the source disk-based system is running. My goal is clear: to make a clone as functional as the source is. Therefore, what is exactly I am supposed to do?  
You said:

1. Boot with a RL9 ISO - and that seems clear;
2. Go to rescue mode. This I suppose (did not check as of yet) it will give me the choice for what I would like to do - and I will have to choose “Rescue”;  
Now should I have a clone disck inserted at this time - or?  
Sorry for stupid questions but I have been fighting both Rescuezilla and clonezilla for almost two month (however intermittently) and cannot achieve my -seemingly pretty most usual goal.

Best regards,  
Mike

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [July 4, 2024, 10:18pm UTC](https://forums.rockylinux.org/t/cloning-a-rocky-disk-image-and-restore-to-a-new-machine-by-using-clonezilla-live/12921/5 "2024-07-04T22:18:37Z")

</div>

Closed on July 4, 2024, 10:18pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
