Our config:
Clonezilla Live 2.2.1.25
Samba server: W2008 R2
the following syntax works well but we need to type the pwd during the unatteded install:
ocs_prerun3="mount -t cifs -o user=philippe //192.168.0.251/Salles/Tourcoing /home/partimag"
This one defintively does not work at all:
ocs_prerun3="mount -t cifs -o user=philippe,password=xxxx //192.168.0.251/Salles/Tourcoing /home/partimag"
Error message during batch execution:
/tmp/cmdtmp.UpwTzA: line 1: -t: command not found
We've tried various syntax like password="xxx" or pwd=xxx or password='xxx' or pwd='xxx' or comma between username and password......with no luck...
Any help would be greatly appreciated...
Philippe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
FYI the same command "mount -t cifs -o user=philippe,password=xxxx //192.168.0.251/Salles/Tourcoing /home/partimag" is actually doing the job when typed in the command prompt but absolutely not functional as a prerun in grub.cfg
Did you try testing Clonezilla live, e.g.
alternative testing releases -
20140318-saucy
20140318-trusty
or
testing releases - 2.2.2-26
Some improvements about ocs_prerun parameters have been done.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having the same problem "/tmp/cmdtmp.xxxxx: line 1: -t: command not found".
in my grub file there is: ocs_live_batch=no ocs_prerun1="mount -t cifs //192.168.10.10/Matriz/Imagens/Clonezilla /home/partimag -o user=user1,password=pass2,sec=ntlm" ocs_live_run="ocs-sr -q2 -c -j2 -rm-win-swap-hib -z1p -i 700 -p true savedisk ask_user sda" ocs_live_extra_param=""
I've tried in different Clonezilla versions:
- 20140630-trusty-amd64
- 20140812-trusty-amd64
- 20140812-utopic-amd64
All versions have the same error in ocs_prerun1. One way that it worked was using sudo in the mount command. the changed command is: ocs_prerun1="sudo mount -t cifs //192.168.10.10/Matriz/Imagens/Clonezilla /home/partimag -o user=user1,password=pass2,sec=ntlm"
Do we have to use sudo in clonezilla with grub? I have the same commands in syslinux (BIOS Legacy computers) and they work without sudo.
thanks,
Last edit: Leandro Paulin 2014-08-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been using the same mount command for years in BIOS Legacy computers (syslinux) withou any problem.
Now I've started to use clonezilla in UEFI computer (grub) and the mount command only works if I use sudo in the command line.
I've tried 20140630-trusty-amd64 in syslinux and the mount (without sudo) works, but in grub the mount command doesn't work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your reply.
The development goes on.
Sudo is a simple method.
More and more Authorization rules are defined. These are quite complicated.
(E.g. org.freedesktop.PolicyKit1.service, http://wiki.ubuntuusers.de/PolicyKit)
It's often difficult to find the right method.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone,
Our config:
Clonezilla Live 2.2.1.25
Samba server: W2008 R2
the following syntax works well but we need to type the pwd during the unatteded install:
ocs_prerun3="mount -t cifs -o user=philippe //192.168.0.251/Salles/Tourcoing /home/partimag"
This one defintively does not work at all:
ocs_prerun3="mount -t cifs -o user=philippe,password=xxxx //192.168.0.251/Salles/Tourcoing /home/partimag"
Error message during batch execution:
/tmp/cmdtmp.UpwTzA: line 1: -t: command not found
We've tried various syntax like password="xxx" or pwd=xxx or password='xxx' or pwd='xxx' or comma between username and password......with no luck...
Any help would be greatly appreciated...
Philippe
FYI the same command "mount -t cifs -o user=philippe,password=xxxx //192.168.0.251/Salles/Tourcoing /home/partimag" is actually doing the job when typed in the command prompt but absolutely not functional as a prerun in grub.cfg
I suggest to modify the official Clonezilla Live doc chapter 3 to reflect this bug
http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting/01-preseed-options.doc
Did you try testing Clonezilla live, e.g.
alternative testing releases -
20140318-saucy
20140318-trusty
or
testing releases - 2.2.2-26
Some improvements about ocs_prerun parameters have been done.
Steven.
Not yet but found a workaround by downloading a script file somewhere in our network
ocs_prerun2="wget http://...../script.txt"
then execute this script
ocs_prerun3="script.txt"
this script contains the command line
/bin/bash
mount -t cifs -o user=philippe,password=xxxx //192.168.0.251/Salles/Tourcoing /home/partimag
and other commands Clonezilla is not able to manage in grug.cfg
All my best,
Phil
Hello,
I'm having the same problem "/tmp/cmdtmp.xxxxx: line 1: -t: command not found".
in my grub file there is:
ocs_live_batch=no ocs_prerun1="mount -t cifs //192.168.10.10/Matriz/Imagens/Clonezilla /home/partimag -o user=user1,password=pass2,sec=ntlm" ocs_live_run="ocs-sr -q2 -c -j2 -rm-win-swap-hib -z1p -i 700 -p true savedisk ask_user sda" ocs_live_extra_param=""
I've tried in different Clonezilla versions:
- 20140630-trusty-amd64
- 20140812-trusty-amd64
- 20140812-utopic-amd64
All versions have the same error in ocs_prerun1. One way that it worked was using sudo in the mount command. the changed command is:
ocs_prerun1="sudo mount -t cifs //192.168.10.10/Matriz/Imagens/Clonezilla /home/partimag -o user=user1,password=pass2,sec=ntlm"
Do we have to use sudo in clonezilla with grub? I have the same commands in syslinux (BIOS Legacy computers) and they work without sudo.
thanks,
Last edit: Leandro Paulin 2014-08-20
If I remember rightly:
The standard form of the mount command is
mount -t type device dir
mount [-fnrsvw] [-t vfstype] [-o options] device dir
(You can look for 'man mount')
Last edit: Fuchs 2014-08-25
I've been using the same mount command for years in BIOS Legacy computers (syslinux) withou any problem.
Now I've started to use clonezilla in UEFI computer (grub) and the mount command only works if I use sudo in the command line.
I've tried 20140630-trusty-amd64 in syslinux and the mount (without sudo) works, but in grub the mount command doesn't work.
Thank you for your reply.
The development goes on.
Sudo is a simple method.
More and more Authorization rules are defined. These are quite complicated.
(E.g. org.freedesktop.PolicyKit1.service, http://wiki.ubuntuusers.de/PolicyKit)
It's often difficult to find the right method.
Assing ver=2.0 after user=user1,password=pass2 helped me.
Last edit: Suncatcher 2018-07-01