Network and Storage Protocols

CIFS Mount, subfolder error on linux


Hi all,


I'm trying to understand why I can't mount a sub-folder with CIFS on my debian linux machine.

But I can mount it's parent and CD to the specified folder then.


:~# mount -t cifs -o username=xxxxx,domain=intranet //myserver.domain/isic/ /mnt
Password for xxxxxx@//myserver.domain/isic/:  *****************
:~# ls /mnt
lip  lsmb  sb-it  shared  ~snapshot
:~# umount /mnt
:~# mount -t cifs -o username=xxxxx,domain=intranet //myserver.domain/isic/lsmb/ /mnt
Password for xxxxxx@//myserver.domain/isic/lsmb/:  *****************
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Wha'ts wrong in this ?

Everything works fine from a Windows machine


Thanks in advance !



Hi, we have a similar problem. Did you find a work around for this?


We had this issue and escalated to Netapp support.


The problem is to do with whether symlinks are enabled on the share. In our case, once we hide the symlinks on the share, the cifs share is able to mount the subdirectory directly.


cifs share modify -vserver <vserver> -share-name <share> -symlink-properties hide


To quickly show all of the shares and the symlink status:


vserver cifs share show -fields share-name, symlink-properties


Unless your linux clients are making use of symlinks in the shares, then I cannot see any issues with changing this setting. If your linux clients are creating symlinks in the cifs share, then they will stop be visible.


For more information about Symlinks: