5

Using an SMB share from Mountain Lion in Linux

Or can’t connect via SAMBA from my Linux to Mountain Lion

I went from Mac OS X Snow Leopard to Mountain Lion. I read that this affects Lion too. After the upgrade my mount point on the Linux machine stop working. I couldn’t copy anything to my Mac Mini that way.

You now need to use additional security options: nounix,sec=ntlmssp. Like this:

$ mount.cifs //192.168.1.xxx/osxshare /mnt/mymac/ \
  -o user=******,password=******,nounix,sec=ntlmssp

Or if you mount it automatically through fstab like I do:

$ tail -1 /etc/fstab
//mac-mini.local.lan/linux.backup /home/biafra/Mounts/mac-mini/ cifs
credential=/etc/samba/auth,uid=biafra,gid=biafra,nounix,sec=ntlmssp 0 0

Hope it will help you.

5 Comments

  1. Thank you, first good article regarding this, not filled with irrelevant crap :)

    Only weird thing is this (after succesful mount, list files in the dir of the mount):

    FIRST TIME, WRONG

    argento@ubuntu1:/media/testmac$ ls -al
    ls: cannot access : No such file or directory
    ls: cannot access : No such file or directory
    ls: cannot access : No such file or directory
    ls: cannot access : No such file or directory
    ls: cannot access : No such file or directory
    ls: cannot access : No such file or directory
    total 4
    d????????? ? ? ? ? ?
    d????????? ? ? ? ? ?
    d????????? ? ? ? ? ?
    d????????? ? ? ? ? ?
    d????????? ? ? ? ? ?
    -????????? ? ? ? ? ?
    drwxr-xr-x 4 argento argento 0 Jun 15 11:21 .
    drwxr-xr-x 13 root root 4096 Jun 15 07:01 ..

    SECOND TIME (AND EVERY TIME AFTER), CORRECT

    argento@ubuntu1:/media/testmac$ ls -al
    total 8
    drwxr-xr-x 4 argento argento 0 Jun 15 11:21 .
    drwxr-xr-x 13 root root 4096 Jun 15 07:01 ..
    drwxr-xr-x 0 argento argento 0 Jun 15 11:21 .fseventsd
    -rwxr-xr-x 1 argento argento 3 Jun 15 11:21 hej.txt
    drwxr-xr-x 0 argento argento 0 Jun 15 11:21 .Spotlight-V100
    drwxr-xr-x 0 argento argento 0 Jun 15 11:21 .Trashes

    No idea, why this happens.

  2. Me neither. :-(

    Just note that I’ve just found this on my logs. It’s not a problem to me.

    [ 9569.024474] CIFS VFS: Autodisabling the use of server inode numbers on \\mac-mini.local.lan\linux.backup. This server doesn’t seem to support them properly. Hardlinks will not be recognized on this mount. Consider mounting with the “noserverino” option to silence this message.

  3. You have the same thing at the first “ls” ?

    Yes, I have the exact same message in my log.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.