Launching cifsoplockd from the command line ?

Discussion in 'Tomato Firmware' started by hpsmartyz, Apr 18, 2009.

  1. hpsmartyz

    hpsmartyz LI Guru Member


    I have a specific need which to mount a cifs via the init script instead of using the GUI because the device that provides the drive may not be always up. (see here)

    However, I found that apparently it is impossible to mount a cifs using for example the following command:
    mount -t cifs amountname /cifs1 -o unc=\\\\ddd.ddd.ddd.ddd\\share,username=aname,password=apassword
    if the process cifsoplockd is not running.

    That process is launched (together with cifsd) when enabling CIFS in the administration interface.

    In fact, it seems that cifsoplockd is launched when CIFS is enabled and cifsd is launched as part of the mounting of one (or both) of the two CIFSs (CIFS1, CIFS2).
    Indeed, when unmounting CIFS1 (considering no CIFS2 was specified) via the command line then cifsd dies but cifsoplockd remains.

    So back to my request:
    I find a bit akward to have to enable CIFS and specify a mount point via the GUI so as to be able to perform mounts via the command line.
    As such I would like to know if there is a way to enable CIFS via the command line, in other words (unless I am mistaken) launch cifsoplockd.

    I have tried to get a look at the actions taken when saving the page admin-cifs.asp but it is a bit complicated.

    Many thanks for your help
  2. hpsmartyz

    hpsmartyz LI Guru Member

    ok, forget my silly question,
    the answer is simply:

    insmod cifs
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice