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

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

stuvstuvAuthor Commented:

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

The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

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."

stuvstuvAuthor Commented:
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

stuvstuvAuthor Commented:
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.
stuvstuvAuthor Commented:
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.

stuvstuvAuthor Commented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
stuvstuvAuthor Commented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.