I saved two disks into a single image. Now I want to restore one disk. When I chose the disk to restore it is labelled as sdb. But in the image the partitions associated with that disk are labelled sda1, sda2, sda3. When CloneZilla presents the command to restore it shows me a command restoring to the wrong disk (the disks are of different size so it is easy to spot this). How can I deal with this situation - a multi-disk image and restoring one of those disks to a disk with a different location e.g. sda instead of sdb?
Is there a simple way to convery the multi-disk image into multiple single disk images?
As a fist time user of CloneZilla I hope this feedback might be useful: in the beginner mode I do not think the software should support multiple disks to one image. It seems to make things more confusing for restoring. A beginner would probably be better off with a simple mapping of one image per disk. I wish I had taken that approach now :)
Thanks for any help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually it can be done, Just need some manual editing
I suggest you backup the image first, and follow the steps:
1. cd /home/partimag/
2. cp -a original-img one-disk-img
3. cd /home/partimag/one-disk-img
4. Run the command "ls -l", then you should be able to see the files list. Say if you want to restore sdb, then you should remove the sda-related files, e.g.,
sda-*
5. edit the file "disk" and "parts", just keep the disk and partitions you want.
6. Now the image /home/partimag/one-disk-img should be ready for you to restore it.
7. In the above steps, I did not mention LVM or RAID related device. It's more complicated if you have that.
//NOTE// Do remember to backup the original image before you hack the image.
Steven
❤️
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I saved two disks into a single image. Now I want to restore one disk. When I chose the disk to restore it is labelled as sdb. But in the image the partitions associated with that disk are labelled sda1, sda2, sda3. When CloneZilla presents the command to restore it shows me a command restoring to the wrong disk (the disks are of different size so it is easy to spot this). How can I deal with this situation - a multi-disk image and restoring one of those disks to a disk with a different location e.g. sda instead of sdb?
Is there a simple way to convery the multi-disk image into multiple single disk images?
As a fist time user of CloneZilla I hope this feedback might be useful: in the beginner mode I do not think the software should support multiple disks to one image. It seems to make things more confusing for restoring. A beginner would probably be better off with a simple mapping of one image per disk. I wish I had taken that approach now :)
Thanks for any help!
Actually it can be done, Just need some manual editing
I suggest you backup the image first, and follow the steps:
1. cd /home/partimag/
2. cp -a original-img one-disk-img
3. cd /home/partimag/one-disk-img
4. Run the command "ls -l", then you should be able to see the files list. Say if you want to restore sdb, then you should remove the sda-related files, e.g.,
sda-*
5. edit the file "disk" and "parts", just keep the disk and partitions you want.
6. Now the image /home/partimag/one-disk-img should be ready for you to restore it.
7. In the above steps, I did not mention LVM or RAID related device. It's more complicated if you have that.
//NOTE// Do remember to backup the original image before you hack the image.
Steven