label Clonezilla live
MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Endless 55)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=agonzalez config quiet components noswap edd=on nomodeset noeject locales= keyboard-layouts=NONE noprompt toram=filesystem.squashfs vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no ocsprerun2="sudo dhclient -v etho0" ocsprerun3="sudo mount -t cifs //10.x.x.x/images/Devices/ELO/v2/55 /home/partimage/ -o user=USER,domain=DOMAIN,vers=2.0" ocsprerun4="sleep 20" ocs_live_run="/bin/bash /usr/sbin/ocs-sr -g auto -e1 auto -e2 -hn1 EA -c -r -j2 -scr -p choose restoredisk BASE-img sda"
TEXT HELP
* Boot menu for BIOS machine
* Clonezilla live version: 2.6.1-25-amd64. (C) 2003-2019, NCHC, Taiwan
* Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
ENDTEXT
And my grub.cfg file
menuentry "Clonezilla live (Endless 55 inch)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config components quiet noswap edd=on nomodeset noeject locales= keyboard-layouts=NONE noprompt toram=filesystem.squashfs vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no no ocsprerun2="sudo dhclient -v etho0" ocsprerun3="sudo mount -t cifs //10.x.x.x/images/Devices/ELO/v2/55 /home/partimage/ -o user=USER,domain=DOMAIN,vers=2.0" ocsprerun4="sleep 20" ocs_live_run="/bin/bash /usr/sbin/ocs-sr -g auto -e1 auto -e2 -hn1 EA -c -r -j2 -scr -p choose restoredisk BASE-img sda"
initrd /live/initrd.img
}
When I attempt to mount my samba drive manually I get an error 101, network unreachable. When I attempt to run my entry in the grub I get an error stating there is no such file in /home/partimag/Base-img.
What am I doing wrong? Any help will be much appreciated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was able to fix my problem by writing a bash script that would mount my samba server for me, but for some reason I am unable to get my clonezilla to automate this process. It seems as if my mount just does not want to work in a ocsprerun option.
Hey all,
I have altered my syslinux.cfg file to include
label Clonezilla live
MENU DEFAULT
# MENU HIDE
MENU LABEL Clonezilla live (Endless 55)
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live username=agonzalez config quiet components noswap edd=on nomodeset noeject locales= keyboard-layouts=NONE noprompt toram=filesystem.squashfs vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no ocsprerun2="sudo dhclient -v etho0" ocsprerun3="sudo mount -t cifs //10.x.x.x/images/Devices/ELO/v2/55 /home/partimage/ -o user=USER,domain=DOMAIN,vers=2.0" ocsprerun4="sleep 20" ocs_live_run="/bin/bash /usr/sbin/ocs-sr -g auto -e1 auto -e2 -hn1 EA -c -r -j2 -scr -p choose restoredisk BASE-img sda"
TEXT HELP
* Boot menu for BIOS machine
* Clonezilla live version: 2.6.1-25-amd64. (C) 2003-2019, NCHC, Taiwan
* Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
ENDTEXT
And my grub.cfg file
menuentry "Clonezilla live (Endless 55 inch)"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live username=user config components quiet noswap edd=on nomodeset noeject locales= keyboard-layouts=NONE noprompt toram=filesystem.squashfs vga=791 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no no ocsprerun2="sudo dhclient -v etho0" ocsprerun3="sudo mount -t cifs //10.x.x.x/images/Devices/ELO/v2/55 /home/partimage/ -o user=USER,domain=DOMAIN,vers=2.0" ocsprerun4="sleep 20" ocs_live_run="/bin/bash /usr/sbin/ocs-sr -g auto -e1 auto -e2 -hn1 EA -c -r -j2 -scr -p choose restoredisk BASE-img sda"
initrd /live/initrd.img
}
When I attempt to mount my samba drive manually I get an error 101, network unreachable. When I attempt to run my entry in the grub I get an error stating there is no such file in /home/partimag/Base-img.
What am I doing wrong? Any help will be much appreciated
I was able to fix my problem by writing a bash script that would mount my samba server for me, but for some reason I am unable to get my clonezilla to automate this process. It seems as if my mount just does not want to work in a ocsprerun option.
Here is my current isolinux.cfg set up.
BASH SCRIPT
Last edit: Alex Gonzo 2020-03-17
ocsprerun2="sudo dhclient -v etho0" -> Are you sure the NIC is etho0? Not eth0?
Steven