hi I'm Narendra.
I am using Clonezilla live (version2.6.1) I wanted to restore the image from my on Pendrive to multiple pen drives. But this thing I want to do in Unattended/automatic mode. for that purpose, I have created one Pendrive which have 2 partitions. One contains Clonezilla bootable and another contains Image(which I want to restore on multiple pen drives) And by using this pendrive i want to restore image on multiple pendrives at one time.
My problem is When i restore the image using this pendrive in manual mode (i.e without script) 1-2m disk option works well .But when i edit grub file to restore the same image it gives error regarding directory mounting.
Edited part of my grub file is as below:
menuentry "Electronica Pendrive Image Restoration"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset locales= keyboard-layouts=NONE ocs_prerun="mount /dev/sdb5 /home/partimag" ocs_live_run="ocs-restore-mdisks --batch -p -g auto -e1 auto -e2 -r -j2 -p true MAST_IMG_PENDRIVE sda sdd sde sdc" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=788 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
sdb5 is my pendrive and sda ,sdc,sdd,sde are the pendrives where i want to restore my image.In unattended mode
Error Obtained: the directory /home/partimag/auto for inputed name does not exits!
help me to restor image in unattended mode
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello steven,
I have one doubt regarding the command , If i have mentioned sda , sdc , sdd,sde in the command and at the time of image restoration if I have inserted only sda sdc then will it work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It looks like the image repository does not have that image. Have you checked it? e.g., if you run the following command after you see the above error:
find /home/partimag -print
What's the result?
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi I'm Narendra.
I am using Clonezilla live (version2.6.1) I wanted to restore the image from my on Pendrive to multiple pen drives. But this thing I want to do in Unattended/automatic mode. for that purpose, I have created one Pendrive which have 2 partitions. One contains Clonezilla bootable and another contains Image(which I want to restore on multiple pen drives) And by using this pendrive i want to restore image on multiple pendrives at one time.
My problem is When i restore the image using this pendrive in manual mode (i.e without script) 1-2m disk option works well .But when i edit grub file to restore the same image it gives error regarding directory mounting.
Edited part of my grub file is as below:
menuentry "Electronica Pendrive Image Restoration"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset locales= keyboard-layouts=NONE ocs_prerun="mount /dev/sdb5 /home/partimag" ocs_live_run="ocs-restore-mdisks --batch -p -g auto -e1 auto -e2 -r -j2 -p true MAST_IMG_PENDRIVE sda sdd sde sdc" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="en_US.UTF-8" vga=788 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
initrd /live/initrd.img
}
sdb5 is my pendrive and sda ,sdc,sdd,sde are the pendrives where i want to restore my image.In unattended mode
Error Obtained: the directory /home/partimag/auto for inputed name does not exits!
help me to restor image in unattended mode
From the example:
https://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/03_One_image_to_multiple_disks
Especially this one:
https://clonezilla.org/clonezilla-live/doc/03_One_image_to_multiple_disks/images/ocs-10-img-restore-command-prompt.png
You can find a similar command about ocs-restore-mdisks, I believe your parameter should be something like:
ocs_live_run="ocs-restore-mdisks --batch -p '-g auto -e1 auto -e2 -r -j2 -p true' MAST_IMG_PENDRIVE sda sdc sdd sde"
I did not test it, but it should work. Let me know the results. Thanks.
Steven
Hello steven,
I have one doubt regarding the command , If i have mentioned sda , sdc , sdd,sde in the command and at the time of image restoration if I have inserted only sda sdc then will it work?
I believe it will give errors about the non-existing device, but the rest will go on.
Steven
hey steven ,
I received an error as shown in picture
It looks like the image repository does not have that image. Have you checked it? e.g., if you run the following command after you see the above error:
find /home/partimag -print
What's the result?
Steven