Menu

Restoring Multi-Disk Image to multiple disks

Remo Pini
2018-02-20
2018-02-28
  • Remo Pini

    Remo Pini - 2018-02-20

    I created an image of two disks in a machine (sda, sdc) to ONE image on a remote drive. This worked fine.

    I now want to restore said image to a new machine (the old one went up in smoke), but the drives in the new machine are differnt.

    Here's what I need to happen:

    sda(img) -> sdb(machine)
    sdc(img) -> sda(machine)

    I did google around quite a bit, but whatever I try to restore that image, I can't seem to find an option to remap that image or to do one disk at a time.

    What am I missing?

     
  • Arthur Tromp

    Arthur Tromp - 2018-02-22

    Well, there is a command cnvt-ocs-dev which can be used to change the device name in an image. However, I'm not sure if that command will work for an image created from two drives. So if you have enough diskspace, I would make a copy of the image first before starting to experiment with this command.

    Information of the command can be found here: https://drbl.org/management/techrpt.php?c=cnvt-ocs-dev&t=To%20change%20the%20device%20name%20in%20saved%20clonezilla%20image

    So in your case your could try to rename de device names as folows (commands will have to be run as root, or you could use sudo):

    cnvt-ocs-dev -d /home/partimag <imagename> sda sdb
    cnvt-ocs-dev -d /home/partimag <imagename> sdc sda
    

    Make sure to use the above order, because if you rename sdc to sda first (while there already is a sda device) you will probably have a problem.

    I hope this helps, but no guarantee.

     
  • Remo Pini

    Remo Pini - 2018-02-22

    Tried that, it now doesn't recognize that folder as a valid image. Did a copy, so no problem. I managed to change the disk names in the target system to match those of the backup, but now I get "The image was saved from more than 1 disk. This program can only deal with the image taken from one disk.". I'll keep researching WTF Clonezilla is doing here :)

     
  • Remo Pini

    Remo Pini - 2018-02-22

    It seems that restoring a image containing TWO disks to a machine containing TWO disks is pretty much impossible... -.-

     
  • Arthur Tromp

    Arthur Tromp - 2018-02-28

    Just did a quick test with a VirtualBox VM containing two empty diskdrives. Could make a single image of both disks and restore that image on the same disks without a problem. I also could restore the disks one at a time. So it should work. No idea why it isn't working at your end, though.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.