The image was saved from more than 1 disk. To restore the image to different disk names is not supported for more than 1 disk! Only the same disk name will work! We will not create a temp image here! On the other hand, you can try the command cnvt-ocs-dev to convert the image.
Once again, this is an image that was backed up from multiple disks, and I want to restore the image contents back to their respective disks. Is this possible?
Last edit: Christian Craven 2021-03-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
However, it can not be restored to sda and nvme0n1, for example.
Yes, one of the drives is an NVMe (nvme0n1). Since the image is from both nvme0n1 and sda, how would I convert the output image using cnvt-ocs-dev? It's not clear to me from the guide.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So what devices did you save the image? sda and sdb? and you want to restore it to sda and nvme0n1?
Anyway, say the image was saved from sda and sdb, and its name is "2021-03-28-05-img-2disks", located in /home/partimag. Then you can use this command:
cnvt-ocs-dev 2021-03-28-05-img-2disks sdb nvme0n1
(Just convert one device)
It will convert the the image from the devices "sda and sdb" to "sda and nvme0n1".
//NOTE// It's recommended to backup the image first. Just in case.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just follow the docs here: https://clonezilla.org/clonezilla-live-doc.php
Use savedisk mode to save the image for your sda and nvme0n1 disks, and restoredisk mode to restore the image to those two disks.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am no expert here, but it seems to me that this is a real issue that should be fixed. In my previous uses of Clonezilla, and in my current use... this is an ongoing failure of Clonezilla.
I have made a copy of multiple partitions, from 2 disks. I am now trying to restore 1 partition (necessarily from 1 disk!) to its original location. (Actually, MacOS DiskUtil erased the partition for no good reason, and it is now sda11 instead of sda1, but this has been true regardless.)
* If there is some technical reason why Clonezilla balks at this... I can imagine no reason why it could not be improved, to be able to restore 1 partition to its original location, in spite of there being other partitions (from another disk) in the image. If there is no* technical reason why it can not restore 1 partition in situ -- which seems to me to be the case... it would be good to fix this, please.
In the past, I have "fixed" this by editing the record-keeping inside the image, so that it thinks there is only 1 disk involved. Again... I can not see why Clonezilla can not simply ignore the fact that there are other partitions in the image, that it is not currently concerned with.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
BTW... as far as I am concerned, allowing me to create a handle, and then showing my real name against my posts, is false advertising. What on Earth is a handle for, if not to be used as a handle??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I regret to learn this is still an issue. I'm very thankful to @steven_shiau for writing this great piece of free/libre software, but being able to restore an image to both an nvme & sdx device at the same time would be a huge quality life improvement for modern systems where the common configuration is to have both types of devices. I'm still actually very interested in being able to do this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As the title says. I cloned 2 disks into a single image, and am trying to restore the 2 same disks with said image via 1-2mdisks. This is what I get:
Why could this be? Isn't the whole point of 1-2mdisks that I should able to do this?
Last edit: Christian Craven 2021-03-23
No, 1-2mdisks means one image restoring to multiple disks, e.g.,
https://drbl.org/screenshot/?op=show&filepath=album//12_Alvin_Su_Taiwan/dsc00894.jpg
What you need is to use "restoredisk". Choose the image and the destination disks.
Steven
'restoredisks' yields
Once again, this is an image that was backed up from multiple disks, and I want to restore the image contents back to their respective disks. Is this possible?
Last edit: Christian Craven 2021-03-25
Yes, if the image was saved using "savedisk" mode from, say sda and sdb, then it can be restored to sda and sdb simultaneously using "restoredisk" mode.
However, it can not be restored to sda and nvme0n1, for example. You might be able to use this to convert the image:
https://drbl.org/management/techrpt.php?c=cnvt-ocs-dev&t=To%20change%20the%20device%20name%20in%20saved%20clonezilla%20image
Steven
Yes, one of the drives is an NVMe (nvme0n1). Since the image is from both nvme0n1 and sda, how would I convert the output image using cnvt-ocs-dev? It's not clear to me from the guide.
So what devices did you save the image? sda and sdb? and you want to restore it to sda and nvme0n1?
Anyway, say the image was saved from sda and sdb, and its name is "2021-03-28-05-img-2disks", located in /home/partimag. Then you can use this command:
cnvt-ocs-dev 2021-03-28-05-img-2disks sdb nvme0n1
(Just convert one device)
It will convert the the image from the devices "sda and sdb" to "sda and nvme0n1".
//NOTE// It's recommended to backup the image first. Just in case.
Steven
What I want is to save nvme0n1 and sda into an image, and then restore their respective contents from the image back to nvme0n1 and sda.
Last edit: Christian Craven 2021-03-28
Just follow the docs here:
https://clonezilla.org/clonezilla-live-doc.php
Use savedisk mode to save the image for your sda and nvme0n1 disks, and restoredisk mode to restore the image to those two disks.
Steven
I am no expert here, but it seems to me that this is a real issue that should be fixed. In my previous uses of Clonezilla, and in my current use... this is an ongoing failure of Clonezilla.
I have made a copy of multiple partitions, from 2 disks. I am now trying to restore 1 partition (necessarily from 1 disk!) to its original location. (Actually, MacOS DiskUtil erased the partition for no good reason, and it is now sda11 instead of sda1, but this has been true regardless.)
* If there is some technical reason why Clonezilla balks at this... I can imagine no reason why it could not be improved, to be able to restore 1 partition to its original location, in spite of there being other partitions (from another disk) in the image.
If there is no* technical reason why it can not restore 1 partition in situ -- which seems to me to be the case... it would be good to fix this, please.
In the past, I have "fixed" this by editing the record-keeping inside the image, so that it thinks there is only 1 disk involved. Again... I can not see why Clonezilla can not simply ignore the fact that there are other partitions in the image, that it is not currently concerned with.
BTW... as far as I am concerned, allowing me to create a handle, and then showing my real name against my posts, is false advertising. What on Earth is a handle for, if not to be used as a handle??
I regret to learn this is still an issue. I'm very thankful to @steven_shiau for writing this great piece of free/libre software, but being able to restore an image to both an nvme & sdx device at the same time would be a huge quality life improvement for modern systems where the common configuration is to have both types of devices. I'm still actually very interested in being able to do this.
"being able to restore an image to both an nvme & sdx device" -> What did you mean by this?
Do you want to restore the image to nvme disk first, then restore it to anther sdx disk?
Or do you want to run it simultaneously?
Anyhow, when you do that, please use us know the green command, e.g.,
https://clonezilla.org/clonezilla-live/doc/02_Restore_disk_image/images/ocs-10-5-img-restore-command-prompt.png
and the file list in your image dir by running "ls -l /home/partimag/MYIMG", as shown here as an example:
https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/02_Restore_disk_image
BTW, what were the error messages shown on the screen when you encounter the issue?
Steven