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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
You can use this command to convert the image to different device name:
https://drbl.org/management/techrpt.php?c=cnvt-ocs-dev&t=To%20change%20the%20device%20name%20in%20saved%20clonezilla%20image
Steven
Hi Steven,
I used the command and it worked. I tried to restore again, but it failed. I am adding the photos of each step I've done
Gerrit
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
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
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
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
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
Hi Steven,
thanks for your help. I was able to restore the part of the image I needed now.
Gerrit