Quantcast
Viewing all articles
Browse latest Browse all 10

How to mount a windows administrative share on linux via samba

Image may be NSFW.
Clik here to view.
Question

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.

Asked by tftd

Image may be NSFW.
Clik here to view.
Answer

tftd,

try escaping the $ character with a \

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

dc

Answered by dc5553

Viewing all articles
Browse latest Browse all 10

Trending Articles