Hi everybody,
I have a slight problem with mounting a samba share with the ocs_prerun switch.
Here is the menu-entry from the grub.cfg:
menuentry "Test Backup"{
search --set -f /live/vmlinuz
fakebios
linux /live/vmlinuz boot=live config noswap edd=on nomodeset noprompt ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 4" ocs_prerun3="mount -t cifs -o user=test,password=1234 //192.168.2.109/isos /home/partimag" ocs_live_run="ocs-sr -q2 -j2 -z1p -i 20000000 -sc -p poweroff savedisk Client2011 sda" ocs_live_extra_param="" keyboard-layouts=de ocs_live_batch="no" locales="de_DE.UTF-8" vga=788 ip=frommedia nosplash
initrd /live/initrd.img
}
It seems to me I'm not using the mount commmand right, but every source I looked at says I should use it as I did.
Maybe you can help. Thanks in advance
Additional Information:
The mount command works fine from command line as su:
sudo -i
mount -t cifs -o user=test,password=1234 //192.168.2.109/isos /home/partimag
Last edit: duderde 2013-10-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your help Fuchs. I tried that, but it didn't work. The problem seems to me (as indicated in the above image) that the mount command isn't passed to the command-line. To reproduce the error message in the picture I only have to enter "-t" at command-prompt. So that's weird.
But I got it to work anyway by using a custom script file containing the commands given in the ocs_prerun# parameters.
Your bash-file is awesome, but it throws error on username, it should be user.
Also, all those having thos error, try to add ver=2.0 to mount string, this helped me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm also having troubles mounting a SAMBA server from Grub, I would like to try this out but I'm quite newbie and I don't know where should I place the script file... I guess it has to be somewhere in the USB clonezilla live but, where?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everybody,
I have a slight problem with mounting a samba share with the ocs_prerun switch.
Here is the menu-entry from the grub.cfg:
menuentry "Test Backup"{
search --set -f /live/vmlinuz
fakebios
linux /live/vmlinuz boot=live config noswap edd=on nomodeset noprompt ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 4" ocs_prerun3="mount -t cifs -o user=test,password=1234 //192.168.2.109/isos /home/partimag" ocs_live_run="ocs-sr -q2 -j2 -z1p -i 20000000 -sc -p poweroff savedisk Client2011 sda" ocs_live_extra_param="" keyboard-layouts=de ocs_live_batch="no" locales="de_DE.UTF-8" vga=788 ip=frommedia nosplash
initrd /live/initrd.img
}
The ocs_prerun1 & ocs_prerun2 are working fine. But when running ocs_prerun3 I get the following error:

http://s7.directupload.net/images/131015/dlfbgr5l.jpg
It seems to me I'm not using the mount commmand right, but every source I looked at says I should use it as I did.
Maybe you can help. Thanks in advance
Additional Information:
The mount command works fine from command line as su:
sudo -i
mount -t cifs -o user=test,password=1234 //192.168.2.109/isos /home/partimag
Last edit: duderde 2013-10-15
I would use additionally
ocs_prerun4="sleep 2"
and
write only in one(!) [append] line, not separated, and with '='
.. nosplash initrd=/live/initrd.img
Thank you for your help Fuchs. I tried that, but it didn't work. The problem seems to me (as indicated in the above image) that the mount command isn't passed to the command-line. To reproduce the error message in the picture I only have to enter "-t" at command-prompt. So that's weird.
But I got it to work anyway by using a custom script file containing the commands given in the ocs_prerun# parameters.
The file custombu-2011 contains basically only the relevant parts:
I still don't get, why the mount command is not working in the ocs_prerun# parameter, but this workaround is. So I'm happy :)
Last edit: duderde 2013-10-16
The append command ' newline initrd /live/initrd.img ' is a new command for me.
You can look for
http://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
Your bash-file is awesome, but it throws error on username, it should be user.
Also, all those having thos error, try to add ver=2.0 to mount string, this helped me.
hi,
I'm also having troubles mounting a SAMBA server from Grub, I would like to try this out but I'm quite newbie and I don't know where should I place the script file... I guess it has to be somewhere in the USB clonezilla live but, where?
Thanks
You can refere to these docs:
https://clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
https://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
Steven