I am trying to create a bootable usb hard drive that has a menu driven automatic clone and restore process. So, users will be able to boot to the drive then just follow the menus. ie. Clone a PC or Restore a PC, then pick the PC to clone or restore.
I'm having problems with the command line options when launching clonezilla. It just instantly goes to the screen asking what I want to do after it is finished; SHutdown, reboot, cmd line, ...
Here is the command line that launches clonezilla:
I would use
ocs_prerun="mount [-t ntfs] /dev/sdb2 /mnt"
ocs_prerun1="mount --bind /mnt /home/partimag/" [ocs_prerun1="sleep 10"]
ocs_live_run="[/opt/drbl/sbin/]ocs-sr -q -c -j2 -rm-win-swap-hib -z0 -i 2048 -sc -p poweroff saveparts 911CAD01-Test-z0 sda2"
Without [/opt/drbl/sbin/] . It's depending on the clonezilla version.
All data in one 'append ..' line naturally without carriage return or newline.
And now any more
the method of fully automatic without any user interaction:
ocs_live_batch=yes # not interactiv
ocs_live_run="[/opt/drbl/sbin/]ocs-sr -e1 auto -e2 [-c] -b -r -j2 -p poweroff restoreparts 911CAD01-Test-z0 sda2"
#without -c , set the option -b
Additionally you can set in the syslinux.cfg:
timeout 2 #2 msec, not timeout 300
prompt 0
Now it's depending on the boot selection only called with any function keys (F11,..).
Last edit: Fuchs 2013-06-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to create a bootable usb hard drive that has a menu driven automatic clone and restore process. So, users will be able to boot to the drive then just follow the menus. ie. Clone a PC or Restore a PC, then pick the PC to clone or restore.
I'm having problems with the command line options when launching clonezilla. It just instantly goes to the screen asking what I want to do after it is finished; SHutdown, reboot, cmd line, ...
Here is the command line that launches clonezilla:
append initrd=/live/initrd.img boot=live hostname=oneiric config quiet noswap nolocales edd=on nomodeset ocs_prerun="mount -t ntfs /dev/sdb2 /home/partimag" ocs_prerun1="sleep 10" ocs_live_run="/opt/drbl/sbin/ocs-sr -q -c -j2 -rm-win-swap-hib -z0 -i 2048 -sc -p poweroff saveparts 911CAD01-Test-z0 sda2" ocs_live_keymap="/usr/share/keymaps/i386/qwertz/de-latin1.kmap.gz" ocs_live_batch="no" ocs_lang="en_US.UTF-8" noprompt video=uvesafb:mode_option=800x600-16 toram=filesystem.squashfs ip=frommedia nosplash
I'm sure I just have something in there wrong, but I can't figure out a what it is.
Any help?
I would use
ocs_prerun="mount [-t ntfs] /dev/sdb2 /mnt"
ocs_prerun1="mount --bind /mnt /home/partimag/"
[ocs_prerun1="sleep 10"]
ocs_live_run="[/opt/drbl/sbin/]ocs-sr -q -c -j2 -rm-win-swap-hib -z0 -i 2048 -sc -p poweroff saveparts 911CAD01-Test-z0 sda2"
Without [/opt/drbl/sbin/] . It's depending on the clonezilla version.
All data in one 'append ..' line naturally without carriage return or newline.
And now any more
the method of fully automatic without any user interaction:
ocs_live_batch=yes # not interactiv
ocs_live_run="[/opt/drbl/sbin/]ocs-sr -e1 auto -e2 [-c] -b -r -j2 -p poweroff restoreparts 911CAD01-Test-z0 sda2"
#without -c , set the option -b
Additionally you can set in the syslinux.cfg:
timeout 2 #2 msec, not timeout 300
prompt 0
Now it's depending on the boot selection only called with any function keys (F11,..).
Last edit: Fuchs 2013-06-22
Thanks, it looks like removing [/opt/drbl/sbin/] fixed it.