I'm trying to restore an image from a usb key to the first HDD (sda) of my workstation.
On the USB key, I setup the below configuration:
- Part 1 (fat): Clonezilla live files (clonezilla-live-2.5.2-31-amd64)
- Part 2 (ext2): Image files
I boot on the usb key afterlaunching Clonezilla, I choose:
-device-device
-disk_to_local_disk
then, I select my source disk, which is the second partition on my USB stick containing clonezilla image.
I choose the target disk: sda.
I skiped checking /repairing source file system.
I launched the restore.
when it tries to create the partition on hte target machine, I got the following message:
/usr/sbin/ocs-onthefly: line328: /usr/bin/dirname : Intpu/Output error
grep: /tgt-pt.parted: no such file or directory
(standard_in) 1: syntax error
Disk() size from image not found.
Program terminated!!
"ocs-live-general" finished with error!
in case of: previously, I used to restore this image thru the network and it worked well..
Where did I do make a mistake?
Did anybody already face this error? How can I work around this problem?
thanks in advance for you help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Steven,
after some trials, it appears that the issue "came" from my USB key.
in order to map my second partition where is located the image to restore (source folder), I had to unplug my USB stick otherwise Clonezilla does not see it. it made a mess, Clonezilla was lost..
as alternative I mounted manually my second partition with /home/partimag before saving and it seems working well.
I would like to avoid this workaround. do you have any suggestions to have the second partition recognized?
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys,
I'm trying to restore an image from a usb key to the first HDD (sda) of my workstation.
On the USB key, I setup the below configuration:
- Part 1 (fat): Clonezilla live files (clonezilla-live-2.5.2-31-amd64)
- Part 2 (ext2): Image files
I boot on the usb key afterlaunching Clonezilla, I choose:
-device-device
-disk_to_local_disk
then, I select my source disk, which is the second partition on my USB stick containing clonezilla image.
I choose the target disk: sda.
I skiped checking /repairing source file system.
I launched the restore.
when it tries to create the partition on hte target machine, I got the following message:
/usr/sbin/ocs-onthefly: line328: /usr/bin/dirname : Intpu/Output error
grep: /tgt-pt.parted: no such file or directory
(standard_in) 1: syntax error
Disk() size from image not found.
Program terminated!!
"ocs-live-general" finished with error!
in case of: previously, I used to restore this image thru the network and it worked well..
Where did I do make a mistake?
Did anybody already face this error? How can I work around this problem?
thanks in advance for you help!
" Intpu/Output error" -> Is this hardware issue?
Are you able to reproduce this issue on different hardware?
Steven
Hi Steven,
after some trials, it appears that the issue "came" from my USB key.
in order to map my second partition where is located the image to restore (source folder), I had to unplug my USB stick otherwise Clonezilla does not see it. it made a mess, Clonezilla was lost..
as alternative I mounted manually my second partition with /home/partimag before saving and it seems working well.
I would like to avoid this workaround. do you have any suggestions to have the second partition recognized?
thanks!
You can not just unplug it, instead you should use the "To RAM" mode to boot Clonezilla live:
http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/01_Save_disk_image/01-clonezilla-boot-menu.doc#01-clonezilla-boot-menu.doc
Then mount the partition you want to use as the image repository as /home/partimag.
Steven