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 //10.0.0.2/$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.
tftd,
try escaping the $ character with a \
dc
Administrative shares in Windows are named with the volume letter first, then the '$' symbol, not the other way around.
C: --> C$
D: --> D$
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: https://serverfault.com/a/619963/237340
I would add a line for that purpose to /etc/fstab file:
After saving changes to this file, mount the file system by means of the command
mount -a
.In this case the option rw allows the directory to be read-write, otherwise it should have the option ro.