Menu

cifs syntax error in grub.cfg

Help
2014-03-19
2018-07-01
  • Philippe Odent

    Philippe Odent - 2014-03-19

    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

     
  • Steven Shiau

    Steven Shiau - 2014-03-22

    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.

     
  • Philippe Odent

    Philippe Odent - 2014-03-22

    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

     
  • Leandro Paulin

    Leandro Paulin - 2014-08-19

    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
  • Fuchs

    Fuchs - 2014-08-25

    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
    • Leandro Paulin

      Leandro Paulin - 2014-08-27

      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.

       
  • Fuchs

    Fuchs - 2014-08-28

    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.

     
  • Suncatcher

    Suncatcher - 2018-07-01

    Assing ver=2.0 after user=user1,password=pass2 helped me.

     

    Last edit: Suncatcher 2018-07-01

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.