Menu

Restore image on multiple pen drives using clonezilla unattended mode

2019-09-25
2019-10-20
  • NARENDRA SHAHA

    NARENDRA SHAHA - 2019-09-25

    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

     
  • NARENDRA SHAHA

    NARENDRA SHAHA - 2019-10-07

    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?

     
  • Steven Shiau

    Steven Shiau - 2019-10-07

    I believe it will give errors about the non-existing device, but the rest will go on.

    Steven

     
  • NARENDRA SHAHA

    NARENDRA SHAHA - 2019-10-07

    hey steven ,
    I received an error as shown in picture

     
  • Steven Shiau

    Steven Shiau - 2019-10-20

    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

     

Log in to post a comment.

MongoDB Logo MongoDB