Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: [SOLVED] 8.04, CIFS, nounix and Unix extensions

  1. #1
    Join Date
    Mar 2007
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    [SOLVED] 8.04, CIFS, nounix and Unix extensions

    After upgrading to 8.04 I've found - like a lot of people - that Samba connections to NAS devices have needed to be changed.

    SMBFS seems no longer to be supported and switching to CIFS caused me the same error:

    mount error 20 = Not a directory

    as a lot of other people. A workable solution that a lot of people have adopted is to put 'nounix' as an option in the mount command and this does allow me to make a connection.

    However, this (I believe) has the effect of suspending UNIX file information and, as a consequence, the dates are not preserved on file transfer to the NAS device. This is unfortunate, as I was using the device as an incremental file backup medium using a simple cp -u command and the broken file dates mean that this is no longer working.

    Has anyone any suggestions as to what I could try next? I've looked at using the ftp server on the device, but it seems to have a similar problem with dates.

    Cheers,

    Martin
    --

    Martin
    (full 'o' beans)

  2. #2
    Join Date
    Mar 2007
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: 8.04, CIFS, nounix and Unix extensions

    Bump - if anyone has any suggestions?
    --

    Martin
    (full 'o' beans)

  3. #3
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: 8.04, CIFS, nounix and Unix extensions

    Quote Originally Posted by martinveasey View Post
    SMBFS seems no longer to be supported and switching to CIFS caused me the same error:

    Has anyone any suggestions as to what I could try next?
    Suggestion: Can you not use scp or rsync? It seems to me to be the most logical choice.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  4. #4
    Join Date
    Mar 2007
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: 8.04, CIFS, nounix and Unix extensions

    Hi thanks for your reply.

    I'd agree that ssh'd rsync or scp are a more workable general solution - I use these elsewhere already.

    Unfortunately, the NAS box is rather limited. It provides access only via SMB and FTP services .

    Cheers
    --

    Martin
    (full 'o' beans)

  5. #5
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: 8.04, CIFS, nounix and Unix extensions

    try the sfu option like so:
    Code:
    //netbiosname/sharename    /media/sharename        cifs    credentials=/root/.smbcredentials,iocharset=utf8,nounix,sfu,file_mode=0777,dir_mode=0777 0 0
    from man mount.cifs:
    sfu
    When the CIFS Unix Extensions are not negotiated, attempt to create
    device files and fifos in a format compatible with Services for Unix
    (SFU). In addition retrieve bits 10-12 of the mode via the SET‐
    FILEBITS extended attribute (as SFU does). In the future the bottom
    9 bits of the mode mode also will be emulated using queries of the
    security descriptor (ACL). [NB: requires version 1.39 or later of
    the CIFS VFS. To recognize symlinks and be able to create symlinks
    in an SFU interoperable form requires version 1.40 or later of the
    CIFS VFS kernel module.

  6. #6
    Join Date
    Mar 2007
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: 8.04, CIFS, nounix and Unix extensions

    Thanks for that - I won't be able to try it until the weekend as its at a remote site.

    Do you know whether this will interfere with the NAS' ability to serve to Windows XP machines?

    Cheers,

    Martin
    --

    Martin
    (full 'o' beans)

  7. #7
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: 8.04, CIFS, nounix and Unix extensions

    Unless I misunderstand the man mount.cifs information, it should only affect the machine using sfu in the mount options - shouldn't affect windows (or other) machines at all.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  8. #8
    Join Date
    Mar 2007
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: 8.04, CIFS, nounix and Unix extensions

    The "sfu" option didn't really help. Mounting the NAS allows viewing of the correct file dates on existing files - e.g. written via a Windows share, but writing new files still gives the wrong date - sometime in 2006. "Touching" the file subsequently doesn't help - unsurprisingly.

    Never mind.
    --

    Martin
    (full 'o' beans)

  9. #9
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: 8.04, CIFS, nounix and Unix extensions

    is it possible to check/change the date on your nas device?

  10. #10
    Join Date
    Mar 2007
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: 8.04, CIFS, nounix and Unix extensions

    It is indeed possible - embarassingly, the date was set in 2006.

    Changing it / enabling NTS, now means that files transferred across or created under Ubuntu take a file time equal to that running on the NAS box.

    Interestingly enough, copying files across under Windows preserves the file time on the file as is.

    I'm not sure whether this will have a practical effect, but it's good enough for me. Thanks for the suggestions.

    Martin
    --

    Martin
    (full 'o' beans)

Page 1 of 2 12 LastLast

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
  •