Hello, I am trying to get CZ Live to be automated so that you boot the computer and it clones a machine while being unattended.
Right now, what I have (With the important stuff redacted) is as follows.
[
Since no network setting in the squashfs image, therefore if ip=frommedia, the network is disabled. That's what we want.
label Clonezilla live
MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, VGA 800x600)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live hostname=quantal config quiet union=overlayfs noswap edd=on nomodeset ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 2" ocs_prerun2="mount -t cifs -o user=username,domain=domain,password=password1 //ip.add.ress/folder1/folder2/folder3/sysprepXPSw8-sda5 /folder1/folder2/folder3/sysprepXPSw8-sda5" ocs_prerun3="sleep 2" ocs_live_run="/usr/sbin/ocs-sr -k -p poweroff restoreparts imagename sda5" ocs_live_extra_param="" keyboard-layouts=NONE ocs_live_batch=no locales=en_US.UTF-8 noprompt video=uvesafb:mode_option=800x600-16 toram=filesystem.squashfs nosplash
TEXT HELP
* Clonezilla live version: 20130314-quantal-i386. (C) 2003-2013, NCHC, Taiwan
* Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
ENDTEXT
]
The error is (summary)
{
After DHCP does its thing and gets an IP address
OCS_Prerun1
OCS_Prerun3
Starting /user/sbin/ocs-sr
clonezilla image dir /home/partimag
/home/partimage/folder4 for the inputted name does not exist!
[1] power off [2] restart
etc
}
Can someone help me figure out what I'm doing wrong or why its not finding the image on the network?
The user being used has read permissions for the directory where the image is stored, the computer is getting an IP address and the server location has been verified.
thanks
Last edit: Marc Clark 2013-05-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am trying to get CZ Live to be automated so that you boot the computer and it clones a machine while being unattended.
Right now, what I have (With the important stuff redacted) is as follows.
[
Since no network setting in the squashfs image, therefore if ip=frommedia, the network is disabled. That's what we want.
label Clonezilla live
MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Default settings, VGA 800x600)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live hostname=quantal config quiet union=overlayfs noswap edd=on nomodeset ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 2" ocs_prerun2="mount -t cifs -o user=username,domain=domain,password=password1 //ip.add.ress/folder1/folder2/folder3/sysprepXPSw8-sda5 /folder1/folder2/folder3/sysprepXPSw8-sda5" ocs_prerun3="sleep 2" ocs_live_run="/usr/sbin/ocs-sr -k -p poweroff restoreparts imagename sda5" ocs_live_extra_param="" keyboard-layouts=NONE ocs_live_batch=no locales=en_US.UTF-8 noprompt video=uvesafb:mode_option=800x600-16 toram=filesystem.squashfs nosplash
TEXT HELP
* Clonezilla live version: 20130314-quantal-i386. (C) 2003-2013, NCHC, Taiwan
* Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
ENDTEXT
]
The error is (summary)
{
After DHCP does its thing and gets an IP address
OCS_Prerun1
OCS_Prerun3
Starting /user/sbin/ocs-sr
clonezilla image dir /home/partimag
/home/partimage/folder4 for the inputted name does not exist!
[1] power off
[2] restart
etc
}
Can someone help me figure out what I'm doing wrong or why its not finding the image on the network?
The user being used has read permissions for the directory where the image is stored, the computer is getting an IP address and the server location has been verified.
thanks
Last edit: Marc Clark 2013-05-02
The important details for you:
ocs_prerun="dhclient -v eth0"
ocs_prerun1="sleep 2"
ocs_prerun2="mount -t cifs -o user=username,domain=domain,password=password1 //ip.add.ress
/folder1/folder2/folder3/sysprepXPSw8-sda5
/home/partimag" # do not use:[/folder1/folder2/folder3/sysprepXPSw8-sda5]
ocs_prerun3="sleep 2"
ocs_live_run="[/usr/sbin/]ocs-sr -k -p poweroff restoreparts ask_user sda5" #test [imagename] with 'ask_user'
Look for http://clonezilla.org/fine-print-live-doc.php?fullmode=0&path=./clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting/01-preseed-options.doc#01-preseed-options.doc