Results 1 to 9 of 9

Thread: Is CIFS broken?

  1. #1

    Is CIFS broken?

    https://bugzilla.redhat.com/show_bug.cgi?id=832741

    I found this. Seems potentially relevant. I'm trying the following:

    Code:
    sudo mount.cifs -o user=USER,password=PASS //HOSTNAME/media ./tmp
    
    sudo mount.cifs -o user=USER,password=PASS,ip=192.168.1.102 //HOSTNAME/media ./tmp
    
    sudo mount -t cifs -o user=USER,password=PASS,ip=192.168.1.102 //HOSTNAME/media ./tmp
    They all have the same result:

    Code:
    mount error(22): Invalid argument
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    WORKAROUND HERE: (post #9 in this thread) http://ubuntuforums.org/showthread.p...1#post12581550

    And I say workaround, because this still looks like a bug.
    Last edited by cole.mickens; March 31st, 2013 at 01:25 AM.

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Is CIFS broken?

    Probably, it breaks every dev cycle, it usually gets fixed before the dev version is released.

  3. #3
    Join Date
    Jun 2011
    Beans
    417
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Is CIFS broken?

    Quote Originally Posted by cole.mickens View Post
    https://bugzilla.redhat.com/show_bug.cgi?id=832741

    I found this. Seems potentially relevant. I'm trying the following:

    Code:
    sudo mount.cifs -o user=USER,password=PASS //HOSTNAME/media ./tmp
    
    sudo mount.cifs -o user=USER,password=PASS,ip=192.168.1.102 //HOSTNAME/media ./tmp
    
    sudo mount -t cifs -o user=USER,password=PASS,ip=192.168.1.102 //HOSTNAME/media ./tmp
    They all have the same result:

    Code:
    mount error(22): Invalid argument
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    Could you check whether smbfs is installed?? dpkg -i | grep smbfs

  4. #4

    Re: Is CIFS broken?

    'smbfs' was replaced by 'cifs-utils' which is definitely installed.

  5. #5
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    9,244
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Is CIFS broken?

    MOUNT.CIFS(8) System Administration tools MOUNT.CIFS(8)

    NAME
    mount.cifs - mount using the Common Internet File System (CIFS)

    SYNOPSIS
    mount.cifs { service } {mount-point} [-o options]

    Perhaps put the options at the end?
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  6. #6

    Re: Is CIFS broken?

    Didn't help.

  7. #7
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    9,244
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Is CIFS broken?

    Is HOSTNAME defined in /etc/hosts? Does ./tmp exist? Is it off of the root directory /? Perhaps removing the dot (.) and just use /tmp or the complete path.

    Or, it really is a parsing bug that you have linked.

    Can you browse the network share in Nautilus and mount it?
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  8. #8
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: Is CIFS broken?

    I had to define "sec=ntlm" to get CIFS to work at all, even though that should be a default option if omitting the sec part?

    Was pulling my hair for hours after updating to 13.04, because my mounts worked fine before.

    And man... "Invalid argument". Very helpful...

  9. #9

    Re: Is CIFS broken?

    Quote Originally Posted by tgalati4 View Post
    Is HOSTNAME defined in /etc/hosts? Does ./tmp exist? Is it off of the root directory /? Perhaps removing the dot (.) and just use /tmp or the complete path.

    Or, it really is a parsing bug that you have linked.

    Can you browse the network share in Nautilus and mount it?
    HOSTNAME is a windows hostname. It is properly looked up, and the same thing happens when I manually specify the ip instead of the hostname in the share path.

    ./tmp is a local directory. It spits out a different (and more useful) error if you give it an invalid mount path.

    Yes, I can browse the share in both nautilus and dolphin.

    Quote Originally Posted by zuti View Post
    I had to define "sec=ntlm" to get CIFS to work at all, even though that should be a default option if omitting the sec part?

    Was pulling my hair for hours after updating to 13.04, because my mounts worked fine before.

    And man... "Invalid argument". Very helpful...
    Attempting now, will edit this post.

    edit: NICE CATCH! You're the man! Hopefully this gets up there in Google search results.

    To fix the error 22: Invalid argument, try the following:

    Code:
    sudo mount -t cifs -o user=USER,password=PASS,sec=ntlm //HOSTNAME/media ./tmp
    or, if you have it wide-open for everyone, use guest mode:

    Code:
    sudo mount -t cifs -o guest,sec=ntlm //HOSTNAME/media ./tmp
    Thanks be to Zuti!!
    Last edited by cole.mickens; March 31st, 2013 at 01:24 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •