LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   finding the path to a network folder to use in the terminal (https://www.linuxquestions.org/questions/linux-general-1/finding-the-path-to-a-network-folder-to-use-in-the-terminal-930207/)

Thomas Theimer 02-19-2012 11:03 AM

finding the path to a network folder to use in the terminal
 
I have a NAS on my network and I can access files on the NAS using the file manager (Thunar) by clicking on "Network" and then on the name of the NAS. But I haven't found how to access NAS files from the terminal window and I am hoping someone can help. This isn't a question about mounting as I keep finding in my searches. I just need to know how to find the path to the NAS. (Ubuntu 11.10)

Thanks.

Tom

uhelp 02-19-2012 11:13 AM

how is NAS done in this setup?

There are quite some different methods of attaching storage via network.
And so differ the solutions.

Thomas Theimer 02-19-2012 06:29 PM

Quote:

Originally Posted by uhelp (Post 4606655)
how is NAS done in this setup?

I'm not sure which is probably the heart of my problem. (The NAS is an iomega StorCenter ix2-200).

When I created a file on the NAS and opened it in gedit I saw that it displayed the following address when saving:
smb://ix2-200-ttp/quiktransfer/mytestfile.txt

This would suggest that the file is accessed via a Samba server but I could not find how to access this file in a terminal window (e.g., ls -l smb://ix2-200-ttp/quiktransfer).

I hope this provides enough information to point me in the right direction.

theNbomr 02-20-2012 12:36 PM

You need to mount the SMB share on a mountpoint in your filesystem. Once done, you access the files just as if they are local files. I will not quote an exact command to use, since there are a lot of site-specific options which need to be right before it will work. On Linux, the CIFS filesystem type has mostly superseded the SMB filesystem type. Your mount command should look something like:
Code:

mount -t cifs smb://ix2-200-ttp /some/local/directory/as/a/mountpoint
You may be able to see some options used by gedit if you simply run mount while gedit is using the SMB share.
--- rod.


All times are GMT -5. The time now is 06:49 PM.