Menu

Problems restoring image

Help
2020-11-15
2020-12-05
  • Gerrit Kiel

    Gerrit Kiel - 2020-11-15

    Hello,
    I have a problem restoring a part of an image. I create one image of partions sda and sdb on sdc. Now I want only sda being restored on a new partion sdd. Size is not a problem sdd has dpuble the size of sda. When trying I get an error message like ... "Image was taken from more than one disk and therefor nothing will be done" (something like this) I tried expert mode and that didn't help either. How can I restore the partion on a different one?

    Regards,
    Gerrit

     
  • Steven Shiau

    Steven Shiau - 2020-11-25

    Which version of Clonezilla live did you use? Let me know the Clonezilla live file name you have downloaded so that I can try to reproduce this issue here.

    Steven

     
  • Gerrit Kiel

    Gerrit Kiel - 2020-11-25

    I am using version 2.6.7-28.amd64
    I cannot tell you the filename because I've already deleted it. It was from Nov, 1 or a few days before

    Gerrit

     
  • Steven Shiau

    Steven Shiau - 2020-11-25

    OK, so your image was taken from sda and sdb, but you want to restore to sdd1. You have successfully used cnvt-ocs-dev to convert the image to be used for sdd, and it worked. Later it failed... This does not make sense... It should work again. Do you use the converted image to restore that?

    Steven

     
  • Gerrit Kiel

    Gerrit Kiel - 2020-12-01

    Yes, that is what I have done. Actually I only want to restore sda to sdd cause /home was on sda. Yes, I converted the image and when it comes to the selection what I want to restore I don't have sda anymore, only sdb and sdd. From the error message I would asume if I mark bot everything would work, but I don't want to overwrite sdb with the old computing system. sda and sba are two physical harddrives and not only partitions of one physical hd.
    No, the coversion command worked. No retore attempt ever worked if I only mark one (sda or at this time sdb) to be restored. Once I made the mistake to mark both (sda and sdb) and clonezilla actually started to restore. I was fast enough to turn my computer off so nothing actually was overwritten.
    I think the problen is that I saved two physical hds and now I only want to restore one and clonezilla can't handle this

    Gerrit

     
  • Steven Shiau

    Steven Shiau - 2020-12-02

    If your disk space is enough, you can make an image containing one disk only based on the image with 2 disks. E.g., you just want to keep sda, remove sdb:
    1. sudo -i
    2. cd /home/partimag
    3. cp -a image-2-disks image-1-disk
    4. cd image-1-disk
    5. remove the file names related to sdb, if you want to keep only sda, e.g.,
    rm -f sdb*
    6. edit the file "disk" and "parts". Keep only sda-related. You can use vi or nano to do that.
    Once this is done, the image image-1-disk containing only one disk.
    Of course, you can also use softlink to link those big files in the image dir image-1-disk from image-2-disks. Then this does not need big space to make an image.
    //NOTE// It's recommended to backup image file first in another disk. Just in case.
    Ref: https://www.mdpi.com/2076-3417/8/6/965

    Steven

     
  • Gerrit Kiel

    Gerrit Kiel - 2020-12-05

    Hi Steven,

    thanks for your help. I was able to restore the part of the image I needed now.

    Gerrit

     
    👍
    1

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.