Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently trying to mount a windows shared drive under linux. The machine is using windows 7 and by default it shares all windows drives if you login as an administrator. I've been able to login and list/copy/delete files via my android phone but I'm having a problem with mounting it on a server.

The command I'm trying:
mount -t smbfs -o username=MyUsername //$D /mnt/machine_1_d

I think the problem comes from the $ sign in $D. I just can't remember what was the fix for this. I'm sure it was something really simple but I can't find it on the net also.

share|improve this question
I think it should work if you just write the visible name instead of $D. – Khaled Apr 25 '12 at 14:44
The name of the shared folder is $D (if that's what you meant) :) – tftd Apr 25 '12 at 14:46
tftd, You might want to change the name of the question to "How to mount a windows administrative share on linux via samba" for the next guy to find it. – dc5553 Apr 25 '12 at 14:51
up vote 6 down vote accepted


try escaping the $ character with a \

mount -t smbfs -o username=MyUsername //\$ /mnt/machine_1_d


share|improve this answer
Also it appears you can do it like this mount -t smbfs -o username=MyUsername "//$D" /mnt/machine_1_d. This also appears to be working properly. Thanks! – tftd Apr 25 '12 at 14:57

Administrative shares in Windows are named with the volume letter first, then the '$' symbol, not the other way around.

C: --> C$

D: --> D$

sudo mount -t smbfs -o username=graeme,domain=example //$ /mnt/bla
share|improve this answer
Yes that's correct. In my case, though, it's the other way around. I don't know why. I guess the admin has done some custom settings or something... – tftd Apr 26 '12 at 14:05

My issue was related to: "mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)" For me the solution was adding key to regedit in Window. Below is my answer in other topic:

share|improve this answer
This was also my issue. I was so close to getting to my laptop Windows share from servers at work. Another day.... – Avindra Goolcharan Nov 21 '14 at 19:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.