I am trying to get a no monitor, no keyboard, auto restore USB configured.
I cannot understand why the new machines are only reading grub.cfg instead of syslinux.cfg They are HP ProDesk Intel I3 machines with UEFI boot capabilities.
The image is located on a NAS with open permissions for everyone.
This is the menu item I am trying to insert. Getting a Grub > prompt after boot. If I remove this menu item, clonezilla loads to the default menu from the boot usb.
This is using the Saucy build. I have the same behavior with newer builds as well.
A little further. Here is the present grub config. Just trying to get to the point where the image mounts is proving a bit impossible right now. I can mount it from the command line once the script breaks on a test machine with exactly the same syntax as in the script.
This part is failing.
ocs_prerun3="sudo mount -t cifs -o user=administrator,password=,sec=ntlm //192.168.35.253/image /home/partimag"
Fails with or without the sudo. From the command line, I must use sudo. (and it mounts)
This is the command line of my prerun3 which mounts the volume on the NAS where the image is located. I've created a username and password on the share because I wasn't getting a warm and fuzzy putting in a blank password in the script.
ocs_prerun3="sudo mount -t cifs -o user=restore,password=password,sec=ntlm //192.168.35.253/image /home/partimag"
The error message I get is in the somewhat fuzzy photo I've attached.
The boot usb then dumps me to the "Choose Mode" screen. If I select CMD and run the contents verbatim of my prerun3, the volume mounts without issue or prompt.
Also found that the ORDER of the commands in the mount statement is important in this case. Once I reordered the commands, it will go on to the auto restore.
ocs_prerun3="sudo mount -t cifs //192.168.35.253/image /home/partimag -o user=restore,password=password,sec=ntlm"
The image I'm trying to restore is on a Netgear NAS 3100 with an open CIFS share on it. I created a user to target in the script because I was getting nowhere trying to pass null credentials.
Now on to debugging the restore portion.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is an unbox the pc, hook up a power cord and network cable, insert the USB and walk away configuration for an HP Prodesk Workstation. (we're doing over 300 of them)
image resides on a netgear NAS.
These are UEFI boot machines, so this is in the grub.cfg, with the set timeout option at the top set to "0" rather than "30".
I am trying to get a no monitor, no keyboard, auto restore USB configured.
I cannot understand why the new machines are only reading grub.cfg instead of syslinux.cfg They are HP ProDesk Intel I3 machines with UEFI boot capabilities.
The image is located on a NAS with open permissions for everyone.
This is the menu item I am trying to insert. Getting a Grub > prompt after boot. If I remove this menu item, clonezilla loads to the default menu from the boot usb.
This is using the Saucy build. I have the same behavior with newer builds as well.
menuentry "Clonezilla Unattended Restore ClientName"{
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live config noswap edd=on nomodeset locales= keyboard-layouts=NONE ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -v 192.168.35.253:/image /home/partimag” ocs_prerun4="sleep 10" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -b -r -j2 -p poweroff restoredisk clientname-desktop sda" ocs_live_extra_param="" ocs_live_batch=yes ocs_prerun5="sleep 10" vga=788 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no
initrd /live/initrd.img
}
See anything overtly wrong above?
A little further. Here is the present grub config. Just trying to get to the point where the image mounts is proving a bit impossible right now. I can mount it from the command line once the script breaks on a test machine with exactly the same syntax as in the script.
This part is failing.
ocs_prerun3="sudo mount -t cifs -o user=administrator,password=,sec=ntlm //192.168.35.253/image /home/partimag"
Fails with or without the sudo. From the command line, I must use sudo. (and it mounts)
Entire menu entry in grub.cfg below.
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live config noswap edd=on nomodeset locales="en_US.UTF-8" keyboard-layouts=NONE ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="sudo mount -t cifs -o user=administrator,password=,sec=ntlm //192.168.35.253/image /home/partimag" ocs_live_run="ocs-sr --batch -g auto -e1 auto -e2 -c -r -j2 -k -p true restoredisk ask_user sda" ocs_live_extra_param="" ocs_live_batch=yes vga=791 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no
initrd /live/initrd.img
Further troubleshooting.
This is the command line of my prerun3 which mounts the volume on the NAS where the image is located. I've created a username and password on the share because I wasn't getting a warm and fuzzy putting in a blank password in the script.
ocs_prerun3="sudo mount -t cifs -o user=restore,password=password,sec=ntlm //192.168.35.253/image /home/partimag"
The error message I get is in the somewhat fuzzy photo I've attached.
The boot usb then dumps me to the "Choose Mode" screen. If I select CMD and run the contents verbatim of my prerun3, the volume mounts without issue or prompt.
Also found that the ORDER of the commands in the mount statement is important in this case. Once I reordered the commands, it will go on to the auto restore.
ocs_prerun3="sudo mount -t cifs //192.168.35.253/image /home/partimag -o user=restore,password=password,sec=ntlm"
The image I'm trying to restore is on a Netgear NAS 3100 with an open CIFS share on it. I created a user to target in the script because I was getting nowhere trying to pass null credentials.
Now on to debugging the restore portion.
And we're done. All working great now.
This is an unbox the pc, hook up a power cord and network cable, insert the USB and walk away configuration for an HP Prodesk Workstation. (we're doing over 300 of them)
image resides on a netgear NAS.
These are UEFI boot machines, so this is in the grub.cfg, with the set timeout option at the top set to "0" rather than "30".
search --set -f /live/vmlinuz
linux /live/vmlinuz boot=live config noswap edd=on nomodeset locales="en_US.UTF-8" keyboard-layouts=NONE ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="sudo mount -t cifs //192.168.35.253/image /home/partimag -o user=username,password=password,sec=ntlm" ocs_prerun4="sleep 2" ocs_live_run="ocs-sr --batch -g auto -e1 auto -e2 -r -j2 -p poweroff restoredisk clientname-desktop sda" ocs_live_extra_param="" ocs_live_batch=yes vga=791 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=no
initrd /live/initrd.img
Yes, uEFI machine will use grub, as mentioned here:
http://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc
It's good to know you have solved the problem there.
Enjoy!
Steven.