Accessing Microsoft Windows Shared Drive [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Accessing Microsoft Windows Shared Drive [SOLVED]

Postby jackmason on Thu Feb 14, 2013 2:20 pm

I have a Microsoft Windows server, bserver, that has a shared drive "e". In the "Computer" window, under "Network", the bserver shows and I can select bserver->e which causes "e on bserver" to be displayed in the "Computer" window under "Network". In the GUI, I can click on directories, select and copy files, etc.

However, I cannot figure out how to reference the drive in the terminal. To display a file I have tried "cat bserver/filename", "cat bserver:e/filename", and other permutations, but nothing works. What is the correct syntax?

Thanks
Last edited by jackmason on Thu Feb 14, 2013 3:53 pm, edited 1 time in total.
jackmason
Level 2
Level 2
 
Posts: 61
Joined: Fri Jan 25, 2013 6:00 pm

Linux Mint is funded by ads and donations.
 

Re: Accessing Microsoft Windows Shared Drive From Terminal

Postby altair4 on Thu Feb 14, 2013 2:56 pm

You aren't going to like this. It's at:

/home/your-user-name/.gvfs/e on bserver


So to list the contents of say test.txt on that share it would look like this:
Code: Select all
cat "/home/your-user-name/.gvfs/e on bserver/test.txt"


You have to put it in quotes because of the spaces and don't forget the dot "." in front of gvfs.

EDIT: Forgot to ask you what version of Mint you are using. If it's 14 it gets worse:
The share is mounted at:
/run/user/your-user-name/gvfs/smb-share:server=bserver,share=e

And the contents of the test file:
Code: Select all
cat "/run/user/your-user-name/gvfs/smb-share:server=bserver,share=e/test.txt"

They did get rid of the "." before gvfs though :wink:
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5834
Joined: Tue Feb 03, 2009 10:27 am

Re: Accessing Microsoft Windows Shared Drive From Terminal

Postby jackmason on Thu Feb 14, 2013 3:52 pm

Thank you very much! You were right, I did not like it. That seems really, really awkward (euphemism). Why not something simple, like /network/bserver?

Thanks again.
jackmason
Level 2
Level 2
 
Posts: 61
Joined: Fri Jan 25, 2013 6:00 pm


Return to Newbie Questions

Who is online

Users browsing this forum: Google [Bot] and 38 guests