How do I get Linux clients to access a Windows DFS share

stuvstuv used Ask the Experts™
I have just set up a Windows 2008 DFS namespace, which I can access between the local domain and trusted domain.

I am trying to get linux clients to access the DFS domain based namespace, but it is not working, despite being able to connected to \\server\share.  

Is there any special procedure for this?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®



As I said, I connect to the servername resource. The problem is with DFS domain based name space.

Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

What command are you using ?

something similar to this ?

mount -t cifs // /mnt/dfs -o user=userid,pass=password,dom=DOM

On windows 2003 this seem to have help someone

"I installed File Services for Macintosh from Add/Remove Windows Components on the DFS servers and everything seems to be working fine now."



Hi there

I saw that about File Services for Macintosh and got excited.  This has been deprecated, and is not available in Windows 2008.

This is the error I get from mount

mount: wrong fs type, bad option, bad superblock on //,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

stuv@malevich:/dfs$ dmesg | tail
[ 9183.163645] Neighbour table overflow.
[ 9183.163975] Neighbour table overflow.
[ 9183.164320] Neighbour table overflow.
[ 9183.164673] Neighbour table overflow.
[ 9183.164981] Neighbour table overflow.
[ 9183.165306] Neighbour table overflow.
[ 9183.165566] Neighbour table overflow.
[ 9183.165878] Neighbour table overflow.
[460169.873834]  CIFS VFS: cifs_mount failed w/return code = -22
[460190.092296]  CIFS VFS: cifs_mount failed w/return code = -22


dou you have smbfs installed ?

apt-get instaill smbfs

Let me know



hi Guillaume

I have installed it now.

But still it does not work.

stuv@malevich:~$ sudo smbmount // /dfs/stuv -o username=stuv
[sudo] password for stuv:
mount error 66 = Object is remote
Refer to the mount.cifs(8) manual page ( mount.cifs)

I am starting to think the DFS support in Ubuntu and Red Hat is still very buggy.


it looks I will have to get all linux users to adopt to the corporate standard and have a windows virutal machine on every desktop.

I wish Microsoft would just not tease with cool prodcuts that only work on their systems.

Microsoft has just won is point ....

Sales more licenses ;-(

If you try it different maybe you could avoid this .....

You want a dfs share because they are global ?

Could you make a normal share over a dfsshare from 2 servers and connect your linux box to those 2 servers ?

I know it's not perfect but you could see the data on the linux boxes.

That is not a solution.  I will try to make LVS for File Sharing port onto the DFS file servers so that linux clients at least have this high availability.  Not perhect but it will have to do.

I want DFS because I am tired of leaving little .txt files in shares saying where the new location of the network jukebox is. Also, DFS has replication, so I can make it geographically redundant.  It is a really good solution, that is native to Windows.  Depend it does not party with linux.

Youre right that DFS seem to have very good features.

I have not try this yet but samba server seem to support DFS and can act has a proxy.   I never try it but maybe you could have 2 samba server in a LVS setup that would be proxy for youre Windows DFS share ....

Or installed samba on each linux client and add a samba share locally of the DFS ....  I would like to test that but we have no windows server that I can test with.
Keep us update of your finding if time permit !


Maybe you could use Unison to replicate the folders: Ref

Regards, Tobias


has anybody tried this?
Versions 2.6.14 and later[7] of the Linux kernel come with an SMB client VFS called "cifs" that supports DFS.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial